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 <apple...@google.com> 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 <austinhu...@gmail.com> 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 > > google-maps-js-api...@googlegroups.com. > > To unsubscribe from this group, send email to > > google-maps-js-api-v3+unsubscr...@googlegroups.com<google-maps-js-api-v3%2B > > unsubscr...@googlegroups.com> > > . > > 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 google-maps-js-api...@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.