« Evidence of Yahoo Crawling Google Sitemaps | Main | Here Lies ODP »

Externalize the Javascript

November 28, 2006

James Gunn

Externalizing your javascript is easy and will benefit you with smaller file size and cleaner code. Excessive javascript in your page HTML can make it harder for the search engines to crawl. It may also be mis-understood and come up in the search engine results pages as relevant content.

If you have access to your HTML

1. Cut all the javascript between the < script > tags and paste it into a text file.
2. Name the text file “anything.js� and place it on your server.
3. Place the following tag (to call the file) in your Page < Head >:

< script type="text/javascript" src="anything.js" > < /script >

If you have multiple javascript applications then use multiple .js files and tags.

see all posts by James Gunn
posted by James Gunn at November 28, 2006 05:01 PM
Intrapromote: [ Case studies | SEO services | Bios ]

Printer-friendly version

Comments

That made sense. Also to brign down the code/text ratio. Thx

Posted by: Annoncer at March 1, 2008 02:10 AM

Post a comment




Remember Me?


(you may use HTML tags for style)

Copyright 2005-2008 Intrapromote, LLC