Found it: http://code.google.com/apis/maps/faq.html#loadasync It's unfortunately well hidden. If this comes up again we can make this feature more prominent somehow.
On Mon, Feb 1, 2010 at 12:04 PM, Ben Appleton <[email protected]> wrote: > I thought it was documented but I can't find it. I'll chase this up. > > On Sat, Jan 30, 2010 at 6:49 AM, Austin <[email protected]> wrote: > > Hi Ben, > > > > Thank you, this seems to be exactly what I need. I haven't seen this > > anywhere, is it not in the documentation yet or did I just totally > > miss it? > > > > Thanks again, > > Austin > > > > On Jan 28, 6:25 pm, Ben Appleton <[email protected]> wrote: > >> Hi, > >> > >> You can provide an "&callback=" parameter to the API, like: > http://maps.google.com/maps/api/js?sensor=false&callback=handleMapsAp... > >> < > http://maps.google.com/maps/api/js?sensor=false&callback=handleMapsAp.. > .>This > >> will load the API dynamically then call your callback. It loads the API > by > >> appending a script tag to document.body rather than by document.write, > so > >> this should only be used after document.body has loaded. > >> > >> Cheers > >> Ben > >> > >> > >> > >> On Fri, Jan 29, 2010 at 12:32 PM, Austin <[email protected]> wrote: > >> > I tried to reply to an older post directly, but for some reason it's > >> > not letting me (http://groups.google.com/group/google-maps-js-api-v3/ > >> > browse_thread/thread/f4a1f4d703267d48/9e8fcf770d1aed2b?lnk=gst&q=Page > >> > +Speed+score#). So here's my reply to that thread: > >> > >> > I'm having similar issues as Ed. Is there any update on this? Is > >> > there a way to only load v3 on a page after the dom has loaded if a > >> > user executes a specific action, such as clicking on a "Show Map" > >> > button? I've tried multiple different methods to post-load the js > >> > (http://maps.google.com/maps/api/js?sensor=false) so it only loads on > >> > a certain user action in hopes of not getting my Page Speed score > >> > docked from all the Google Maps files, but each time the > >> > document.write in it overwrites the main page content. > >> > >> > -- > >> > You received this message because you are subscribed to the Google > Groups > >> > "Google Maps JavaScript API v3" group. > >> > To post to this group, send email to > >> > [email protected]. > >> > To unsubscribe from this group, send email to > >> > [email protected]<google-maps-js-api-v3%[email protected]><google-maps-js-api-v3%2B > [email protected]> > >> > . > >> > For more options, visit this group at > >> >http://groups.google.com/group/google-maps-js-api-v3?hl=en. > > > > -- > > You received this message because you are subscribed to the Google Groups > "Google Maps JavaScript API v3" group. > > To post to this group, send email to > [email protected]. > > To unsubscribe from this group, send email to > [email protected]<google-maps-js-api-v3%[email protected]> > . > > For more options, visit this group at > http://groups.google.com/group/google-maps-js-api-v3?hl=en. > > > > > -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
