I'm developping a webapp for internal use in a company with a strict (and evolving) firewall.
I'm using yepnope.js / Modernizr.load to load js and css files from CDN with fallbacks.
But how do I know if a css was loaded successfully ? Is there a way to test successful loading and activation of a css ?
Thanks to the hint from @Morpheus, here is a solution :
First, in order to not depend on anything (jQuery, etc.) we need to define 2 functions :
from http://robertnyman.com/2006/04/24/get-the-rendered-style-of-an-element/
from https://stackoverflow.com/a/8122005/587407
Note that the previous function is tricky because of the delayed loading of css.
We can now use yepnope like this :