Find out when all content has really finished loading
<p>Is there a reliable cross-browser solution to find out when <strong>all</strong> content on the website has finished loading? As I have a lot of stuff to load (some of which is in iframes), this doesn't really work (the event is fired even though browser's loading indicator is still spinning):</p>

<pre><code>$(window).add('iframe').bind('load').promise().done(function() {
    alert('Too early :(');
});
</code></pre>
