title: Is there any way to detect when a CSS file has been fully loaded?
body: <p>I've been testing a lot of lazy-loaders for JavaScript and CSS that insert &lt;script&gt; and &lt;link&gt; tags to load files. However the problem is, that <code>&lt;link&gt;</code> tags don't fire <code>onload</code> so it's difficult to detect when they're loaded. The only workaround I found for this is to set <code>display: none;</code> (in the CSS file that is to be loaded) on a dummy element and poll that element to check when it has been set to display: none. But that, apart from being ugly, of course only works for a single CSS file.</p>
  
  <p>So I was wondering; Is there any other way to detect if a CSS file has been loaded?</p>