Perfect, that's exactly what I was looking for. Thanks guys!

On May 27, 2:19 am, Miguel Angel Vilela <[email protected]> wrote:
> There is an FAQ about this, admittedly not very prominent:
>
> How can I load the API into a page asynchronously after the page has 
> loaded?http://code.google.com/apis/maps/faq.html#loadasync
>
> Cheers,
> Miguel
>
>
>
> On Thu, May 27, 2010 at 04:08, Ben Appleton <[email protected]> wrote:
> > Asynchronous loading is supported but could be documented better.  See
> > this example:
>
> >http://gmaps-samples-v3.googlecode.com/svn/trunk/callback/callback_de...
>
> > On Thu, May 27, 2010 at 10:03 AM, amattie <[email protected]> wrote:
>
> >> Are there any plans to introduce an asynchronous Google Maps 3 script
> >> loader pattern that I can use instead of the current loader that
> >> blocks? In other words, instead of holding up the response while the
> >> script loads, could the faster Google Analytics pattern (below) be
> >> used instead?
>
> >> <script type="text/javascript">
>
> >>  var _gaq = _gaq || [];
> >>  _gaq.push(['_setAccount', 'UA-XXXXXXX']);
> >>  _gaq.push(['_trackPageview']);
>
> >>  (function() {
> >>    var ga = document.createElement('script'); ga.type = 'text/
> >> javascript'; ga.async = true;
> >>    ga.src = ('https:' == document.location.protocol ? 'https://ssl':
> >> 'http://www') + '.google-analytics.com/ga.js';
> >>    var s = document.getElementsByTagName('script')[0];
> >> s.parentNode.insertBefore(ga, s);
> >>  })();
>
> >> </script>
>
> >> --
> >> 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%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%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].
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to