Enhance Script Performance
by Geethalakshmi[ Edit ] 2010-09-16 20:59:12
Enhance Script Performance
A Simple way to enhance script performance is to cache the entire script, by including it in a .js file. The technique causes the browser to load the script in question only once, and recall it from cache should the page be reloaded or revisited.
<script type="text/javascript" src="imagescript.js"></script>
Use script caching when a script is extremely large, or embedded across multiple pages.