Hi All, My project is currently using the Google Maps Javascript API.& we are loading the Google Maps API , onload of the page (using below js)
<script src="http://maps.google.com/maps?file=api&v=2&client=gme- yourclientid&sensor=true_or_false" type="text/javascript"></script> ========= For performance reasons, we would like to some how defer the load of this API (execution of this dynamic javascript), until some trigger takes place (like button click/ link click and basically avoid loading onload of page). I have already tried options to explicit load the javascript dynamically using something as below, but this resulted in failure to load API function loadScript(){ var script = document.createElement("script"); script.type = "text/javascript"; script.src = "https://maps-api-ssl.google.com/maps? file=api&v=2.99&sensor=false&client=gme-uhs"; document.appendChild(script); } ========================= I also tried google ajax loading, but I believe that if for use of google ajax api loading and not for google javascript loading. Any suggestion in this regards will be helpful. Thanks, J -- 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.
