You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In our project, we've seen a bunch of "google maps is undefined errors" on mobile devices that seem to have slow connections, and my current hypothesis is the following:
Google maps script is injected
Bootstrap code is downloaded (i.e. not the library code itself)
script onLoad event fires before library code has finished loading
Google Maps is treated as loaded, but window.google.maps is still null/undefined.
One fix for the above behavior would be to take advantage of the callback parameter on the google maps JS request.
Is this consistent with your experience? Are there challenges to implementing this? Otherwise I'd be happy to submit a PR.
The text was updated successfully, but these errors were encountered:
In our project, we've seen a bunch of "google maps is undefined errors" on mobile devices that seem to have slow connections, and my current hypothesis is the following:
window.google.maps
is still null/undefined.One fix for the above behavior would be to take advantage of the callback parameter on the google maps JS request.
Is this consistent with your experience? Are there challenges to implementing this? Otherwise I'd be happy to submit a PR.
The text was updated successfully, but these errors were encountered: