import
including Javascript file include import inline direct
Submitted by inder on Tue, 10/28/2008 - 12:24.
You should include a JavaScript file in your pages. There are many ways to include javascript in your page.
This has several advantages:
- By updating one file, you update your script on all pages.
- The pages themselves become slightly lighter, because the include file is cached by the browser, so it doesn't have to be reloaded every time the user loads a new page.
- Including javascript file at top of page before body section inside head tag:-
![Validate my RSS feed [Valid RSS]](http://feedvalidator.org/images/valid-rss.png)