Hi,

To optimize the loading speed of my page I would prefer that my api
key <script> tag
would benefit from some lazy loading.
to be more explicit, I would like it to load only when it's really
needed.
so, on some click events I wrote some code to make a <script> tag ,
equip it
with my api key in the src attribute and in type "text/javascript"
and then attach that to the page.
now, when I click the button the api is loaded and I get a blank page,
the status bar reads "Reading maps.google.com" and it doesn't finish
loading, goes on forever.
in contrast with this , if I just use a html tag(and not generate it
by js at runtime) it all works well.
how can I fix this ?

( the idea taken from the section "Dynamic loading the Google Maps
JavaScript API" from here 
http://wiki.forum.nokia.com/index.php/Loading_external_JavaScript_Libraries_at_Runtime
)

Thanks for taking the time to read.

Best regards,
Stefan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to