Search Optimization
  Home arrow Search Optimization arrow Page 6 - Optimizing a JavaScript Site for Searc...
SEO Chat Forums  
Choosing Keywords  
Google Optimization  
Link Trading  
MSN Optimization  
Search Engine News  
Search Engine Spiders  
Search Optimization  
Web Directories  
Website Marketing  
Website Promotion  
Website Submission  
Yahoo Optimization  
SEO Tools
Adsense Calculator
AdSense Preview
Advanced Meta-Tags
Alexa Rank Tool
Check Server Headers
Class C Checker
Code to Text Ratio
CPM Calculator
Domain Age Check
Domain Typos
Future PageRank
Google Dance
Google Keywords
Google Search
Google Suggest
Google vs Yahoo
Indexed Pages
Keyword Cloud
Keyword Density
Keyword Difficulty
Keyword Optimizer
Keyword Position
Keyword Typos
Link Popularity
Link Price Calculator
Meta Analyzer
Meta Tag Generator
Multiple Link Popularity
Page Comparison
Page Size
PageRank Lookup
PageRank Search
Robots.txt Generator
ROI Calculator 
S.E. Comparison 
S.E. Keyword Position 
Site Link Analyzer 
Spider Simulator 
URL Redirect Check 
URL Rewriting 
Mobile Linux 
APP Generation ROI 
IBM® developerWorks 
SEO Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
SEARCH OPTIMIZATION

Optimizing a JavaScript Site for Search Engines
By: Jennifer Sullivan Cassidy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 15
    2005-11-09

    Table of Contents:
  • Optimizing a JavaScript Site for Search Engines
  • Drawbacks of JavaScript in Respect to SEO
  • Content Positioning
  • Keyword Density, Navigation, Link Strategies
  • Functionality and Optimization
  • Move the Code
  • Navigation and Effects
  • Noscript Tags
  • Your Sitemap

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Optimizing a JavaScript Site for Search Engines - Move the Code


    (Page 6 of 9 )

    Now, let’s move the JavaScript to an external file.  Open a text editor, like Notepad; cut and paste the section of code right after the <!-- symbols and right before the //--> symbols into your editor.  Save your file, making sure to name it something like date.js, using the drop down box in your text editor to save as all files, not *.txt.


    Figure-5: Save As *.js

    Now, you need to point the browser to the off-loaded script by referring to it in your HTML file like in the next example.

    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>My Website</title>
    <script src="date.js" language="javascript" type="text/javascript"></script>
    </head>
    <body>
    <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Duis ligula lorem, consequat eget, tristique nec, auctor quis, purus. Vivamus ut sem.</p>
    </body>
    </html>

    Example-2: JavaScript Date Function off-loaded

    So by using an external JavaScript file, you now have 10 lines of code instead of over 50 lines, with exactly the same end result.  By off-loading your JavaScript, you get the same date function in the corner of the webpage, like in Figure-1, as well as eliminating over 40 lines of code in your HTML that the search engine spider would just disregard anyways.  Plus, you’ve moved your important content farther up in your page where it receives more weight of relevancy by a search engine during a search query, as well as giving your keywords better density, and your page an overall better text to code ratio.


    Figure-6: New Ratio with off-loaded JavaScript

    More Search Optimization Articles
    More By Jennifer Sullivan Cassidy


       · What experience do you have in optimizing JavaScript? What are some obstacles...
       · I am in the middle of a site restructuration, the site is for a major brand and as...
       · Unfortunately, for SEO to be effective for your client, they really need to listen...
       · Jennifer,I understand the gist of your article, but how does google, for...
       · Googlebot views the javascript of AdSense the same as they do any other JavaScript:...
     

    SEARCH OPTIMIZATION ARTICLES

    - More Blogging Tips: Cooking with Gas
    - Blogging Tips from Julie and Julia
    - SEO Essentials: the Proper Web Server and Pl...
    - Steps to Higher Rankings and Traffic
    - Building Linkable Pieces and Titles
    - Page Rank Sculpting
    - Page Rank Optimization
    - ClickTale Review
    - Final Issues: Moving Blogger to WordPress wi...
    - Avoid the Mistakes New SEOs Make
    - Move Your Blogger Blog to WordPress: Getting...
    - How to Move from Blogger to WordPress Using ...
    - Must Have WordPress SEO Plugins
    - Creating Search Engine Friendly URLs with PHP
    - Online Reputation Management with SEO





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
    Stay green...Green IT