Question about "Put SCRIPTs at the bottom" advice
<p>I have read the advice about putting SCRIPTs at the bottom (e.g. <a href="http://stackoverflow.com/questions/383045/is-put-scripts-at-the-bottom-correct">Is &quot;Put Scripts at the Bottom&quot; Correct?</a>) and I understand the concept.</p>

<p>However, I have a doubt.</p>

<p>If I have an OnClick even that calls a JS function that will fail if the javascript include file has not loaded. I could work around this, but its pretty convoluted.</p>

<p>The nub of my thinking is that after the first page has loaded the script will be cached in the client's browser, so after the first page it won't make any difference to performance where I put the SCRIPT include directive, but it may well make a difference to my OnClick event.</p>

<p>I can see that loading some huge Javascript library is going to be slow, on the first page, potentially causing some/many users to "click off". But for the second-page onwards is there any benefit in having scripts at the end of page?</p>

<p>I'd be grateful for any clarification in case I'm being really thick and overlooking something important; thanks.</p>
