Does ready() execute asynchronously?
<p>This is a common idiom:</p>

<pre><code>&lt;html&gt;
&lt;head&gt;
&lt;script&gt;
    (function($) {
        $(document).ready(function(){ 
            // some jQuery/JavaScript in here
        }
    })(jQuery);
&lt;/script&gt;
&lt;/head&gt;
....
</code></pre>

<p>So we using a JavaScript immediate function which executes some jQuery. Now usually, it is advised to put JavaScript down the end of the page to allow progressive rendering. My questions are:</p>

<ol>
<li>If you are using JavaScript in the head, what difference does it make if you make the function execute immediately?</li>
<li>Will <code>${document).ready(...)</code> block excution, or does it happen asynchronously?</li>
</ol>
