web site optimisation tutorial Search Engine Marketing Guide
search engine marketing tutorial search engine friendly design web site optimisation search engine and directory submissions online marketing contact Teresha
  Search Engine Marketing Guide    
Search Engine Friendly Design - JavaScript

In This Section
  Remove code bloat
  External JS files

Javascript is one of the most common causes of "code bloat". Search engines usually only read so far down a webpage (remember, the source code, not the visible page) and if the first half of it is taken up by javascript they may give up and go away before getting to your keyword rich text.

To ensure this doesn't happen simply put all of that page's javascript in an external js file. Not only will this increase your page's search engine friendliness, it will also make it faster to load.

To create a js file use a text editor and put any javascript code that you would normally place in the section of your web page into a separate file. This file should only contain your JavaScript code, no html. Then on your actual page, you put this in the < head > section:
< Script language="JavaScript" src="filename.js" >
< /Script >

Another solution is to place the javascript at the end of the page (in the source code) below all of the text and links. But this can sometimes cause problems with rollover buttons, interactive date scripts, banners and the like. If it does, use the external js file instead, especially if you use the same javascript on more than one page as you can call the same js file for all of them making it easier for the designer and decreasing overall download time.

It should be noted that if all of your navigation is done using javascript the search engines will not be able to follow your links. To ensure your entire site can be spidered make sure you use a noscript tag.

NEXT Step: Search Engines and CSS


Categories
 Home Page
  Market Research
  Keyword Research
  Copywriting for Search Engines
  Copywriting for the Web
  Architecture & Link Structure
  Frames
  Dynamic Sites
  Flash
  Splash Pages
  Tables
  JavaScript
  CSS
  SSI
  Robots.txt
  Site Redesigns
  Accessibility
  Titles and Meta Tags
  Alt Tags & Link Text
  Never Spam
  Static Pages
  Mini Sites
  Information Pages
  Doorway Pages
  Yahoo
  Open Directory
  LookSmart
  Regional and Industry Directories
 Search Engine Submissions
  AltaVista
  Fast Alltheweb
  Inktomi (MSN)
  Google
  Other engines
  Rank Monitoring
  Site Statistics
 Online Marketing
  Pay Per Click
  Paid Listings
  Newsletters
  Articles
  Email Campaigns
  Affiliate Marketing
  Offline Web Site Marketing
  Newsletters, Lists, Information Sites
  Design/Development Resources
  Searching the Web