Monday, May 13, 2024
 Popular · Latest · Hot · Upcoming
108
rated 0 times [  111] [ 3]  / answers: 1 / hits: 30048  / 15 Years ago, sun, may 17, 2009, 12:00:00

I am using Google Maps API to display a map on a certain page.



Problem is that the file http://maps.google.com/maps?file=api..... sometimes happens to load very slow - decreasing the page's performance, because the rest of the JavaScript is first loaded on document ready, which its rarely reaches - because the browser locks up waiting for the file from Google.



I have tried to move the JavaScript file from the <head> tag to under my content. But the rest of the JavaScript is never fired because the browser waits for the file from Google.



Is there a way around this, or have anyone else experienced same problem? It began recently, and I have no idea why.



This is my code, if anyone is interested:



<script type=text/javascript src=http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=true&amp;key=ABQIAAAAa24xicak8_ghHX58i7La7hRFh9iM79SNC94rOejOtdMRvQmJiBS6Uv5F_1BNSh9ZuSzFXyekHISgew>    </script>
<script type=text/javascript src=/js/maps.js></script>
<script type=text/javascript>
$(document).ready(function() {
// Google Maps
initialize();

// Other JavaScript comes here....

});
</script>


If I access



http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=true&amp;key=ABQIAAAAa24xicak8_ghHX58i7La7hRFh9iM79SNC94rOejOtdMRvQmJiBS6Uv5F_1BNSh9ZuSzFXyekHISgew


The file loads instantly.


More From » google-maps

 Answers
6

This is a rather old question now - the solution was to disable firebug (atleast for me).


[#99515] Wednesday, May 13, 2009, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ervindouglasm

Total Points: 451
Total Questions: 103
Total Answers: 102

Location: Turkmenistan
Member since Thu, Dec 1, 2022
1 Year ago
ervindouglasm questions
Tue, Jul 20, 21, 00:00, 3 Years ago
Wed, Jan 6, 21, 00:00, 3 Years ago
Fri, Nov 13, 20, 00:00, 4 Years ago
Tue, Oct 6, 20, 00:00, 4 Years ago
Tue, Aug 25, 20, 00:00, 4 Years ago
;