How to register js files at the end of a asp.net document instead of within the ScriptManager
<p>In certain circles best practices suggest registering JavaScript files (js) at the end of a document to allow the DOM to completely load before invoking the js. This makes total sense but the question I have is if you are working with an asp.net webform and due to the postbacks I need to register the js files with the scriptmanager</p>

<pre><code>&lt;asp:ScriptManager ID="ScriptManager1" runat="server"&gt;
        &lt;Scripts&gt;
            &lt;asp:ScriptReference Path="~/js/jquery-1.7.js" /&gt;
            &lt;asp:ScriptReference Path="~/js/jquery.simplemodal-1.4.2.js" /&gt;
&lt;/Scripts&gt;
&lt;/asp:ScriptManager&gt;
</code></pre>

<p>Since the script manager has to be at the top of the document before any ajax features can be invoked it seems as if I am stuck registering the .js files at the beginning of the document. 
Is this correct and are there other alternatives to registering the files at the bottom of the page to help boost page performance (aside from minifying the scripts. The above example is just a sample and not production code). Moving the js files outside of the script manager results in the pages loosing reference to the js file after the initial postback.</p>

<p>Cheers</p>
