Is it good practice to have "page specific" javascript includes? ( eg "onlyUsedOnOnePage.js" )
<p>I guess this is a pretty beginner question, </p>

<p>I know that generally you will have a 'myCustomScript.js' file on a site.  But if you have lots of Javascript that is only applicable to one page or another does it make sense at all to have .. ?</p>

<pre><code>sitewide.js
pageX.js
pageY.js
</code></pre>

<p>I just haven't really seen this before, and I wonder why (maybe because the amount of "page-specific" javascript would be negligible in most cases?).  But I have 2 big chunks that are only being used on their respective pages and it seems to make sense in the interest of cutting down pageload to split them up.  Bad idea?</p>

<p>//// EDIT /////</p>

<p>I think I have just seen another response that gives me the answer.  "In small amounts it really doesn't matter".  </p>

<p>So how much .js code is worth one extra request?  If I have 'x' lines of code in "thisPageOnly.js' .. how many lines would that have to be to justify an extra request?</p>
