 <p>What the commenters have suggested is that all the javascript should be placed on external files. According to my understanding what you are doing is:</p> <pre><code>&lt;script language="javascript"&gt; your code here &lt;/script&gt; </code></pre> <p>Instead you should have.</p> <pre><code>&lt;script src="myjavascript.js" type="text/javascript"&gt;&lt;/script&gt; </code></pre> <p>Then your javascript files will be automatically cached by the browser.</p> <p>MindFold also goes on to suggest using google's CDN . which is a good suggestion. Of course you can only use it for popular libraris like Jquery. </p>