I’m adding a rel=nofollow
attribute to links via jQuery after the page load.
Will Google see this attribute? I can’t find anything in Google’s official documentation.
I’m adding a rel=nofollow
attribute to links via jQuery after the page load.
Will Google see this attribute? I can’t find anything in Google’s official documentation.
3
Answers
The Google spider does process Javascript, so adding the attribute via jQuery should work. I would suggest that you put the
rel="nofollow"
logic in your server-side code though, for guaranteed results.Will Google see this attribute?
In short, No!, that link is already been crawled with google spider.
rel=nofollow
this attribute should only work if you have set it at serverside when a request is made or you should put it static via keyboard, because after page load it doesn’t matter.Although Google processes JavaScript and can index a lot of dynamic content, there’s a special behavior when inserting
rel=nofollow
dynamically. It was tested[1] and they came up with this result:The solution is to insert the whole link with
rel=nofollow
dynamically:See section "5. An Important Example with rel=”nofollow”" of the provided source.
Further reading