Disable preloading states to reduce traffic on start
This commit is contained in:
parent
af1bfc224f
commit
198f65e5bc
1 changed files with 3 additions and 3 deletions
|
|
@ -74,9 +74,9 @@ BR.CircleGoArea = L.Control.extend({
|
||||||
this._loadCountries();
|
this._loadCountries();
|
||||||
|
|
||||||
// preload states in parallel, before clicked country is known, using browser language as indicator
|
// preload states in parallel, before clicked country is known, using browser language as indicator
|
||||||
if (BR.Util.isCountry('DE')) {
|
// if (BR.Util.isCountry('DE')) {
|
||||||
this._loadStates();
|
// this._loadStates();
|
||||||
}
|
// }
|
||||||
|
|
||||||
map.on('routing:draw-start', function () {
|
map.on('routing:draw-start', function () {
|
||||||
self.draw(false);
|
self.draw(false);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue