Skip to the content
Start free

Client-side vs server-side rendering

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 or an AI bot must do before it sees your words, links and prices.

What is client-side rendering? #

With client-side rendering (CSR), the server sends a nearly empty HTML shell plus a bundle of JavaScript. The browser runs the script, fetches data and then writes the content into the DOM. web.dev’s guide Rendering on the web defines it as rendering an app in a browser, using JavaScript to modify the DOM. Most single-page applications work this way by default.

What is server-side rendering? #

With 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 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? #

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, while generating pages on the server can raise 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, one of the Core Web Vitals.

Google handles JavaScript in 3 phases: crawling, rendering and indexing. Its JavaScript SEO basics page says 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. 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 and rendering for the wider picture.

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 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 tags are written by script. Many AI crawlers and live fetchers, such as GPTBot or 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.

What about dynamic rendering? #

Dynamic rendering means sending bots a pre-rendered copy and people the script version. Google’s dynamic rendering page 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 #

  • Noindex removed by script. Google says that when it sees a 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. Google suggests a 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 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 and INP even when first paint improves.
  • Titles set late. A title tag or canonical tag written by script may be missed by tools and bots that only read raw HTML.

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 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. 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 #

  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: it sets the raw source beside the page a browser builds.
  3. Use our meta tag checker and Open Graph checker to see the tags bots receive without script.
  4. Check that the page can be indexed with our indexability checker, then confirm in Google’s URL Inspection tool inside Search Console.
  5. For a whole site, our JavaScript rendering check (Pro) compares every page.

Questions #

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? #

Not always. Building HTML per request can slow the first byte. Good caching or static rendering fixes most of that.

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.

Sources #

Updated 24 November 2026 by URSY.

Cite this page: Client-side vs server-side rendering. URSY. Updated 24 November 2026. https://ursy.com/wiki/client-side-vs-server-side-rendering/ · Section links

Tools for this

  • LiveAI Crawler Log Analyserdrop in your server log, see which AI bots read what (in browser)Run the check →
  • LiveDuplicate Content Checker (inside your site)Run the check →
  • LiveCompare Two Websitesour checks side by side, winner per row (box on the home page)Run the check →
  • ProBot costServer time each bot eatsIn URSY Pro →
  • ProJavaScript rendering checkWhat bots that don't run JavaScript missIn URSY Pro →
  • ProImage AI sidecars + licenceEach picture with a description file for AI and licence markupIn URSY Pro →

All 871 wiki entries, A to Z →