JavaScript SEO: How to Get JS Sites Indexed
JavaScript SEO is the part of technical SEO that makes sure search engines and AI crawlers can see the content, links and metadata of sites built with React, Vue, Angular and similar frameworks. Google renders JavaScript well, but with conditions and delays. Most AI crawlers do not run JavaScript at all.
What JavaScript SEO Is and Why It Matters
A classic website sends the browser finished HTML. A JavaScript application often sends an almost empty HTML shell with one div and a script bundle, and the browser builds the page after running the code. People see the same result. A crawler that reads only the server response sees an empty page.
So is JavaScript bad for SEO? No. The risk depends on where the content is created. If the server returns full HTML and JavaScript only adds interactivity (a slider, a filter, a form), there is no JavaScript SEO problem. The problem is real for single-page applications (SPA) with client-side rendering (CSR), where text, links, titles and canonicals appear only after the code runs. SPA SEO and React SEO questions almost always come down to this case.
React, Vue and Angular are popular for good reasons, which we describe in our article on React benefits and use cases. The framework itself is rarely the cause of indexing trouble. How the project renders pages is.

How Google Crawls and Renders JavaScript
Google’s documentation “Understand the JavaScript SEO basics” (last updated March 4, 2026) describes three phases: crawling, rendering and indexing.
During crawling, Googlebot requests the URL and receives the server’s HTML. It checks robots.txt, reads the HTML and extracts links from it. Then the page goes to the render queue. Google’s Web Rendering Service (WRS) opens it in headless Chromium, runs the JavaScript and builds the rendered DOM. Only after that does Google index the content it sees in the rendered version and pick up links that appeared after rendering.
Google’s documentation says a page may stay in the render queue for a few seconds or longer. The best public measurement comes from Vercel and MERJ (published July 31, 2024), who analyzed more than 100,000 Googlebot fetches on nextjs.org. All HTML pages that returned status 200 were fully rendered. The median delay between crawl and render was 10 seconds, the 75th percentile 26 seconds, but the 90th percentile was about 3 hours and the 99th about 18 hours. For a news site or a store with changing prices, that tail matters.
Several conditions follow from Google’s documentation and the same study:
- pages with non-200 status codes may not be rendered at all, and in the Vercel/MERJ data 3xx, 4xx and 5xx pages were not rendered;
- if the initial HTML contains noindex, Google may skip rendering, so removing noindex with JavaScript does not work;
- Googlebot fetches up to 2 MB per URL (Google Search Central blog, March 31, 2026), and each JS and CSS file has its own limit;
- rendering takes resources, so on large sites JavaScript adds load to the crawl budget: every script and API call is a separate request.
What AI Crawlers See on JS Sites
Google JavaScript rendering is the exception, not the rule. In December 2024, Vercel and MERJ published an analysis of AI crawler traffic on Vercel’s network. GPTBot, OAI-SearchBot and ChatGPT-User from OpenAI, ClaudeBot from Anthropic, PerplexityBot, Meta-ExternalAgent and Bytespider did not execute JavaScript. They downloaded JS files (11.5 % of ChatGPT’s fetches, 23.84 % of Claude’s) but did not run them. Googlebot, which also serves Gemini, and Applebot did render pages.
For a CSR site this means that ChatGPT search, Claude and Perplexity see only the raw HTML. If the product description, prices and FAQ are loaded by JavaScript, those systems cannot quote them. If you work on visibility in AI answers, check the raw HTML first, before any other measures such as the llms.txt file (we explain what it does in the article what is llms.txt).

Rendering Strategies Compared
The choice of rendering strategy decides most JavaScript SEO outcomes. It is easier to make at the start of a project than to change later, and on large web portals the choice can differ per section. We plan this split when designing web portal development projects.
| Strategy | What the crawler gets | Speed for users | Infrastructure cost | When to choose |
|---|---|---|---|---|
| CSR | Empty HTML shell, content after JS runs | Slow first load, fast navigation after | Lowest: static hosting | Dashboards, accounts, pages behind login |
| SSR | Full HTML on every request | Fast first content, depends on server response time | Higher: Node.js server, caching | Pages with frequently changing or personalized data |
| SSG | Full HTML built in advance | Fastest, served from CDN | Low at runtime, builds grow with page count | Blogs, landing pages, documentation |
| ISR | Full HTML from cache, refreshed in the background | Close to SSG | Medium: hosting with ISR support | Catalogs and large content sites with regular updates |
Client-Side Rendering
With CSR, the server returns the same empty HTML shell for every URL, and the browser builds the page. Client side rendering SEO risks are clear: Google indexes the content only after rendering, with the delays described above; AI crawlers see nothing; if a script or API request fails during rendering, Google indexes an empty page. CSR fits parts of a site that should not be indexed anyway: personal accounts, admin panels, internal tools.
Server-Side Rendering
With SSR, the server runs the application for each request and sends finished HTML. Then hydration happens: the browser loads the same JavaScript and attaches event handlers to the existing markup, and the page becomes interactive. Server side rendering SEO benefits are direct: content, links, title and canonical are in the first response, for Google and for AI crawlers.
In the React ecosystem SSR is usually done with Next.js, in Vue with Nuxt. Both also support static generation and hybrid setups. Our comparison Vue vs React covers the differences between the two ecosystems. SSR costs more to run: a Node.js server, caching and monitoring of response time, since a slow server delays the first content.
Static Generation and ISR
Static site generation (SSG) builds HTML for all pages during deployment and serves it from a CDN. This is the fastest and cheapest option at runtime, but each content change needs a rebuild, and with tens of thousands of pages builds become long.
Incremental static regeneration (ISR) solves that. A page is served from cache and regenerated in the background after a set interval or on request. A typical setup: the CMS sends a webhook after an editor publishes a change, and only that page is rebuilt. Next.js supports ISR natively; Nuxt does it through route rules on hosting platforms that support it.
Nuxt SEO often comes down to these route rules. A typical case on Vue and Nuxt projects looks like this. The site starts as a Vue SPA with client-side rendering. The marketing pages and blog get few impressions, the URL Inspection tool shows empty or partial HTML, and AI search does not mention the company. Moving to Nuxt with hybrid rendering fixes this: SSG or ISR for the blog and service pages, SSR for catalog pages with prices and stock, CSR only for the personal account. Metadata moves to the useHead and useSeoMeta composables so every route gets its own title, description and canonical in the server HTML.
Dynamic Rendering and Prerendering
Dynamic rendering means serving prerendered HTML to bots and the normal JavaScript version to users. Google’s documentation (last updated December 10, 2025) calls it a workaround and not a long-term solution, because it adds complexity and resource requirements, and recommends server-side rendering, static rendering or hydration instead.
Prerendering services (Prerender.io and similar) still work as a temporary fix for an old SPA that cannot be rewritten quickly. Keep in mind that the bot version must match what users see, otherwise it can look like cloaking, and the cache must be refreshed after content changes.

