# Client-Side Rendering (CSR)

> The browser builds the page with JavaScript. It starts once the code arrives.

**Field:** Software Development  
**Category:** Web Development  
**Also known as:** CSR, Browser Rendering

## Think of it like

Think of it like getting a flat-pack table. The parts arrive, and you build it at home.

## Definition

Client-side rendering means the browser builds the page with JavaScript. The server sends a nearly empty HTML file plus the code. The code then runs in the browser, fetches data and draws the page. It keeps the server simple and makes later clicks fast. But the user sees a blank screen until the code has loaded and run.

## Example

Jack's dashboard sends a tiny HTML file and a 400 KB script. On a slow phone, the screen stays blank for 3 seconds before the charts appear.

## Why it matters

It decides how fast a page first shows. On slow phones, CSR can feel very slow.

## Common mistake

Using it for pages that need to be found in search. Some crawlers see only the empty HTML.

## Three principles

- **Built in the browser.** JavaScript draws the page.
- **Empty at first.** Blank until the code runs.
- **Fast after that.** Later clicks are quick.

## Related terms

- [Server-Side Rendering (SSR)](https://learn.benibix.com/term/development/server-side-rendering)
- [Single-Page Application (SPA)](https://learn.benibix.com/term/development/single-page-application)
- [Hydration](https://learn.benibix.com/term/development/hydration)
- [JavaScript](https://learn.benibix.com/term/development/javascript)

## Told apart from

- [Server-Side Rendering vs Client-Side Rendering](https://learn.benibix.com/compare/ssr-vs-csr): With server rendering, the server builds the page and sends it ready to read. With client rendering, the browser gets code and builds the page itself. That makes the first view slower.

---

Source: https://learn.benibix.com/term/development/client-side-rendering
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
