[jQuery] Re: $(document).ready firing before Google Maps scripts are fully loaded

2009-10-16 Thread George V. Reilly
And here's a pared-down repro of my original problem: http://www.georgevreilly.com/temp/loaddemo.html Be warned. It reproes maybe one time in 50 with this code. Seems to happen more if the browser has been idle for a while. /George

[jQuery] Re: $(document).ready firing before Google Maps scripts are fully loaded

2009-10-16 Thread George V. Reilly
Over in http://groups.google.com/group/google-maps-api/, I got a suggestion that seems to work consistently: use Google's Ajax loader to load the Maps API code asynchronously. http://www.google.com/jsapi? key=MY_API_KEY"> google.load('maps', "2.x", {other_params:"sensor=false

[jQuery] Re: $(document).ready firing before Google Maps scripts are fully loaded

2009-10-15 Thread George V. Reilly
On Oct 15, 6:49 pm, Dave Methvin wrote: > So all those extra scripts are injected into the head with > document.write? If so they should have definitely been there before > any script below them executed. Have you found the place where Google > Maps is actually doing the document writes for the o

[jQuery] Re: $(document).ready firing before Google Maps scripts are fully loaded

2009-10-15 Thread Dave Methvin
So all those extra scripts are injected into the head with document.write? If so they should have definitely been there before any script below them executed. Have you found the place where Google Maps is actually doing the document writes for the other scripts? I am wondering whether it might be