Google’s Cutts Answers Question About Blocking JavaScript

Another helpful video from Google’s Matt Cutts, where he answers a question in a Webmaster Help video.

John Mueller from Zurich:

“Googlebot keeps crawling my JavaScript and thinking that text in my scripts refers to URLs. Can I just disallow crawling of my JavaScript files to fix that.”

Basically Matt would strongly discourage anyone from blocking Google from ALL JavaScripts. If there’s one individual JavaScript file that’s the source of the problem, you could disallow it using the rel=”nofollow” attribute. The same also applies to CSS.

He says, “It turns out, as we’re executing JavaScript, we do look at the attributes, so you can actually use JavaScript, and put like a nofollow attribute on individual URLs, and so it is the sort of thing where you can do link level granularity there. And you can block, for example, an individual JavaScript file, but in general, I would not recommend blocking all of your JavaScript files.”

Free Graphics, Icons, Tutorials
Free Graphics Free Fitness Vector Icons Graphics PackFree Camping Vector Graphics PackFree Summer Graphics PackFree File Icon PackFree Fast Food Vector GraphicsFree Music Controls Vector Icon Pack
Sharing is caring...
Like & Follow
Share the love, share this page! Facebook Twitter Google Digg Reddit LinkedIn Pinterest Email
Close [X]
The Web Taylor
1000 Lakeside North Harbour Portsmouth, Hampshire PO6 3EN
02392 123358