public
Last active

Non-blocking JavaScript Downloads, with jQuery

  • Download Gist
gistfile1.html
HTML
1 2 3 4 5 6 7 8
<script src="scripts/jquery.js" type="text/javascript"></script>
<script type="text/javascript">//<![CDATA[
var js = ["scripts/jquery.dimensions.js", "scripts/shadedborder.js", "scripts/jqmodal.js", "scripts/main.js"];
var $head = $("head");
for (var i = 0; i < js.length; i++) {
$head.append("<script src=\"" + js[i] + "\" type=\"text/javascript\"></scr" + "ipt>");
}
//]]></script>

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.