: Rel="nofollow" being removed with javascript, why? I was looking through the blog comments of an Alexa top 20,000 site, and I noticed something odd: when a comment is viewed in the source (or
I was looking through the blog comments of an Alexa top 20,000 site, and I noticed something odd: when a comment is viewed in the source (or in Firebug with JS turned OFF) the author's name is written like this:
<cite class="fn"><a href='http://example.co.uk' rel='external nofollow' class='url'>Example</a></cite>
What they are doing here is they have a static list of comments cached, using the HTML above, but when the page is loaded with JS, it AJAX calls a database of comments (the same as the static cached comments) but when it loads (it takes about 10 seconds) the same comments are written as below (this time viewed in Firebug with JS turned ON)
<p class="idc-i"><a href="http://example.co.uk"> Example </a><em class="idc-time"></p>
To be clear this is the EXACT same part of the page with the exact same comment below (not shown in these examples), the only part I've changed in the above code is changing the link and anchor tag to example.
Any idea why they would want to do this?
Which version of the code would a search bot see, as I believe they now process JS when the scrape a page?
I don't really want to disclose the name of the site as I fear it will be spammed if it is indeed allowing to follow blog comments on such a high profile site.
More posts by @Shelley277
1 Comments
Sorted by latest first Latest Oldest Best
It's quite likely that the forum software they are using doesn't really support the mechanisms Google and others need to read the AJAX content - as it's not as simple as just "processing the HTML":
Making AJAX Applications Crawlable
So the idea would be, the site loads the static HTML that is refreshed with a particular frequency (daily/hourly/etc.) that can be crawled by all spiders, and that quite sensibly includes nofollow attributes. The script will then load the most uptodate content for that area, as well as enable AJAX pagination, etc.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.