Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author mapster

    (@mapster)

    Hello, thanks for the message. This is certainly strange as the scripts are loaded via wp_enqueue, which controls any kind of double loading issue.

    Can you possibly link me directly to the page in question, so I can examine if the scripts are indeed being loaded multiple times? It may be that the speed tool is confusing the JS script with calling Mapbox tiles, or something like that.

    Thread Starter sipat999

    (@sipat999)

    Plugin Author mapster

    (@mapster)

    Hey there! Map looks great. On looking at the loading, I can see that the JS script is indeed only loading 1 time. There are numerous other requests, which go out to Mapbox and are initiated from the JS script, but those are standard tile requests, sprites, etc, which are expected for loading the map. I suspect that maybe the testing site reloads the page numerous times or something like that?

    Happy to investigate more if you think there is something I’m missing here.

    https://imgur.com/a/4esUAlQ

    Plugin Author mapster

    (@mapster)

    Marking as resolved!

    Thread Starter sipat999

    (@sipat999)

    Yes good – sorry I didn’t get back to you. Why would the testing site reload the page numerous times? Not debating it – I have limited knowledge and curious. Perhaps I’ll wait until the site is live and then do further testing. Thanks for all the assistance :]

    Plugin Author mapster

    (@mapster)

    I actually re-thought that a little, and I think it was not reloading it multiple times — I do think that it was just registering all the tile requests as being “loading” from the JS script. Loading a map requires numerous tile requests, which all are initiated by the script it points to, so that seems the most likely explanation.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Page load speed – lots of js requests’ is closed to new replies.