Hi all,

I have been all over the web checking out many posts, but dont seem to get a clear answer so I thought I would ask it here.

I have a website will allows people to leave and read comments on topics etc (its not a forum), my problem is the comments section is javascript based.

So firstly will google be able to read the comments left ?, as i though this would help enrich my website content

will it have an adverse effect on my ranking for using js for people leaving comments ?

Many Thanks

Jase

Dani AI

Generated

As observed, the old-era answer was “no” — many crawlers could not see dynamically injected content. That changed: Googlebot now executes JavaScript and can index content that is rendered by client-side scripts, but indexing is not guaranteed, can be delayed, and depends on how the comments are delivered and whether crawl-time rendering is possible. See Google’s JavaScript guidance for details (JavaScript SEO basics).

Practical verification steps (useful after ’s “check indexing” hint):

  • Test a URL with Search Console’s URL Inspection (Live Test) and view the rendered HTML to confirm comment text is present.
  • Do a site: search for a unique sentence from a comment to see if Google indexed it.
  • Check server logs to confirm Googlebot requested the AJAX endpoints and that those endpoints return 200 responses (not blocked by robots.txt).

Ways to make comment content reliably indexable:

  • Render comments server-side or pre-render them so the initial HTML contains the text.
  • Use dynamic rendering as a fallback for bots if server-side rendering is not feasible ().
  • Provide progressive enhancement or a <noscript> fallback so non-JS crawlers still see content.
  • Treat comment links and UGC carefully: moderate for spam and consider using appropriate link attributes for user-generated links. Marking comment entities with structured data (e.g., schema.org/Comment) can help signal intent but does not replace making the text crawlable.

Quick checklist: confirm rendered HTML in Search Console, ensure AJAX endpoints are reachable by crawlers, decide on SSR/dynamic-rendering if comments are important for SEO, and keep moderation to protect page quality. For , prioritizing server-side or pre-rendered comments is the safest route when comments are intended to enrich on-page content.

Recommended Answers

All 2 Replies

Generally the answer is no.

Your comments are dynamically loaded which makes it very hard for any spider to read them.

A few JavaScript comment systems give you the ability to include the comments as plain html, but it's more complex to implement.

Using a JavaScript comment systems will not have a negative effect on your ranking, but then it won't have a positive one either. Comments in html add to a pages content and can potentially improve it's performance. With social getting in the picture the social links they add may help as well.

Perhaps a page that contains your link has not been indexed by google, try doing ping

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.