This guide answers: javascript seo: how google renders pages built with javascript frameworks
JavaScript SEO: how Google renders pages built with JavaScript frameworks
Google can run JavaScript, but rendering is error prone. Learn how SSR, SSG and CSR compare, and how to keep titles, text and links in the initial HTML.
By Hannah Wells, Technical SEO, site performance and online stores
· 6 min read
updated

Short answer
Google can execute JavaScript and read the rendered DOM, but the process is complex and prone to errors. The safest approach is to make sure critical content, meaning titles, body text, internal links and key metadata, is present in the initial HTML or generated on the server. Which framework you use matters less than how you implement it.
Key points
- Rendering a JavaScript page follows a sequence. Each step is a place where something can go wrong.
- These three strategies decide when and where your HTML is produced.
- W3era is explicit that canonical, robots and hreflang metadata belong in the initial HTML, not injected by script.
- React reaches server-side rendering through Next.js.
How Google renders JavaScript: the steps
Rendering a JavaScript page follows a sequence. Each step is a place where something can go wrong.
Googlebot requests the URL.
The server response is received and read.
The JavaScript runs.
The resulting DOM is read.
Googlebot fetches the page and receives the initial HTML. It then executes the JavaScript and reads the DOM that results. That last step can be deferred, and it can fail. A page whose content only appears after execution depends entirely on that step succeeding.
Structured data is a good example. According to W3era, Googlebot can process structured data injected by JavaScript after the page loads, but server-rendered markup is safer. Remember that structured data makes a page eligible for rich results; it is not a ranking factor.
Googlebot also needs access to the JS and CSS files required to render SEO-critical pages. If those resources are blocked, the rendered result can differ from what a visitor sees.
A documentation change worth knowing
4 March 2026
Google removed the “Design for accessibility” section from its official JavaScript SEO documentation.
That section had recommended keeping pages functional without JavaScript. Google’s note said the information had become “obsolete and less useful”. It does not mean initial HTML stopped mattering. The other recommendations in this guide still apply. For the exact current wording, read the official documentation on Google Search Central.
Server-side rendering vs static generation vs client-side rendering
These three strategies decide when and where your HTML is produced. That choice shapes what Googlebot receives on its first request.
| Strategy | How it works | SEO use case | Watch out for |
|---|---|---|---|
| SSR | JavaScript runs on the server (Node.js). Fully rendered HTML is generated on each request and sent to the browser. Hydration is possible. | Pages with dynamic content that must still be readable in the initial HTML. | Setup is more involved than a plain static site. |
| SSG | HTML is generated once at build time and served statically. | Largely static, editorial pages with stable content. | Content that changes in real time does not fit well. |
| CSR | The initial HTML is empty. The DOM is built in JavaScript on the client. | Authenticated or highly interactive sections where SEO is not the priority. | Using it for public, indexable pages depends fully on the rendering step. |
The practical order is simple. Prefer SSG for stable content. Move to SSR when content is dynamic. Keep CSR for the parts of a product that search engines do not need to see. SSG is generally the faster option, so it is the one to favour when content does not change in real time.
Critical content: where it must live
Some elements must never depend on JavaScript. They should be in the initial HTML or produced by SSR or SSG:
- titles
- body text
- internal links
- canonical tags
- robots directives
- hreflang annotations
W3era is explicit that canonical, robots and hreflang metadata belong in the initial HTML, not injected by script. A canonical that appears only after JavaScript runs is a signal that may arrive late, or not at all.
Take a React page that is purely client-side rendered, with its title injected by JavaScript. The server sends an empty shell. Everything a search engine would want to read depends on a later step. That page is not safe for SEO. Moving the same page to server rendering puts the title and text in the response itself.
React and Next.js
React reaches server-side rendering through Next.js. Next.js offers two routing models.
App Router
The App Router, built around Server Components, is the modern default. It is the recommended choice for any SEO-critical content. Components run on the server, so the HTML that leaves the server already contains the content.
Pages Router
The older Pages Router uses getServerSideProps for per-request rendering and getStaticProps for build-time generation. It remains stable, but it is less predictable than the App Router for SEO-critical content.
When to use which: getStaticProps for content that does not change in real time, since static generation is faster. getServerSideProps when the page must reflect current data on each request.
Vue and Nuxt.js
Vue offers server-side rendering through Nuxt.js. The concepts mirror those in Next.js:
- SSR mode: HTML is rendered on the server for each request.
- SSG mode: Nuxt generates a static site at build time.
- Hybrid mode: incremental static regeneration (ISR) combines static pages with regeneration.
Read this as a rough equivalence with Next.js: SSR with SSR, static generation with SSG. The same rule applies. SEO-critical pages should arrive as complete HTML.
Angular and Angular Universal
Angular reaches server-side rendering through Angular Universal. The setup differs from Next.js and Nuxt, but the goal is the same: send rendered HTML instead of an empty shell. Use it when public pages need to be readable without waiting for client-side execution.
No framework is intrinsically better or worse for SEO. React with Next.js, Vue with Nuxt.js and Angular with Angular Universal all support server-side rendering. The outcome depends on the implementation, not on the brand name.
Depending on JavaScript for critical content
Check: view the initial HTML source and search for the title and body text. If they are absent, they rely on execution.
Metadata not in the initial HTML
Check: look at the source for canonical, robots and hreflang. They should be there before any script runs.
Lazy-loading left unconfigured
Lazy-load scripts that are not critical, but check that important content is not hidden behind it. A poorly configured setup can slow Googlebot down.
Oversized bundles
Reduce bundle size and prerender as much as possible at build time. A bundle that is too large risks Googlebot timing out before rendering finishes. Check bundle weight in Lighthouse or PageSpeed Insights. Core Web Vitals are a topic of their own and are not covered in depth here.
Client-side rendering for the whole site
Check: which public sections rely on CSR? Reserve it for authenticated or highly interactive areas.
Checks to run
- Load the URL over HTTP and confirm it responds.
- Read the initial HTML source and look for the critical content.
- Confirm that CSS and JS files are accessible and not blocked in robots.txt.
- Check that schema.org structured data is present.
- Test with Lighthouse or PageSpeed Insights.
For official guidance, consult Google Search Central and its guidelines for site owners. Our homepage lists other technical guides from the magazine.
What remains unknown
Some questions cannot be answered from public information, and we will not guess:
- How many searches this topic receives, which we could not establish.
- What share of sites in Google’s results are built with JavaScript versus static. No public data exists.
- The precise delay JavaScript rendering adds to indexing. Google does not disclose these deltas.
- How many errors Googlebot hits when rendering JavaScript. That is internal to Google.
- Whether Google will one day change its position on client-side rendering. This is unclear.
Questions people ask
Do I need to prerender every page?
Start with SSG. Use SSR when content is dynamic.
Does Google index JavaScript more slowly?
The complexity is higher and there are more risks, so on average, yes. Well-implemented SSR does not carry that penalty.
How can I test that Googlebot sees my content?
Use URL Inspection in Google Search Console, read the initial HTML source, and run Lighthouse.
Are Svelte, SolidJS or Astro better options?
Astro generates static or server-rendered output by default, which is a safer starting point for SEO. As with the others, results depend on how you build.
JavaScript does not rule out good search visibility. It adds steps to check, and nobody can guarantee a position on Google.


