How do I prevent JavaScript from blocking other JavaScript's from starting to download?
I have the following on my web site:
<html>
<body>
....
<script type="text/javascript" src="http://example.com/ex.js"></script>
<script type="text/javascript" src="http://google.com/google-maps.js"></script>
</body>
</html>
When I use the YSlow Firefox add-on, I can see from the network traffic tab that the google.com/google-maps.js
JavaScript won't start downloading until ex.js
has finishes downloading.
Question: How can I have both ex.js
and google-maps.js
begin downloading immediately and in parallel?