In the two major search engine camp, a lot of practice proves that Baidu's handling of Javascrip is not ideal and Google's processing is better.
The presence of a large number of JavaScript in a Web page can add difficulty to search engine crawling. Its main effects are as follows:
1. Interference Search spider for content analysis
2. Virtually reduces the keyword density
3. Affect the distribution of page weights
So how to effectively avoid such problems, JavaScript in the Web design process must be used, for the solution of this problem we can only effectively avoid and can not be completely avoided. Avoid these problems mainly from the following aspects:
1. Try not to use JavaScript drop-down menu in the navigation, this question I already mentioned in many articles, the navigation does not want to be good-looking and uses the JavaScript effect or the flash completes, that is extremely unfavorable to the SEO.
2. Links in the Content section of the article try not to use JavaScript to show, especially some sites on the production of links using JavaScript to produce div effect, so there is no substantial benefit to SEO, Should be as close as possible to the standard link. If you really have to use, you can refer to the page rewrite to achieve the effect, Spider is a special browser, so you still have to pay attention to their website HTML source www.cttxakh.com
3. As much as possible to write more than one JS file to improve the page load speed. Whether in the user experience or spider browsing, Web page loading speed to improve the SEO are good, use WP to create a blog when the profound experience, loading a combined JS than loading more than 2 JS speed will be greatly improved.
4. Try to place JS at the bottom of the page code. JS parsing needs to call multiple sets to complete, put on the bottom not only to speed up the page loading speed, but also effectively avoid spiders on the large number of JavaScript code analysis.
To JS Test, Google do better than Baidu, but in the search engine technology is not fully adapted to JS, the site content or to try to use less JS
The impact of JavaScript on SEO