31
I want to load CSS files on demand (by eg. running an XML HTTP request which returns the CSS files to be loaded) for example style1.css, style2.css ..
So is there a way in jQuery (or a plugin) to this?
- bulk-loading several files + adding all those CSS-files into the dom
- when finished loading: firing a callback (like alerting "all stylesheets are finished loaded!");
the idea is: loading html via xmlhttp, loading +adding required css-files,
then - after anything is finished, display that html.
any idea?
Thanx!