repeated setTimeout() with 1 milisec
<p>Here is a piece of code from the jQuery source (bit.ly/jqsource):</p>

<pre><code>// The DOM ready check for Internet Explorer
function doScrollCheck() {
    if ( jQuery.isReady ) {
        return;
    }

    try {
        // If IE is used, use the trick by Diego Perini
        // http://javascript.nwbox.com/IEContentLoaded/
        document.documentElement.doScroll("left");
    } catch(e) {
        setTimeout( doScrollCheck, 1 );
        return;
    }

    // and execute any waiting functions
    jQuery.ready();
}
</code></pre>

<p>It is a hack to detect when the DOM is ready for IE. While theoretically this seems very beautiful, I'm a little concerned about <code>setTimeout( doScrollCheck, 1 );</code>, which means that the function <code>doScrollCheck()</code> is called 1000 times per sec before the DOM is ready.</p>

<p>Should I expect this to be a huge performance drain?</p>
