---
title: "Client-side vs server-side rendering"
description: "Client-side rendering builds the page in the browser with JavaScript; server-side rendering sends finished HTML. Here is what each means for SEO and AI."
url: https://ursy.com/wiki/client-side-vs-server-side-rendering/
updated: 2026-11-24T23:13:52+00:00
publisher: URSY (https://ursy.com/)
cite: Name URSY and link https://ursy.com/wiki/client-side-vs-server-side-rendering/
---

# Client-side vs server-side rendering

> Client-side rendering builds the page in the browser with JavaScript; server-side rendering sends finished HTML. Here is what each means for SEO and AI.

**Client-side vs server-side rendering is the choice between building a web page in the visitor’s browser with JavaScript (client-side) or building the finished HTML on the server before it is sent (server-side).** Both can rank. The difference is how much work a browser, a [search crawler](https://ursy.com/wiki/search-crawler/) or an AI [bot](https://ursy.com/wiki/bot-web-robot/) must do before it sees your words, links and prices.

## What is client-side rendering? {#what-is-client-side-rendering}

With [client-side rendering](https://ursy.com/wiki/client-side-rendering/) (CSR), the server sends a nearly empty [HTML](https://ursy.com/wiki/html/) shell plus a bundle of JavaScript. The browser runs the script, fetches data and then writes the content into the [DOM](https://ursy.com/wiki/dom-document-object-model/). web.dev’s guide [Rendering on the web](https://web.dev/articles/rendering-on-the-web) defines it as rendering an app in a browser, using JavaScript to modify the DOM. Most [single-page applications](https://ursy.com/wiki/single-page-application/) work this way by default.

## What is server-side rendering? {#what-is-server-side-rendering}

With [server-side rendering](https://ursy.com/wiki/server-side-rendering/) (SSR), the server runs the code and returns complete HTML for each address. The text is in the first response. MDN’s [SSR glossary entry](https://developer.mozilla.org/en-US/docs/Glossary/SSR) notes that the two methods are not mutually exclusive and can be used together in the same app. A close cousin is static rendering: every page is built once, when the site is built, and saved as a plain file.

## How do they compare? {#how-do-they-compare}

| Question | Client-side | Server-side |
| --- | --- | --- |
| What is in the first response? | A shell and script files | The full page text and links |
| Who does the work? | The visitor’s device | Your server, once per request |
| First byte | Usually quick | Can be slower, unless cached |
| First paint of content | Waits for script and data | Usually fast |
| Bots that skip JavaScript | See little or nothing | See everything |
| Status codes | Hard to set per page | Set normally |

web.dev says SSR generally produces a fast [first contentful paint](https://ursy.com/wiki/first-contentful-paint/), while generating pages on the server can raise [time to first byte](https://ursy.com/wiki/time-to-first-byte/). With CSR, it warns that the JavaScript needed tends to grow as an app grows, which can hurt [Interaction to Next Paint](https://ursy.com/wiki/interaction-to-next-paint/), one of the [Core Web Vitals](https://ursy.com/wiki/core-web-vitals/).

## Why does it matter for search? {#why-does-it-matter-for-search}

[Google](https://ursy.com/wiki/google/) handles JavaScript in 3 phases: [crawling](https://ursy.com/wiki/crawling/), rendering and indexing. Its [JavaScript SEO basics](https://developers.google.com/search/docs/crawling-indexing/javascript/javascript-seo-basics) page says [Googlebot](https://ursy.com/wiki/googlebot/) queues pages with a 200 status for rendering, and a page may wait in that queue until Google’s resources allow. A server-rendered page can be read in the first pass. A client-rendered page needs the second pass before its text reaches the [index](https://ursy.com/wiki/search-engine-index/). The same Google page still calls server-side or pre-rendering a great idea, because it makes the site faster for people and crawlers. See [JavaScript SEO](https://ursy.com/wiki/javascript-seo/) and [rendering](https://ursy.com/wiki/rendering/) for the wider picture.

## Why does it matter for AI answers? {#why-does-it-matter-for-ai-answers}

Google’s page also says plainly that not all bots can run JavaScript. MDN adds that major [search engines](https://ursy.com/wiki/search-engine/) can run it, but social media crawlers usually cannot. That is why a link shared on a chat app often shows a blank card when the [Open Graph](https://ursy.com/wiki/open-graph/) tags are written by script. Many [AI crawlers](https://ursy.com/wiki/ai-crawler/) and [live fetchers](https://ursy.com/wiki/live-fetcher/), such as [GPTBot](https://ursy.com/wiki/gptbot/) or [ClaudeBot](https://ursy.com/wiki/claudebot/), are not documented by their owners as running scripts, so plan as if they read raw HTML only. If your facts only appear after a script runs, an assistant may never read them. Server-sent HTML is the safer route for [answer engine optimisation](https://ursy.com/wiki/answer-engine-optimisation/).

## What about dynamic rendering? {#what-about-dynamic-rendering}

[Dynamic rendering](https://ursy.com/wiki/dynamic-rendering/) means sending bots a pre-rendered copy and people the script version. Google’s [dynamic rendering page](https://developers.google.com/search/docs/crawling-indexing/javascript/dynamic-rendering) now calls it a workaround and not a recommended solution. It points to server-side rendering, static rendering or hydration instead. Hydration means the server sends finished HTML, then a script attaches buttons and live state on top.

## Common mistakes {#common-mistakes}

- **Noindex removed by script.**  Google says that when it sees a [noindex](https://ursy.com/wiki/noindex/) in the first HTML it may skip rendering, so a script cannot reliably take it away.
- **Every error is a 200.**  A client-rendered “not found” screen still returns 200, which creates a [soft 404](https://ursy.com/wiki/soft-404/). Google suggests a [redirect](https://ursy.com/wiki/redirect/) to a server-side not-found address or a script-added noindex.
- **Links as click handlers.**  Crawlers follow real `<a href>` links. Buttons that change the view with script are not links, so [internal linking](https://ursy.com/wiki/internal-linking/) breaks.
- **Heavy hydration.**  Sending full HTML and then a huge bundle can look fast but feel slow. web.dev says rehydration can harm [Total Blocking Time](https://ursy.com/wiki/total-blocking-time/) and INP even when first paint improves.
- **Titles set late.**  A [title tag](https://ursy.com/wiki/title-tag/) or [canonical tag](https://ursy.com/wiki/canonical-tag/) written by script may be missed by tools and bots that only read raw HTML.

## A worked example {#a-worked-example}

A small shop runs a product list as a single-page app. The raw HTML for `/kettles/` holds one empty `div` and 3 script files. In Google’s [URL](https://ursy.com/wiki/url/) Inspection, the rendered view shows all 40 products, so Google can see them after rendering. But a link preview on a messaging app shows only the site name, and a fetch that skips JavaScript returns no prices at all. The shop switches the list and product pages to server rendering, keeps the filter buttons as client-side extras, and caches each page at the [edge](https://ursy.com/wiki/edge-cache/). The first response now carries every name, price and link. Time to first byte stays low because cached pages do not need rebuilding.

## How to check it {#how-to-check-it}

1. Open the page, choose “view source” (not the inspector) and search for a sentence from the page. If it is missing, the text is client-rendered.
2. Put the address into our [JavaScript SEO checker](https://ursy.com/javascript-seo-checker/): it sets the raw source beside the page a browser builds.
3. Use our [meta tag checker](https://ursy.com/meta-tag-checker/) and [Open Graph checker](https://ursy.com/open-graph-checker/) to see the tags bots receive without script.
4. Check that the page can be indexed with our [indexability checker](https://ursy.com/indexability-checker/), then confirm in Google’s [URL Inspection](https://ursy.com/wiki/url-inspection/) tool inside [Search Console](https://ursy.com/wiki/google-search-console/).
5. For a whole site, our [JavaScript rendering check](https://ursy.com/pro/javascript-rendering-check/) (Pro) compares every page.

## Questions {#questions}

### Does Google index client-side rendered pages? {#does-google-index-client-side-rendered-pages}

Yes, Google renders JavaScript in a headless Chromium browser. The cost is a delay and a risk that some content, links or tags are missed.

### Is server-side rendering always faster? {#is-server-side-rendering-always-faster}

Not always. Building HTML per request can slow the first byte. Good [caching](https://ursy.com/wiki/caching/) or static rendering fixes most of that.

### Do I need to rebuild my whole site? {#do-i-need-to-rebuild-my-whole-site}

Usually not. Render the pages that must be found (home, categories, products, articles) on the server, and keep interactive parts on the client.

## Related words {#related-words}

- [Critical rendering path](https://ursy.com/wiki/critical-rendering-path/)
- [Crawlability](https://ursy.com/wiki/crawlability/)
- [Technical SEO](https://ursy.com/wiki/technical-seo/)
- [Largest Contentful Paint](https://ursy.com/wiki/largest-contentful-paint/)

## Sources {#sources}

- [web.dev: Rendering on the web](https://web.dev/articles/rendering-on-the-web), checked 24 November 2026
- [Google Search Central: Understand JavaScript SEO basics](https://developers.google.com/search/docs/crawling-indexing/javascript/javascript-seo-basics), checked 24 November 2026
- [Google Search Central: Dynamic rendering as a workaround](https://developers.google.com/search/docs/crawling-indexing/javascript/dynamic-rendering), checked 24 November 2026
- [MDN: SSR (server-side rendering)](https://developer.mozilla.org/en-US/docs/Glossary/SSR), checked 24 November 2026

*Updated 24 November 2026 by URSY.*
