execution order of the ready function when there are number of scripts
<p>My page uses number of javascript files(inside the <code>&lt;head&gt;</code> tag, which all of them havs a $(function(){...})</p>

<pre><code>&lt;head&gt;
     &lt;script type="text/javascript" src="jquery-1.7.min.js"&gt;&lt;/script&gt;

     &lt;script type="text/javascript" src="A.js"&gt;&lt;/script&gt;
     &lt;script type="text/javascript" src="B.js"&gt;&lt;/script&gt;
      ...
     &lt;script type="text/javascript" src="E.js"&gt;&lt;/script&gt;
&lt;/head&gt;
</code></pre>

<p>so what i would like to know, is this:</p>

<p>1) does the ready function of script A ($(function(){....}) will wait until all the rest of the scripts loaded(A till E)?</p>

<p>2) does the order of all ready functions  <strong>necessity</strong> executed in the order of the files inside the <code>&lt;head&gt;</code> tag ( <strong>e.g</strong> -first ready function of A....and last- ready function of E)?</p>

<p>the reason i am asking all of this, is because there is some dependences between the scripts. so that ready function of B need to be executed only after the ready function of A <strong>done</strong>, etc...</p>
