Thursday, March 21, 2013

Google Maps stuck at loading

After adding the Google Maps API v3 to a website, the map page, in Firefox, displays a strange behavior.
When the request comes from another page, most times, the map page keeps loading the Google Maps API ("retrieving data from") but it never actually ends.
Follow-up scripts end up never being loaded.
If we stop the page load and refresh it (F5 or CTRL+F5), the page loads correctly.

There are lots of posts already with people trying to figure this out.
Some are recomending changing the google script call to asynchronous:

However, for me, I just needed to move from

$(document).ready(function () {


$(window).load(function () {

No comments:

Post a Comment