Using event handlers on document before the DOM is loaded
<p>Would it be ok to add an <code>ajaxStop()</code> event handler to the <code>document</code> before the DOM is loaded? It isn't related to any DOM elements, so as far as I can tell it shouldn't matter. Am I right?</p>

<pre><code>$(document).ajaxStop(function () {
    console.log('ajax complete');     
});
</code></pre>

<p>vs</p>

<pre><code>$(function(){

    $(document).ajaxStop(function () {
        console.log('ajax complete');     
    });

});
</code></pre>
