From 198f65e5bc66b3de8368126e21a437c808e596bd Mon Sep 17 00:00:00 2001 From: Norbert Renner Date: Wed, 1 Jun 2022 16:53:23 +0200 Subject: [PATCH] Disable preloading states to reduce traffic on start --- js/plugin/CircleGoArea.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/plugin/CircleGoArea.js b/js/plugin/CircleGoArea.js index 78939d3..a03b2d7 100644 --- a/js/plugin/CircleGoArea.js +++ b/js/plugin/CircleGoArea.js @@ -74,9 +74,9 @@ BR.CircleGoArea = L.Control.extend({ this._loadCountries(); // preload states in parallel, before clicked country is known, using browser language as indicator - if (BR.Util.isCountry('DE')) { - this._loadStates(); - } + // if (BR.Util.isCountry('DE')) { + // this._loadStates(); + // } map.on('routing:draw-start', function () { self.draw(false);