Monday, November 12, 2007

How To Optimize A Website Using JavaScript

Search engine optimization of website for better search engine positioning is the most cost- efficient way of web site marketing. Every search engine’s crawler has different algorithms to rank their results. As you prepare to launch your newly designed website you should keep in mind two important points:

  1. Make it easy for the search engine crawler to index your website
  2. Make sure your content is optimized for top rankings

Below are few points that describes How to Optimize a Website Using JavaScript

  1. Adding set of links in the noscript pair of tag would enable the search engine crawler to get to the links at the top of the page! Thus, adding a list of the main navigation links in plain HTML between the noscript can be a useful way of assisting the web crawler in accessing the most important pages of the site.
  2. Place your JavaScript at the end of your HTML file: Having script tags in your header can also be a great pain for your website ranking so the easy way out to this can be by moving the script to the bottom on the page.
  3. Putting Breadcrumb links and bottom navigation links so that even if the search engine spiders are unable to follow the links built into the JavaScript code, the crawlers would be able to navigate throughout the rest of the site following the secondary navigation.
  4. Load JavaScript On-Demand: You can load an arbitrary JavaScript file from any domain using the import function in the Code.
  5. Compress Your JavaScript first, try to make the JavaScript file smaller itself. There are lots of Tools to “crunch” your files by removing whitespace and comments. You can do this by online tools available, but these tools can be finnicky and may make unwanted changes if your code isn’t formatted properly. Also debugging compressed JavaScript can be really difficult because the variables are renamed. So creating a “debug” version of your page that references the original files. Once it gets tested and the page works, pack it, test the packed version, and then deploy.
  6. Creating Library Files: It can also be helpful to combine smaller files into a larger one, especially if they don’t change often. This reduces the number of requests the browser makes.
  7. There should be regular HTML links throughout the body of your page in addition to implementing bottom (or footer), side/top navigation, as well as breadcrumb navigation.
  8. Having a sitemap can be another good way of providing access to the most important links of the website so that a web crawler can follow them and index the whole site.
  9. Select several two-three word keyword phrases and place them within the page title, the Meta tags, and most importantly, throughout the body of the page.

No comments: