根据 this page,看起来他们没有,在他们实际上没有运行它的意义上,但该页面是2岁(从版权信息判断). 我问这个问题的原因是因为我们使用Javascript将我们网站上的文本替换为其他更具印刷效
我问这个问题的原因是因为我们使用Javascript将我们网站上的文本替换为其他更具印刷效果的内容.我们担心这可能会影响我们网站的可抓取性/搜索引擎优化,因为我们通常所取代的是标题;即. < h1>,< h2>等
搜索引擎机器人会看到我们的原始代码,还是会运行Javascript并查看替换的文本?
Google now officially processes JavaScript.In order to solve this problem, we decided to try to understand pages by executing JavaScript. It’s hard to do that at the scale of the current web, but we decided that it’s worth it. We have been gradually improving how we do this for some time. In the past few months, our indexing system has been rendering a substantial number of web pages more like an average user’s browser with JavaScript turned on.
- Sometimes things don’t go perfectly during rendering, which may negatively impact search results for your site. Here are a few
potential issues, and – where possible, – how you can help prevent
them from occurring:- If resources like JavaScript or CSS in separate files are blocked (say, with robots.txt) so that Googlebot can’t retrieve them, our
indexing systems won’t be able to see your site like an average user.
We recommend allowing Googlebot to retrieve JavaScript and CSS so that
your content can be indexed better. This is especially important for
mobile websites, where external resources like CSS and JavaScript help
our algorithms understand that the pages are optimized for mobile. If
your web server is unable to handle the volume of crawl requests for
resources, it may have a negative impact on our capability to render
your pages. If you’d like to ensure that your pages can be rendered by
Google, make sure your servers are able to handle crawl requests for
resources.- It’s always a good idea to have your site degrade gracefully. This will help users enjoy your content even if their browser doesn’t have
compatible JavaScript implementations. It will also help visitors with
JavaScript disabled or off, as well as search engines that can’t
execute JavaScript yet.- Sometimes the JavaScript may be too complex or arcane for us to execute, in which case we can’t render the page fully and accurately.
- Some JavaScript removes content from the page rather than adding, which prevents us from indexing the content.