15 Oct
Posted by Google Success as Search Engine, SEO Tips, SEO Mistakes
Many websites use Javascript these days in their code. Javascript can definitely make your web pages more exciting, dynamic and interesting for the user, but it can certainly harm your search engine optimization (SEO) efforts.
Most search engines do not interpret Javascript, and those that do interpret Javascript mainly want to find if your site is using sneaky redirects to cheat the search engine. Also, when a search engine spider visits your site, it tries to gather most important information about your site from the text towards the top of your code . For better search engine ranking, you should make sure that you have a high keyword density for the words you are targeting within the first 200 words or so. If you have a Javascript menu at the top, it will put lot of code associated with it in the header section of your pages thus pushing all of your important content further down the page. Thus, Javascript can be detrimental to your search engine placement by diluting your keyword density.
So what’s the solution? Well, it is better to avoid Javascript and use HTML text links instead of Javascript menus. Search engine spiders can crawl text links much easier and will index your most important pages faster. Another technique to avoid dilution of keyword density is to place the Javascript code in an external file and name it with .js suffix. You can then call the Javascript in your page by inserting a single line of code such as
Thus, by placing your Javascript into a separate external file, your website will be more ’search engine friendly’.
Technorati Tags: Javascript, search engine optimization, SEO, search engine ranking
2 Responses
Henry
March 26th, 2007 at 7:56 pm
1So I’ve just started using javascript. I’m not interested in ’sneaky redirects’. I use CSS for my menu. I am using javascript basically to trigger the display property in CSS so that some text is hidden until users ask for it. The javascript functions are in an external file. Do you think this will hurt the ranking?
Tom
May 5th, 2008 at 4:19 pm
2Placement of Javascripts into an external file always makes sense for better SEO especially for Internet stores where dynamic content is extensively used and in common supplied with the e-commerce software. The right e-commerce package and capabilities of the provider could save the cost of Web site development and deliver the proved expertise out-of-the-box.
RSS feed for comments on this post · TrackBack URI
Leave a reply
Recommended SEO Tools
Categories
Meta
Syndicate
Archives
Blogroll