 |
Optimising Scripts for the Web |
 |
|
Faster Scripts:
- Use external files; these can be cached by the browser so subsequent pages that use the file will load faster
- Use <script defer> for scripts that do not generate page content (Internet Explorer 4 and above)
- Use comments sparingly
- Create generic functions that use arguments
- Create pages that still function if scripts are turned off (W3C Checkpoint 6.3 (Priority 1))
|
|
 |
|
 |