# Client-side rendering (CSR)

> Sending a JavaScript bundle that builds the page in the browser — flexible, but the first paint waits for the code to download and run.

In a CSR app the server sends a shell and a script; the script fetches data and constructs the page. For app-like interfaces behind a login — dashboards, editors — this is often fine: the user already has the app loaded and wants interactivity, not a first impression.

For public pages it is an expensive choice: crawlers may run your JavaScript slowly or not at all, link previews show nothing, and the 'Largest Contentful Paint' happens when the app finishes booting on the user's phone. That is why content sites moved to SSR and static generation — the page should exist before the JavaScript does.

## Related terms

- https://dfieldsolutions.com/en/glossary/ssr.md
- https://dfieldsolutions.com/en/glossary/hydration.md
- https://dfieldsolutions.com/en/glossary/core-web-vitals.md

---

Source: https://dfieldsolutions.com/en/glossary/client-side-rendering
DField Solutions — Dunakeszi, Hungary — dezso@dfieldsolutions.com
Booking: see https://dfieldsolutions.com/en/contact
