Using getScript in a main.js file to reduce load size
<p>Does it make sense to make use of <code>$.getScript();</code> in jQuery to do something like the following:</p>

<pre><code>$("#action-one").click(function() {     
    $.getScript('scripts/action-one.js');
});

$("#action-two").click(function() {     
    $.getScript('scripts/action-two.js');
});
</code></pre>

<p>Would reduce the size of your main.js file making load times faster? Also means code is only ever loaded if it's used, could come into issues if the same code is loaded over and over though ..</p>

<p>(I'm not doing this at the moment but it just crossed my mind if you have very large js files)</p>
