JavaScript is not a ranking problem and framework choice is not an SEO decision on its own. The problem is narrower and more specific: content that exists only after client-side execution may be indexed later, partially, or not at all, because rendering happens in a separate stage with its own constraints.
The three stages, and where things go wrong
Crawling fetches the HTML response. Rendering executes JavaScript to produce a DOM. Indexing evaluates what results. A page can pass the first stage and fail the second, and the symptom is indistinguishable from a content quality problem unless you test for it.
How to test what a crawler receives
The authoritative comparison is raw HTML versus rendered DOM. Everything else is inference.
Fetch the raw response
curl the URL and search the output for a distinctive string from your main content. If it is absent, it is not in the initial response.
Compare against the browser
View the same string in DevTools. Present in the DOM but absent from the raw response means it is a rendering dependency.
Use the URL Inspection tool
The live test shows the rendered HTML Google produced and any resources it could not load.
Crawl with JavaScript disabled and enabled
Screaming Frog in both modes shows the difference across the whole site rather than one page at a time.
The failures that actually occur
Content fetched client-side after hydration
A product description, review set or specification table loaded by a client-side request is absent from the initial response. If rendering is delayed or the request fails under crawler conditions, the page is evaluated without its main content.
Blocked resources
If robots.txt disallows the JavaScript or CSS bundles a page depends on, rendering cannot complete. This is easy to introduce accidentally when a CDN path or an API route is caught by a broad disallow rule.
Content behind interaction
Anything that appears only after a click, hover, scroll event or route transition is not seen. Crawlers do not interact. Tabbed content, accordions and infinite scroll all fall into this category unless the content is present in the DOM from the start.
Links that are not links
A div with an onClick handler is not a link and cannot be followed. Navigation must use anchor elements with href attributes; a JavaScript router can still intercept the click.
What to do in a Next.js application
| Approach | What a crawler receives | Use it for |
|---|---|---|
| Static generation | Complete HTML at request time | Content pages, articles, services, category pages |
| Server rendering | Complete HTML, generated per request | Personalised or frequently changing pages that must still be indexed |
| Server components with streaming | HTML including streamed content | Pages mixing static shell with server-fetched data |
| Client-side fetching | A shell only, until rendering completes | Interactive widgets and content that should not be indexed |
The rule that covers almost every case: if content matters for indexing, it belongs in the server-rendered response. Client components are for interaction, not for the substance of the page.