Modernizr - Loading javascript and css parallelly

A library could load javascript and css async and parallel. and also and can judge the feature existance of browser.

Modernizr.

And this one looks good also.

http://www.andresvidal.com/jsl

1
2
3
4
5
6
7
8
jsl.add("http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js", -1);
jsl.add("http://ajax.googleapis.com/ajax/libs/jqueryui/1.5.3/jquery-ui.min.js", 1);
//in this example, this loads in 0 position
jsl.add("http://mysite.com/js/global.js"); 
//needs jQuery and jQueryUI first
jsl.add("http://mysite.com/js/jqueryscripts.js", 2);
jsl.add("http://mysite.com/js/plugins.js", 3);
jsl.load();
blog comments powered by Disqus