Server-Side vs Client-Side Rendering for SEO: Which Is Better and When It Matters
In this article
For pages that need to rank, server-side rendering is better for SEO. The server sends complete HTML, so Googlebot reads the content, the links and the metadata on its first fetch. With client-side rendering the first fetch returns a near-empty shell, and the content only exists after Google runs your JavaScript in a second, queued rendering pass. Google does run it, but later, with limits, and many other crawlers never run it at all. Our JavaScript SEO audit checklist lists those limits and how to check a page against them.
Client-side rendering still has a place: logged-in dashboards, editors, configurators, anything behind a login where search is irrelevant and the interface is the product. The mistake is picking one approach for a whole site. Public pages should be rendered on the server; the interactive parts can be enhanced with as much JavaScript as they need.
Below: what the two approaches actually do, how Google's two-wave rendering works and where it fails, and the Core Web Vitals consequences. Then the hybrid options, how to check which one your site is using, and where we land on our own builds.
What the two approaches actually do
With client-side rendering (CSR), the server sends an HTML file containing little more than an empty container and a script tag. The browser downloads the JavaScript bundle, runs it, calls an API for the data, and builds the page in the browser. Single-page applications built with React, Vue or Angular work this way by default.
With server-side rendering (SSR), the server does that work before responding. A Django view queries the database, renders a template and sends finished HTML. The browser can paint it immediately, and any JavaScript that follows adds behaviour to a page that already exists. Frameworks such as Next.js and Nuxt bring the same idea to React and Vue, rendering on the server first and then "hydrating" the page with the client-side code. Static generation goes one step further and renders pages to files at build time, so the server only has to hand them out.
| Approach | What the first HTML contains | What Googlebot sees on the first pass | Largest Contentful Paint | Server response time | Best for |
|---|---|---|---|---|---|
| Server-side rendering | The full page | Everything | Fast; the browser paints what arrives | Depends on the work per request; caching helps | Marketing pages, shops, blogs, anything public |
| Client-side rendering | An empty container and scripts | Almost nothing | Waits for script download, execution and an API call | Fast, because the server does little | Dashboards and apps behind a login |
| Static generation | The full page, prebuilt | Everything | Fastest | Fastest | Content that changes rarely |
| Hybrid (SSR plus hydration or islands) | The full page plus scripts for interactive parts | Everything | Fast if hydration is kept small | As SSR | Sites with a few interactive components |
How Google handles JavaScript: the two waves
Google processes a page in two stages. In the first, Googlebot fetches the HTML, extracts whatever links and content are in it, and queues the URL for rendering. In the second, Google's Web Rendering Service, which runs an evergreen version of Chromium, loads the page, executes the JavaScript and indexes the resulting DOM. The gap between the two is not fixed. It is often short, but it depends on Google's rendering capacity and the site's importance, and it can stretch to days. A new page on a client-rendered site can sit indexed as an empty shell until the second wave arrives.
Rendering also has limits that a browser does not:
- Googlebot does not click, scroll or type. Content that appears on interaction does not exist.
- Links must be real
<a href>elements. Navigation driven by click handlers is not followed, and URLs that differ only after a#are treated as the same page. - A
noindexin the raw HTML stops rendering entirely, so JavaScript that removes it later never runs. - API calls that need cookies, authentication or a user gesture fail, and the content they would have loaded is missing.
- Rendering has a time budget. A page whose data arrives slowly can be indexed partially rendered.
- Canonical tags, titles and structured data injected by JavaScript are picked up only in the second wave and are a common source of "Google chose a different canonical" surprises.
Outside Google, the picture is worse for client-rendered pages. Social previews read the raw HTML for Open Graph tags, which is why a shared link to a CSR site often shows no title or image. Bing renders some JavaScript. Many other crawlers, including most of those used by AI assistants to read pages, take the raw HTML and move on. Google's own documentation describes dynamic rendering, serving a prerendered copy to bots, as a workaround rather than a long-term solution.
Speed and Core Web Vitals
Rendering choice shows up directly in the speed metrics Google uses. With client-side rendering, Largest Contentful Paint cannot happen until the bundle has downloaded, parsed and run and the data has come back from the API. On a mid-range phone that chain alone can exceed Google's 2.5 second threshold. Heavy hydration also loads the main thread at exactly the moment the visitor first tries to tap something. That is what Interaction to Next Paint measures, with a threshold of 200 milliseconds. Our Core Web Vitals guide covers all three metrics.
Server-side rendering moves the cost to the server. Time to first byte now includes the database queries and template work, so a slow view produces a slow page for everyone. The remedy is caching at the right layers, from per-view and fragment caching in Django to a CDN in front of the whole site. Our guide to browser, server and CDN caching walks through them. Done properly, a server-rendered page reaches the browser faster than a client-rendered one can even start. Our guide to server response time and rankings covers what to do when it does not.
The hybrid middle ground
You rarely have to choose one extreme. Next.js, Nuxt and SvelteKit render on the server and hydrate in the browser, which solves the first-wave problem at the cost of shipping and running the framework twice. Islands architectures, such as Astro, render everything on the server and hydrate only the components that need interactivity. Static generation with on-demand regeneration suits content that changes rarely.
On a Django site the hybrid is simpler. Templates render the page on the server. The parts that need to react, a live price, a filter, a booking calendar, are enhanced with small scripts or HTMX requests. Those fetch fragments of HTML from the same views. There is no second rendering engine to maintain.
For a web platform with public pages and a logged-in product, we build the marketing pages, pricing and help content as server-rendered Django pages. The application behind the login is built as whatever the interface needs, which may well be a client-rendered app talking to an API. Search engines see the pages that are meant for them; users get the interface that is meant for them.
How to check which one your site is using
- View the page source (not the DevTools element inspector, which shows the rendered DOM). Search for a sentence from the main content and for
<h1. If they are not there, the page is client-rendered. - Count the links the server sends. From a terminal:
curl -s https://example.com/ | grep -c "<a href". A public page returning a count of zero or one has no crawlable navigation in its first wave. - Switch JavaScript off in Chrome DevTools and reload. What remains is what non-rendering crawlers and social previews receive.
- Use URL Inspection in Search Console. "View crawled page" shows the rendered HTML Google kept, the resources it could not load, and any JavaScript console errors from the rendering pass. Compare it with the source: content present here but not in the source made it through the second wave; content missing from both did not.
- Paste a link into a chat tool and see whether the preview shows a title, description and image. If it does not, the Open Graph tags are being set by JavaScript.
The JavaScript rendering section of our technical SEO audit checklist runs these checks across a whole site rather than one page at a time. Because Google indexes the mobile version of a page, run them with a mobile user agent as well. Our guide to mobile-first indexing explains why that is the version that counts.
Questions people ask
Can Google index JavaScript websites?
Yes, with conditions. Google renders JavaScript in a second pass, so content, links and metadata that depend on it are indexed later than server-rendered equivalents. Anything that needs interaction, authentication or more time than the renderer allows is missed. Other search engines and most AI crawlers index far less of it.
Is server-side rendering slower?
The server does more work per request, so an uncached slow view produces a slow page. With caching in place, a server-rendered page usually reaches a visible state sooner than a client-rendered one, because the browser has nothing to assemble.
Does it matter which framework does the server rendering?
Not to Google. Finished HTML from Django, Rails, Next.js or a static generator is indexed the same way. Choose the framework for the application you are building and the team maintaining it, then make sure the public pages are rendered on the server whichever you pick.
Where we land on our own builds
Everything we build renders its public pages on the server in Django, because it removes a whole class of indexing problems before they can start. There is no second wave to wait for, no hydration cost on phones, no social preview that comes up blank, and no crawler that sees an empty page. Interactivity is added where it earns its place, and the application side of a platform is built with whatever interface suits it, behind the login where search does not reach.
If your site is client-rendered today and the pages you need to rank are among them, the check in the section above takes five minutes. It will tell you how much Google is actually seeing. The answer is usually less than expected, and moving those public pages to server rendering is the single largest technical SEO change available to a JavaScript-heavy site.