In short
Forum replies and article comments are often loaded after the fact: by a JavaScript call, by a third-party widget, on a click on “Show more” or only after logging in. In all these cases, the HTML a crawler receives does not contain the contributions. This check is about serving at least the first replies in the initial HTML, keeping collapsible what needs to be without removing it from the code, and not putting a login wall in front of content you want indexed. Expected result: curl on a thread's URL returns the text of the replies.
Why it matters
Four mechanisms hide contributions from crawlers.
Loading with JavaScript. Google runs JavaScript, but at a later stage: the page goes through a rendering queue where it may stay for a few seconds or much longer, according to its documentation. That documentation also points out that not all crawlers run JavaScript and that server-side rendering is still a good idea. According to the analysis Vercel published in December 2024, the crawlers of OpenAI, Anthropic and Perplexity did not run it; these companies do not document this point. For them, a reply loaded with fetch does not exist.
The third-party widget. An external comment service is embedded through a script that loads the thread from its own domain, usually in an iframe. Disqus's universal embed code, for example, loads embed.js and its only <noscript> fallback is a message asking the visitor to enable JavaScript. Disqus's help center states that the indexing of comments remains at Google's discretion.
Interaction. Google does not interact with the page: it does not click and does not scroll. Replies loaded on a click on “Show the next 40 replies” are never requested.
Login. Google's rendering engine keeps neither cookies nor local storage from one page to the next: it is always an anonymous visitor. Content reserved for logged-in members is invisible, and a “Sign up to read more” interstitial that replaces the content yields an almost empty page.
Yet on a forum, the replies are the content: a thread reduced to its question looks like a thin page, see controlling the indexing of empty or thin threads (opens in a new tab).
What it improves
- Indexing The text of the replies is indexed from the first crawl, without depending on the rendering queue.
- Citations by generative engines Crawlers that read the raw HTML have access to the replies. No citation is guaranteed.
- Structured data
DiscussionForumPostingorQAPagemarkup must describe content that is present on the page; it is. - Robustness The page stays readable if a third-party script is blocked or down.
How to check
Is the text of a reply in the initial HTML? Copy a sentence from a reply in the middle of the thread, then:
curl -s https://example.com/discussions/panne-chaudiere | grep -c "exact sentence copied from a reply"
Compliant: 1 or more. 0 means the reply arrives after the fact.
Without JavaScript or a session: open the page in a private window, with JavaScript disabled in the developer tools. You should be able to read the replies and move on to the next page. The full method is in testing which information is accessible without JS (opens in a new tab).
What Google sees: in URL Inspection in Search Console, click “Test live URL” then “View tested page”: look for the same sentence in the rendered HTML. If it is present in the rendered HTML but missing from curl's response, Google ends up seeing it, but crawlers that do not render will not.
Are crawlers being blocked? Bot protection that returns a JavaScript challenge is equivalent to missing content: repeat the test with the user agents of the AI crawlers you target (opens in a new tab).
How to implement
Before you start
Identify the case that applies and the fix to aim for:
| Situation | Fix |
|---|---|
Replies loaded with fetch after display |
Server rendering of the first N replies, real pagination for the rest |
| Third-party widget | Native comments, or a local copy rendered in the HTML |
| “Show more” button | An <a href="?page=2"> link intercepted by JavaScript |
| Collapsed replies (long, off-topic, old) | Content present in the HTML, collapsed with <details> |
| Reading reserved for members | Decide: public, or deliberately not indexed |
Reference hybrid model: the server renders the first replies, and the rest is a paginated page that the script can load on the visitor's behalf.
<section id="reponses">
<article id="message-21">
<header><a href="/membres/marc_chauffage">marc_chauffage</a> · <time datetime="2026-03-12T14:02:00+01:00">12 March 2026</time></header>
<p>Start by checking the system pressure: below 1 bar, the boiler locks out.</p>
<details>
<summary>Read the rest of the reply</summary>
<p>The rest of the text is in the HTML, simply collapsed.</p>
</details>
</article>
<!-- 19 other replies rendered by the server -->
</section>
<a id="suite" href="/discussions/panne-chaudiere?page=2">Show the next replies</a>
The link works without JavaScript; a script can intercept it to insert page 2 below. The URLs of these pages are described in handling the pagination of long threads (opens in a new tab). Google indexes the content of a closed <details> because it is in the HTML; the other cases of collapsed content are covered in making content accessible without user interaction (opens in a new tab).
The number of replies rendered by the server is an editorial choice; the accepted or top-rated answer must be among them.
Login walls and interstitials
Three consistent positions:
- Public reading, restricted participation. The normal case: the whole thread is in the HTML, and only the reply form and the votes require an account. An invitation to sign up takes the form of a banner, not a screen that covers the content: see avoiding intrusive interstitials (opens in a new tab).
- Partially restricted reading, indexing wanted. Google documents paywalled content markup, which also covers registration-gated access: the content is served in the page and the restricted part is declared with
isAccessibleForFree: false, which distinguishes it from cloaking. The details are in marking up paywalled content (opens in a new tab). AI crawlers, for their part, read everything that is in the HTML. - Restricted reading, not indexed. Private threads return a 403 or a 404 to anonymous visitors, or a redirect to the login page, and are not listed in the sitemap.
To avoid: serving the full thread to Googlebot and a wall to visitors without declaring it, or redirecting every thread URL to a single sign-up page, which removes them from the results.
Third-party comment widgets
Disqus and equivalent services load comments from their domain, through a script. Three options, from safest to least safe:
- go back to the CMS's native comments or to a self-hosted system that renders the HTML on the server;
- keep the widget for posting, but sync the comments to your database and render them in the page's HTML (Disqus's help center refers to its documentation on data synchronization);
- keep the widget alone and accept that the comments do not count as part of the page's content.
Do not put content in <noscript> that differs from the widget's.
WordPress
Versions WordPress 6.4 and later (checked up to 7.1).
Native comments are rendered by the server, in the comments.php template of classic themes or the “Comments” block of block themes: nothing to do. What removes them from the HTML:
- a third-party widget plugin (Disqus, social network comments), which replaces the native template;
- a comment lazy-loading option in a performance plugin or a dedicated one, which only loads them on scroll or on click. Turn it off: the gain comes at the price of the comments disappearing from the HTML;
- a theme that loads comments through the REST API.
Check:
curl -s https://example.com/mon-article/ | grep -c 'id="comment-'
The result must match the number of comments on the page. The “Users must be registered and logged in to comment” setting (Settings > Discussion) does not get in the way of reading. For bbPress, topics and replies are rendered by PHP; only forums marked “Private” or “Hidden” are closed to visitors.
Discourse
Checked on Discourse 2026.12 (official forum and source code). Discourse is a JavaScript application, but every thread page contains the posts in HTML: in a simplified view served to user agents recognized as crawlers, and in a <noscript> tag for the others. The default list of these user agents includes gptbot, claudebot and perplexity-user, among others. Points to check in the site settings:
login required(disabled by default): when enabled, the whole forum goes behind the login;- restricted-access categories are not visible to crawlers;
allow index in robots txtand theblocked crawler user agentslist, which by default excludes a few SEO tool crawlers.
curl -s -A "GPTBot" https://forum.example.com/t/titre/30 | grep -c "id='post_"
Next.js
Versions Next.js 15 and 16 (App Router).
Fetch the replies in a server component, with await; reserve 'use client' for the form and the votes.
// app/discussions/[slug]/page.tsx
import Link from 'next/link';
import { notFound } from 'next/navigation';
import { ReplyForm } from './reply-form';
type Props = { params: Promise<{ slug: string }> };
export default async function ThreadPage({ params }: Props) {
const { slug } = await params;
const thread = await getThreadWithPosts(slug, { page: 1, perPage: 20 });
if (!thread) {
notFound();
}
return (
<>
<h1>{thread.title}</h1>
{thread.posts.map((post) => (
<article key={post.id} id={`message-${post.id}`}>
<div dangerouslySetInnerHTML={{ __html: post.sanitizedHtml }} />
</article>
))}
{thread.lastPage > 1 && <Link href={`/discussions/${slug}?page=2`}>Show the next replies</Link>}
<ReplyForm threadId={thread.id} />
</>
);
}
To rule out for the list of replies: a useEffect that calls the API, or dynamic(() => import('./replies'), { ssr: false }).
Nuxt
Versions Nuxt 3 and 4.
useFetch and useAsyncData run during server rendering by default: the replies are in the HTML.
<script setup lang="ts">
const route = useRoute();
const { data: thread } = await useFetch(`/api/threads/${route.params.slug}`);
</script>
<template>
<article v-for="post in thread?.posts" :id="`message-${post.id}`" :key="post.id" v-html="post.sanitizedHtml" />
<ClientOnly>
<ReplyForm :thread-id="thread?.id" />
</ClientOnly>
</template>
What removes the replies from the HTML: the server: false option, a <ClientOnly> component or a .client.vue file around the list, and ssr: false in nuxt.config.ts.
Astro
Versions Astro 5 to 7.
An .astro component is rendered on the server, at build time or on demand: query the database or the API in the frontmatter. A forum whose threads change constantly calls for on-demand rendering, with an adapter.
---
// src/pages/discussions/[slug].astro
import ReplyForm from '../../components/ReplyForm.jsx';
const thread = await getThreadWithPosts(Astro.params.slug);
if (!thread) {
return new Response(null, { status: 404 });
}
---
{thread.posts.map((post) => (
<article id={`message-${post.id}`} set:html={post.sanitizedHtml} />
))}
<ReplyForm client:visible threadId={thread.id} />
Two directives take a component out of the initial HTML: client:only, which only renders it in the browser, and server:defer (server islands), whose content is requested by a script after loading, with only the fallback content delivered first. Do not apply them to the list of replies.
Laravel
Versions Laravel 11 to 13; Livewire 3 and 4; Inertia 2 and 3.
Render the replies in the Blade view:
@foreach($posts as $post)
<article id="message-{{ $post->id }}">
<a href="{{ route('members.show', $post->author) }}">{{ $post->author->name }}</a>
{!! $post->sanitized_html !!}
</article>
@endforeach
{{ $posts->links() }}
With Livewire, a lazy-loaded component (lazy) first sends only an empty placeholder: do not use it for the list of replies. With Inertia, enable server-side rendering (SSR), otherwise the initial HTML only contains the page data as JSON.
Symfony
Versions Symfony 6.4, 7.4 and 8.x.
A standard Twig template is enough:
{% for post in posts %}
<article id="message-{{ post.id }}">
<a href="{{ path('member_show', {slug: post.author.slug}) }}">{{ post.author.name }}</a>
{{ post.sanitizedHtml|raw }}
</article>
{% endfor %}
With Symfony UX, a Turbo Frame with loading="lazy" or a Live Component with loading="defer" or loading="lazy" loads its content through a second request: keep these modes for secondary blocks (suggestions, members online), not for the replies.
Common mistakes
- Testing while logged in: an administrator sees everything. Test in a private window, then with curl.
- Filling
<noscript>with text that differs from what visitors see. - Loading replies on scroll with no underlying pages: Google does not scroll.
- Truncating replies in the HTML and loading the rest on click: the truncated part is not read. Collapse with
<details>or CSS, without removing the text. - Declaring replies in the structured data that are missing from the HTML, or the reverse. See marking up discussions with DiscussionForumPosting (opens in a new tab).
- Blocking the API or the scripts in robots.txt when rendering depends on them. See checking content loaded via API (opens in a new tab).
Frequently asked questions
Does Google index Disqus comments?
Sometimes, with no guarantee. Disqus comments are loaded by a script from Disqus's domain, and Disqus's help center states that their indexing remains at Google's discretion. They are not in the HTML sent by your server, so crawlers that do not run JavaScript do not read them. For comments to count, render them on the server.
Can I reserve the reading of replies for logged-in members and still be indexed?
Only for the part that crawlers receive. Google does not log in: anything that requires a session is neither crawled nor indexed. If you serve the content in the page while reserving part of it for registered users, declare it with paywalled content markup, which is also intended for registration-gated access. Without it, showing more to Googlebot than to visitors is akin to cloaking.
Is content collapsed in details and summary taken into account?
Yes. Content placed in a closed details element is in the HTML sent by the server: crawlers read it like the rest of the page, whether or not they run JavaScript. It is the right way to collapse a long reply or secondary posts. What causes problems is content that is missing from the HTML and loaded on click.
Resources
- Google Search Central: JavaScript SEO basicsdevelopers.google.com
- Google Search Central: fix Search-related JavaScript problemsdevelopers.google.com
- Google Search Central: fix lazy-loaded contentdevelopers.google.com
- Google Search Central: structured data for subscription and paywalled contentdevelopers.google.com
- Google Search Central: avoid intrusive interstitials and dialogsdevelopers.google.com
- Disqus: universal embed codehelp.disqus.com
- Disqus: why isn't Google indexing my comments?help.disqus.com
- Vercel: The rise of the AI crawlervercel.com
- Astro: server islandsdocs.astro.build
- MDN: details elementdeveloper.mozilla.org
Updated on
Topic checklist (PDF)