Server-Side Rendering (SSR / CSR)
Server-Side Rendering (SSR) / Client-Side Rendering (CSR)
If the server builds the whole page and sends it, that's SSR. If it sends an empty frame and the browser builds it, that's CSR. SSR shows up better in search.
💡 SSR is delivering a finished meal. CSR is sending the ingredients and recipe so you cook it at home.
🤖 Say this to your AI
Make the pages that need to show up in search (home, product details, post details) with server-side rendering (SSR) or static generation. Screens you only see after logging in can use client-side rendering (CSR).
The key word is ‘Server-Side Rendering (SSR) / Client-Side Rendering (CSR)’. Including it helps AI understand you much more precisely.
📌 Good to know
A 'Hydration failed' error means the page built on the server and the page built in the browser don't match. Dates, random values, and localStorage are common causes.
When to use it
- When Google doesn't pick up your page content well
- When the first screen stays blank white for a long time
- When you get a 'hydration' error
Also called: ssr, csr, ssg, static generation, rendering, hydration, hydration error, server component, seo blank page