JavaScript: Foe of Search Engine Optimization?
Legacy signals
Legacy popularity: 1,190 legacy views
For SEO professionals, the use of JavaScript has been controversial. It’s extensively applied to validate forms, detect browsers and enhance web site functionality, but anyone with some knowledge of SEO would tell you that JavaScript may hinder search engine crawlers, making part of a site invisible to search engines.
Here’s what Google says on how use of JavaScript negatively impacts indexability of a website:
“Use a text browser such as Lynx to examine your site, because most search engine spiders see your site much as Lynx would. If fancy features such as JavaScript, cookies, sessio
IDs, frames, DHTML, or Flash keep you from seeing all of your site in a text browser, then search engine spiders may have trouble crawling your site.”
http://www.google.com/support/webmasters/bin/answer.py?answer=35769nn“Google Site Search isn’t able to index content contained in JavaScript. The general rule for making sure that a web page can be indexed by Google is to ensure that all of the text that needs to be indexed is visible in a text-based browser, or a browser with JavaScript turned off.”
http://www.google.com/support/customsearch/bin/answer.py?answer=72366nnYahoo has similar statements on its inability to crawl websites which use JavaScript excessively.
How devastating could JavaScript actually be? Generally speaking, if not properly used, it may do the following to your SEO efforts:nn * It may hamper the ability of search engine crawlers to read page content.
* If used in navigation, it may prevent crawlers from seeing the links.
* It may change keyword density in your text content.
* It may change link juice distribution, page weight and PR.
Despite all the obstacles JavaScript may present to SEO, many web designers are still huge fans because it creates dynamic web pages that html codes can hardly achieve.
So if you have to use JavaScript in website development, is there any way to minimize its negative impact on SEO? Here are some tips:nn * Never use JavaScript in navigation menus and internal links which play a vital role in guiding search engines to the web pages in order to create entries for index. Obviously, if a web page cannot be crawled, it won’t be indexed. If you just want to use JavaScript to make a dynamic navigation menu, you can achieve similar but much more SEO-friendly result by using DHTML and CSS.
* Try not to use JavaScript in page content, either. Pay special attention to content text that you’ve created to achieve desired keyword density. Otherwise, keyword density could be diluted.
* If JavaScript has to be used, use “document.write” or place the script in .js files.
* If you’re not able to place JavaScript in .js files, place it unde
eath the html code to reduce the disruption that it may cause.
Bonus Tip:
JavaScript has its Yin and Yang. While SEOers suggest using JavaScript cautiously, it can actually benefit SEO by preventing search engines from crawling pages that you want to hide (mind you, “no-follows” in your meta can do some of this job, too!), such as ads, terms of use and privacy statements. You can place all these content in .js files to increase relevance of your web site.
Article author
About the Author
Further reading
Further Reading
Article
Self Mastery As A Way Of Life
Old habits die hard, as the saying goes. And one habit that most of us share—and find difficult to both notice and shake—is our tendency to run “on automatic.” Unconscious patterns of thinking, feeling, and behaving are often the silent saboteurs of self mastery in our ...
Related piece
Article
Benefits of a transition plan when selling your business
For most owners of a privately held company, when the time is right they want to sell their business for the highest price possible in the quickest time possible and live happily ever after. There is nothing too complicated in that and at a basic level, that’s perfectly fine. However, a question to ask is whether the business owner wants to sell the business or is their preference to transition the business?
Related piece
Article
How a business transition plan enhances selling your business
A transition plan that allows the business owner to sell the business for the highest price possible in the shortest amount of time to the most qualified buyer is generally the top of the wish list for most business owners. Because the business owner lives and breathes their business they become emotionally attached to their customers, employees, suppliers and other business partners as the business is a reflection of who they are.
Related piece
Article
Importance Of Terms When Buying Or Selling A Business
In the initial stages of listing a business for sale, all the attention is placed on getting the business in shape so it presents as strongly as possible, sometimes doing a business valuation to arrive at the most appropriate listing price for the business and discussing the tax implications to the seller of the business. Tom West is the owner of Business Brokerage Press and he has a great saying that most sellers and buyers don’t understand until they get into the negotiations of the transaction and it is – You name the price and I’ll name the terms.
Related piece