why use external javascript?
<p>What are pros of using an external javascript file? I just can't figure it out, I see big websites using them all around several times instead of server-side includes. Is it just for caching?</p>

<p>If it's a matter of clean code and seperation of concerns, then you can still include it from the serverside into the html. For example I use SMARTY and I can just include the file <code>{include file='javascript.js}</code> inside <code>&lt;script&gt;&lt;/script&gt;</code> tages.
If it's for performance I can't see anything other than an extra http request that makes the external file slower involved. I'm sure I must be missing something because all the big websites still do this. </p>

<p>Is it because of caching the file? my javascripts are dynamic and shouldn't be cached anyway. </p>

<p>could someone help me out to make the right decision to choose what to do with my javascript files.</p>

<p>ps:can a 1.5K user create a tag for external-javascript?</p>
