Googlebot会抓取对使用JavaScript制作的DOM的更改吗? [英] Will Googlebot crawl changes to the DOM made with JavaScript?

查看:96
本文介绍了Googlebot会抓取对使用JavaScript制作的DOM的更改吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于SEO,我的任务是向所有外部链接添加 rel =nofollow

For SEO, I have been tasked with adding a rel="nofollow" to all external links*.

向每个外部链接添加 rel =nofollow的最简单且最不显眼的方法是使用一些jQuery。我做得很好但我现在想知道:

The simplest and least obtrusive way to add rel="nofollow" to each external link is with some jQuery. I've done this fine but I'm now wondering:

Google是否看到jQuery文档加载到DOM(例如这个)时所做的更改或仅看原始源代码?

Does Google see changes made during jQuery's document load to the DOM (such as this one) or does it only see the original source code?

我不想讨论为什么这是个坏主意。这是一个SEO顾问的决定,我已经了解到,除非他们最新的心血来潮的实施需要花费太多时间才能满足他们想要的东西

推荐答案

看起来谷歌蜘蛛确实执行了一些 JavaScript,但我不相信它会执行像jQuery这样的大型库..

It looks like Google spider does execute some JavaScript, but I do not believe it would execute large libraries like jQuery..

请查看采访Matt Cutts


Matt Cutts 有一段时间,我们在JavaScript中扫描,我们
正在寻找链接。谷歌已经变得更聪明的JavaScript和
可以执行一些JavaScript。我不会说我们执行所有
JavaScript,所以在某些条件下我们不执行
JavaScript。当然有一些常见的,知名的JavaScript
之类的东西,比如Google Analytics ,你甚至不想执行
,因为你不想尝试从
Googlebot生成幽灵访问到你的Google Analytics

还有一些有关Google Spider改进的更多详细信息(JavaScript / AJAX支持) Google网站管理员中心博客

There are also some additional details on Google Spider improvements (JavaScript/AJAX support) on Google Webmaster Central Blog

这篇关于Googlebot会抓取对使用JavaScript制作的DOM的更改吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