Checkout the Maps.loadMapsApi() call that uses the AjaxLoader API

http://gwt-google-apis.googlecode.com/svn/javadoc/maps/1.0/com/google/gwt/maps/client/Maps.html#loadMapsApi(java.lang.String,
java.lang.String, boolean, java.lang.Runnable)


On Wed, Mar 17, 2010 at 4:52 PM, Artem <[email protected]> wrote:

> Hi!
>
> I really enjoy GWT and Google Maps working together...
> But I have a question about Lazy Loading of Maps scripts...
>
> To use Google Maps in my project I have to add
>  <inherits name="com.google.gwt.maps.GoogleMaps"/>
>  <script src="http://maps.google.com/maps?
> gwt=1&amp;file=api&amp;v=2&amp;sensor=false" />
> into my project xml.
>
> As a result size of initial load of my web site increases for the size
> of maps scripts... On the other hand I don't have Maps widget at first
> page of my site - so it could be that User will never actually need
> it...
>
> Could I somehow create some kind of Lazy Loading for Goolge Maps and
> load needed scripts only when they really needed? Maybe use
> GWT.runAsync somehow?
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-web-toolkit%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


-- 
Eric Z. Ayers
Google Web Toolkit, Atlanta, GA USA
Sign up now for Google I/O 2010: May 19-20, http://code.google.com/io

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" 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-web-toolkit?hl=en.

Reply via email to