Does google crawl javascript? [closed]

2019-01-20 12:47发布

问题:

Does Google crawl content loaded/created via Javascript? Traditionally I know the answer was no, but I'm having trouble finding up-to-date sources on this.

回答1:

Google understands some parts of the code and can render thumbnails of javascript pages, but I would never rely on this for my pages to be indexed. The best is to create number of html pages just as google webmaster suggests. Dont forget to put sitemap as well.



回答2:

I can't write just one word or it would be "NO", the reason being, a crawler can't execute events like a "mouseover" on every element to change the DOM and wait for ajax responses etc... Think about all the work the crawler would have to simulate to read DOM changes that may or may not happen. This would produce different content for the same URL, so it assumes to never do that so your content appears to be the same from an SEO standpoint. Does that help a little more?