JavaScript - Why does google-maps wait until jquery finishes download?

Posted by Teddyk on Stack Overflow See other posts from Stack Overflow or by Teddyk
Published on 2010-05-10T16:41:04Z Indexed on 2010/05/10 16:44 UTC
Read the original article Hit count: 383

I'm using the following Google Maps autload (asynchronous) to load asynchronous both Google Maps v3 and JQuery, like so:

<script type="text/javascript" src="http://www.google.com/jsapi?autoload={ "modules":[ {name:"maps",version:3,other_params:"sensor=false"},{"name":"jquery","version":"1.4.2"},{"name":"jqueryui","version":"1.8.1"} ]}"></script>

However, looking at the network traffic, it appears that it is not downloading asynchronously.

alt text

Question: Does anyone understand why the %7Bcommon (google-maps) file is being delayed from download until the jquery-ui.min file completes download first?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about asynchronous