Common JavaScript SEO Issues and Fixes
Each problem below follows the same pattern: what goes wrong, how to detect it, how to fix it. Together they form a working list of JavaScript SEO best practices.
Content and Links Missing in Raw HTML
Problem: text, product cards or menu links are built by JavaScript, so they are missing in the server response. Navigation works through onclick handlers on div or button elements, and some content loads only on scroll or click.
How to detect: compare view-source (raw HTML) with the rendered DOM in DevTools or in the URL Inspection tool. Search the raw HTML for a key sentence from the page and for links to important sections.
How to fix: render content on the server with SSR or SSG. Make every navigation element an a element with a real href; Google’s documentation states it discovers links only in a elements with an href attribute. Content that matters for search should not depend on a click. For lazy loading, use native loading="lazy” for images and the IntersectionObserver API for content, without waiting for scroll events.
Meta Tags, Canonicals and Status Codes
Problem: all routes of an SPA share one title and description from index.html, the canonical points to the homepage or is changed by JavaScript, and a missing page returns status 200 with a “not found” message, which Google treats as a soft 404.
How to detect: check title, meta description, canonical and robots in the raw HTML of several types of pages. Look at the Pages report in Search Console for “Soft 404” and “Duplicate, Google chose different canonical than user”.
How to fix: set metadata per route on the server: useHead or useSeoMeta in Nuxt 3, vue-meta in Vue 2 projects, the Metadata API in Next.js. Put the canonical in the server HTML and do not change it with JavaScript. For missing pages, return a real 404 from the server. If the architecture does not allow that, Google’s documentation offers two options: redirect with JavaScript to a URL that returns 404, or add noindex to the error page with JavaScript.
Routing, Hash URLs and Pagination
Problem: routes like /#/catalog/shoes. Google does not reliably resolve hash fragments, so all such “pages” are one URL for it. A second problem is infinite scroll without separate URLs: products beyond the first screen are never discovered.
How to detect: look at the URL structure, the sitemap and the internal links in the crawler report.
How to fix: switch the router to History API mode (createWebHistory in Vue Router, the default in Next.js and Nuxt) and configure the server to return the right page for every path. For infinite scroll, give each batch a paginated URL (? page=2) with a normal link to it, and update the address bar while the user scrolls.
Performance and Core Web Vitals
Problem: a large JavaScript bundle slows down the first render and interaction. CSR sites often fail Largest Contentful Paint because the main content appears only after the scripts load, and heavy hydration hurts Interaction to Next Paint.
How to detect: Lighthouse and PageSpeed Insights for lab data, the Core Web Vitals report in Search Console for field data. The targets on web.dev are LCP within 2.5 seconds, INP under 200 milliseconds and CLS below 0.1.
How to fix: code splitting by route, lazy loading of components below the first screen, removal of unused libraries, server rendering of the main content, fixed sizes for images and banners to prevent layout shifts.
How to Audit a JavaScript Website
An audit takes a day for a small site and longer for a large one. The order:
- Pick 10 to 20 typical URLs: the homepage, categories, products or services, articles, filters.
- Open view-source for each and check whether the main text, internal links, title, description and canonical are present.
- Run the same URLs through the URL Inspection tool in Search Console (“Test live URL”, then “View tested page”), compare the rendered HTML and the screenshot with what users see, and check the list of resources Google could not load.
- Crawl the site in Screaming Frog twice, with text-only and with JavaScript rendering, and compare word counts, links and titles between the two reports.
- Check structured data in the Rich Results Test, especially if it is added by JavaScript.
- Check status codes for missing pages, redirects and pages behind filters.
- Analyze server logs: how often Googlebot requests HTML and how often JS files and API endpoints, and whether GPTBot, OAI-SearchBot and PerplexityBot visit and what they receive.
- Run Lighthouse on the main templates and look at Core Web Vitals in Search Console.
If the audit leads to a change of framework or rendering, plan it like any site migration: URL map, redirects, metadata transfer, monitoring after launch. Our guide to website migration SEO covers these steps.