Not only Google, but yahoo also has a similar exaggeration in official documents: try to use text information that can be recognized by search engines to prevent too many complicated technologies such as JavaScript, cookies, frameworks, DHTML, and Flash. Although Baidu does not provide a clear description, after a few practices, Baidu cannot identify JavaScript.
Not only Google, but yahoo also has a similar exaggeration in official documents: try to use text information that can be recognized by search engines to prevent too many complicated technologies such as JavaScript, cookies, frameworks, DHTML, and Flash. Although Baidu does not provide a clear description, after a few practices, Baidu cannot identify JavaScript.
This leads to a question. too many JavaScript code in the webpage is undoubtedly about the difficulty of searching engine research webpage content. assuming that links in the webpage are also composed of many JavaScript, therefore, the search engine cannot even crawl webpages along the links. In this way, the excessive use of JavaScript has the following impact:
- The content of the search engine research webpage is annoying.
- Affects the keyword density.
- This severely hinders search engines from capturing webpages.
- This affects the distribution of webpage weights due to link attacks, which is often reflected in PageRank.
The effects of crawling and link weight can also be compensated by external links, but the first and second points cannot be easily saved.
How can I use JavaScript without affecting the effect of the web page and the search engine?
- Try not to use JavaScript in navigation or other links. Navigation and links are the foundation for the search engine to capture web pages. if the search engine cannot capture web pages, it means that the web pages will not be displayed in the index results, so there is no way to talk about rankings.
- Avoid using JavaScript for content as much as possible. In particular, for partial content related to keywords, try to avoid using JavaScript for display. Otherwise, the keyword density is undoubtedly increased.
- It is really necessary to use a part of JavaScript to place this part of JavaScript script in one or several. js files, so as to avoid disturbing the crawling and research of search engines.
- It cannot be placed in. some JavaScript scripts in the js file are placed at the bottom of the html code. Before that, the search engine will find it when studying the webpage, increasing the annoyance of the search engine.
The above methods eliminate the negative effects of JavaScript on search engines. On the other hand, a thing usually has advantages and disadvantages. The use of JavaScript is also the case. it is not necessarily good to use JavaScript. using JavaScript at a certain level has a good effect on SEO, that is, a positive effect.
We have mentioned that the search engine cannot identify JavaScript (although Google has made a distinction on a small amount of simple JavaScript code, it should only be simple code such as Document write ). From another perspective, we can use JavaScript to filter some junk information.
What is spam information? From the SEO perspective, it is not only useless research on search engine crawling, but also unfavorable information about keyword density, such as annoyance. Generally, these "junk" information includes advertisement, copyright statement, a small amount of export links, and information unrelated to the content. We can throw the junk information into one or more. js files to increase the annoyance about the actual content of the page, increase the keyword density, and display the page content center to the search engine.
This article is available at http://www.nowamagic.net/librarys/veda/detail/1726.