After CSS rules are applied to all elements in the DOM, is there an event that triggers?
I am aware that the binding $(window).load()
from jQuery is fired when all JS and CSS files are loaded.
However, is there a specific event that occurs after the CSS rules have been applied? There seems to be a small delay of few milliseconds between applying them and dynamically including them. For example:
$('#design').attr('href', 'style.css') // design is a <link href="otherstyles.css">
.