Pages

Thursday, November 15, 2012

HeadJS, CSS loading.

Css loading has now been enabled in HeadJS.

All in all it works great. Load order is respected, and most browsers even trigger the callBack().

For now i would suggest that you only use it without the callBack requirement. Like this you can be sure that it will work across all browsers.


head.load("file1.css", "file2.css");


If you are really sure about what your browser audience is, then go ahead and use the callBack too!