Import ordering of js file
<p>A library is imported on a jsp file : </p>

<pre><code>&lt;script type="text/javascript" src="mylibrary.js"&gt;&lt;/script&gt;
</code></pre>

<p>Code is then executed further in the .jsp which requires this library : </p>

<pre><code>&lt;script type="text/javascript"&gt;
//various calls take place to myLibrary.js
&lt;script&gt;
</code></pre>

<p>I want to extract the javascript functions/function calls into an external .js file. So replace : </p>

<pre><code>&lt;script type="text/javascript"&gt;
//various calls take place to myLibrary.js
&lt;script&gt;
</code></pre>

<p>with : </p>

<pre><code>&lt;script type="text/javascript" src="newfile.js"&gt;&lt;/script&gt;
</code></pre>

<p>Where 'newfile.js' contains the functions/function calls.</p>

<p>Does this mean I will need to import "mylibrary.js" within "newfile.js" ?</p>

<p>What is the import ordering of javascript/jquery ?</p>
