How does Google process JavaScript pages?
Google handles JavaScript pages in stages. First Googlebot crawls the URL and receives the initial HTML. It reads links and metadata in that HTML. Then the page is queued for rendering, where Google runs the JavaScript in a recent version of Chromium and gets the final page, much like a browser would. Finally, the rendered content is used for indexing. For most pages rendering happens quickly, but it is still an extra step that can fail or be incomplete.
Problems arise when important content, links or metadata exist only after rendering and something in the rendering step goes wrong, or when the page depends on things Google does not do, such as clicking buttons, scrolling or logging in. Understanding the stages makes it much easier to see why a page that looks fine in your browser might look empty to Google.
Which rendering approach is best for indexing?
Rendering strategies differ in how much work happens on the server versus in the browser. For indexing, the safest options deliver complete HTML from the server, so Google sees content and links in the very first response.
| Approach | What Google receives first | Indexing risk |
|---|---|---|
| Static generation | Complete HTML | Low |
| Server-side rendering | Complete HTML, then hydration | Low |
| Incremental or hybrid rendering | Complete HTML for most pages | Low to medium |
| Client-side rendering only | An empty shell plus scripts | Medium to high |
| Dynamic rendering for bots | Pre-rendered HTML for crawlers | Workaround, not recommended long term |
Modern frameworks such as Next.js, Nuxt, Remix, SvelteKit, Astro and TanStack Start all support server-side or static rendering. If your site renders only in the browser, moving key templates to server rendering is usually the most effective indexing fix available. Google has described dynamic rendering, serving pre-rendered pages only to bots, as a workaround rather than a recommended long-term solution.
Why must links use real URLs?
Google discovers pages by following links, and it follows anchor elements with an href attribute that contains a URL. It does not click buttons or run onclick handlers to find new pages. In single-page applications, navigation is often built with elements that call a router function on click. If those elements lack a real href, Google cannot follow them, and whole sections of the site may never be discovered.
- Use anchor elements with real href URLs for navigation, even when a router intercepts clicks.
- Avoid javascript: links and href="#" for navigation.
- Give each view its own URL using the History API, not URL fragments after #.
- Make paginated and filtered states reachable through links to real URLs where they should be indexed.
How should metadata be handled in a JavaScript app?
Titles, meta descriptions, canonical tags, robots directives and structured data should be present in the initial HTML whenever possible. Google can read metadata set by JavaScript, but if the initial HTML says one thing and the rendered page says another, results become unpredictable. A noindex in the initial HTML can stop rendering from being considered at all, even if JavaScript later removes it.
In single-page apps, also make sure metadata updates correctly on navigation, so each view has its own title and canonical. A stale canonical from the previous view is a common cause of pages being treated as duplicates. Our guide on when Google chooses a different canonical covers canonical conflicts.
What common failures stop JavaScript content being indexed?
- robots.txt blocks script or style files that Google needs to render the page.
- Content loads from an API that is blocked, slow, rate limited or requires cookies.
- Content appears only after a click, scroll, hover or form interaction.
- Errors in scripts stop rendering partway through.
- Lazy-loaded content uses scroll events instead of IntersectionObserver or native loading attributes.
- Soft 404s: error states render a 'not found' message with a 200 status.
How do you test a JavaScript page?
Use URL Inspection in Search Console. The live test fetches and renders the page as Googlebot, and shows the rendered HTML, a screenshot, the resources that loaded or failed, and JavaScript console messages. Compare the rendered HTML with what you expect: is the main content there, are links present as anchor elements, are the title and canonical correct? The Rich Results Test offers a similar rendered view without needing Search Console access.
Also look at the page with JavaScript disabled in your browser. Whatever you see then is what Google gets in the initial HTML before rendering. If that view is empty, the page relies entirely on rendering.
How should errors and missing pages behave in an SPA?
Single-page apps often serve the same HTML shell with a 200 status for every URL, then show a 'not found' view with JavaScript when the route does not exist. Google sees a 200 status and a page that looks like an error, which it treats as a soft 404. With server rendering, return a real 404 status for unknown routes. Without it, one documented option is to redirect to a URL that returns 404, or add a noindex robots meta tag on error views. Our guide on soft 404 errors covers this in more detail.
How do lazy loading and infinite scroll affect indexing?
Google renders pages with a tall viewport rather than scrolling, so content that loads only when the user scrolls may never appear. Use native lazy loading attributes for images, or IntersectionObserver, which works with Google's rendering. For infinite scroll listings, provide paginated URLs underneath, with links to each page, so Google can reach every item. Google's JavaScript SEO documentation describes these patterns.
A worked example: a React storefront
A shop built as a client-side React app finds that only its homepage and a few categories are indexed. URL Inspection shows product pages rendering with an empty main area: product data comes from an API that rate-limits unknown clients, and Googlebot's rendering requests are being refused. Navigation also uses buttons with click handlers, so many category pages are never discovered.
The team moves product and category templates to server-side rendering with the same React components, replaces navigation buttons with anchor links, and sets titles and canonicals on the server. Within six weeks, the number of indexed product pages rises from a few hundred to most of the catalogue, and new products are indexed within days of launch.
You may also read
Sitemap lastmod in 2026: How Google Uses It and How to Set ItHow Google uses the sitemap lastmod date in 2026, what counts as a real update, why fake dates get ignored, and how to set lastmod correctly on any platform.
Internal Links for Faster Indexing: A Practical Guide for 2026How internal links help Google discover and index pages faster in 2026: link placement, click depth, anchor text, hub pages, orphan pages and a repeatable process.
How long does rendering take?
For most pages, Google's rendering happens soon after crawling, often within seconds to minutes. Google has said the median delay is short. But rendering resources are not unlimited, and very large sites, slow pages or pages with heavy scripts can wait longer. Content that exists only after rendering is therefore indexed later than content in the initial HTML, which matters for time-sensitive pages such as news or new products.
Rendering also has time limits. Pages that keep loading content for a long time, wait on slow APIs or depend on long chains of requests may be rendered before everything has appeared. Keep critical content fast to load, and avoid chains where one request waits for another before the main content appears.
How do hydration and client-side updates affect indexing?
With server-side rendering, the server sends complete HTML and the browser then hydrates it, attaching JavaScript behaviour. Google sees the server HTML and the rendered result. Problems appear when hydration changes the content significantly, for example replacing server-rendered text with a loading state or different data. Make sure the hydrated page shows the same main content as the server HTML, and that errors during hydration do not blank the page.
Personalised content is another trap. If the client replaces generic content with personalised content after login or based on location, Google sees the generic version, which is usually fine. But if the server renders an empty shell and waits for personalisation to fill it, Google may see nothing useful.
How should internal search and filters work in SPAs?
Single-page apps often keep filter and sort state in the URL as parameters, which can create huge numbers of crawlable URLs, or in memory only, which hides them from Google entirely. Decide which states deserve to be indexable, give them clean URLs with real links and server-rendered content, and keep the rest out of crawling. The same principles as for any site with faceted navigation apply. Our guide on index bloat covers controlling parameter URLs.
Does page speed matter for JavaScript sites?
Heavy JavaScript slows pages for users, and slow, resource-hungry pages also take longer for Google to render. Core Web Vitals measure user experience, and while they are separate from indexing, the same fixes help both: smaller bundles, server rendering of above-the-fold content, code splitting and fewer blocking requests. A fast, server-rendered page is easier to crawl, render and index, and better for visitors.
How do you audit a JavaScript site at scale?
Crawling tools that render JavaScript can compare the initial HTML with the rendered HTML across thousands of pages, highlighting pages where content, links, titles or canonicals appear only after rendering, or change between the two. Combine that with Search Console's Page indexing report to find templates where pages are crawled but not indexed. Fix by template rather than page by page; one change to a template usually fixes thousands of URLs.
What about structured data in JavaScript apps?
Structured data added by JavaScript can be read by Google after rendering, and Google's tools test the rendered result. Still, server-rendered JSON-LD is more reliable, because it is present from the first response and does not depend on scripts running correctly. Keep structured data consistent with the visible content, and make sure it updates correctly when the view changes in a single-page app.
Test structured data on several templates with the Rich Results Test, which renders the page like Google does, and watch the enhancement reports in Search Console for errors after releases.
Should you migrate a client-rendered site to server rendering?
If important pages are not being indexed and URL Inspection shows they render incompletely, migrating key templates to server or static rendering is usually worth it. You do not need to rebuild everything: start with the templates that drive search traffic, such as product, category and article pages, and leave logged-in areas client-rendered. Keep URLs the same to avoid turning a rendering change into a full site migration.
Measure the effect by tracking indexed pages per template in Search Console before and after the change. A clear rise on the migrated templates confirms the rendering approach was the bottleneck, and tells you which templates to migrate next if there are more of them still waiting to be done.
What are the myths about JavaScript SEO?
- Myth: Google cannot index JavaScript. It renders modern JavaScript, but the extra step adds risk.
- Myth: client-side rendering is always fine now. It works when nothing fails; server rendering removes the risk.
- Myth: dynamic rendering is the best practice. Google calls it a workaround.
- Myth: if it works in my browser, it works for Google. Blocked APIs, interactions and errors differ.
Where Blink Index fits for JavaScript sites
JavaScript indexing problems are fixed in your code and verified with URL Inspection. No submission tool can make Google see content that fails to render. Blink Index's free checkers help with the basics, such as status codes, canonicals and noindex in the initial response.
- Check URLs with the free link checker for status, canonical and noindex.
- Verify rendering with URL Inspection and fix your templates.
- For external pages linking to your site, submissions cost 1 credit per URL; see the pricing page.
The FAQ explains what submissions can and cannot do.
Summary: put the important things in the HTML
Google renders JavaScript, but every piece of content, link or metadata that depends on rendering is at more risk than one in the initial HTML. Prefer server-side or static rendering, use real links, set metadata on the server, return proper status codes, and test with URL Inspection's rendered view. For the broader troubleshooting process, see Google not indexing my site.