http://www.phpied.com/when-is-a-stylesheet-really-loaded/
Using this solution has worked great for loading a stylesheet with a callback, except in Chrome.
In Chrome (v18) I can still see the CSS being applied, which screws up some other functions that depend on the height and width settings from the dynamically loaded CSS.
Any ideas???
Thanks!
In WebKit, you can poll for changes to document.styleSheets, here is a function that do that in lazyload (taken from https://github.com/rgrove/lazyload/blob/master/lazyload.js)
Or just use that plugin it does js too 🙂