Event which triggers when stylesheets, not only the DOM, are loaded on the page
<p>I tried to use the <a href="http://api.jquery.com/ready/" rel="nofollow">http://api.jquery.com/ready/</a> callback for executing a code, which I would like to get started only when the page is fully loaded. However, this triggers when the DOM is loaded, and it can often happen that the stylesheets are not loaded fully.</p>

<p>How can I ensure that a particular code is loaded after DOM and also the stylesheets (or even everything) are loaded? I found some similar questions (like <a href="http://stackoverflow.com/questions/8681440/is-there-event-that-triggers-after-dom-was-loaded-but-before-any-external-assets">this one</a>), but they are not about stylesheet loading, which I am particularly interested in.</p>

<p>Thanks for suggestions.</p>
