[Atomic Glue](atomicglue.co)
WEB DEVELOPMENT
Home › Glossary › Web Development· 78 ·

Client-Side Rendering (CSR)

\siː ɛs ˈɑːr\abbr.
Filed underWeb DevelopmentPerformanceArchitecture
In brief · quick answer

Client-side rendering (CSR) generates HTML content in the browser using JavaScript, with the server providing a minimal shell and data APIs rather than fully rendered pages.

§ 1 Definition

CSR is the rendering model where the browser downloads a minimal HTML shell and a JavaScript bundle, then executes JavaScript to generate the page content. This is the architecture of traditional single-page applications (SPAs). The server returns a blank or skeleton HTML page with a `<div id="root">` and a `<script>` tag. JavaScript takes over from there: it fetches data from APIs, creates DOM elements, and manages routing in the browser. CSR provides a smooth, app-like experience after the initial load. Subsequent page transitions are instant (no full page reloads). The tradeoff is a slower initial load: the user sees nothing until JavaScript downloads, parses, executes, and fetches data. CSR without mitigation strategies (loading states, code splitting) produces poor user experiences on slow connections. The industry has largely moved to hybrid models or SSR for content-heavy sites, but CSR remains appropriate for logged-in application UIs where SEO is less critical.

§ 2 How it works

The server sends a minimal HTML file (typically containing a root div, meta tags, and script links). The browser downloads and executes the JavaScript bundle. The JavaScript creates the DOM structure, fetches data from APIs, and manages routing using the History API. All subsequent navigation happens client-side: JavaScript intercepts link clicks, fetches new data, and updates the DOM without a full page reload.

§ 3 When to use CSR

CSR is appropriate for authenticated application UIs: dashboards, admin panels, collaborative tools, and complex form workflows. These apps benefit from instant navigation and state management. CSR is less appropriate for content-focused public sites, e-commerce, or blogs where SEO and initial load speed matter. Even for apps, combine CSR with code splitting and lazy loading to minimize the initial bundle.

§ 4 Common misconception

CSR is not "just a framework thing." Even vanilla JavaScript can do client-side rendering. And CSR does not mean you have no server logic. The API server still handles authentication, authorization, data validation, and business logic. CSR only means the rendering is client-side. Also, CSR does not automatically fail SEO. Search engines like Google can execute JavaScript and index CSR content, but the quality of indexing depends on JavaScript execution budget and timing.

§ 5 Note

CSR performance can be improved with server-side rendering (SSR) for the initial page, then switching to CSR for subsequent navigation. This hybrid approach is called "universal" or "isomorphic" rendering.

§ 6 In code

```html
<!-- Typical CSR shell -->
<!DOCTYPE html>
<html>
<head>
  <title>My App</title>
</head>
<body>
  <div id="root"></div>
  <script src="/bundle.js"></script>
</body>
</html>
```

§ 7 Common questions

Q. Is CSR bad for SEO?
A. Not necessarily. Google can render JavaScript, but results vary. SSR or SSG is more reliable for SEO-critical content.
Q. What is the biggest problem with CSR?
A. Slow initial load, especially on mobile networks. Users see a blank screen until the JavaScript bundle downloads and executes.
Key takeaways
  • CSR generates HTML in the browser using JavaScript.
  • Provides fast subsequent navigation but slow initial loads.
  • Best suited for application UIs, not content-focused public sites.
How Atomic Glue helps

Atomic Glue evaluates your project needs and chooses the right rendering strategy. For app UIs, we optimize CSR with code splitting and caching. Get in touch.

Get in touch
# Client-Side Rendering (CSR)

Client-side rendering (CSR) generates HTML content in the browser using JavaScript, with the server providing a minimal shell and data APIs rather than fully rendered pages.

Category: Web Development (also: Performance, Architecture)

Author: Atomic Glue Team

## Definition

CSR is the rendering model where the browser downloads a minimal HTML shell and a JavaScript bundle, then executes JavaScript to generate the page content. This is the architecture of traditional single-page applications (SPAs). The server returns a blank or skeleton HTML page with a `<div id="root">` and a `<script>` tag. JavaScript takes over from there: it fetches data from APIs, creates DOM elements, and manages routing in the browser. CSR provides a smooth, app-like experience after the initial load. Subsequent page transitions are instant (no full page reloads). The tradeoff is a slower initial load: the user sees nothing until JavaScript downloads, parses, executes, and fetches data. CSR without mitigation strategies (loading states, code splitting) produces poor user experiences on slow connections. The industry has largely moved to hybrid models or [SSR](/glossary/server-side-rendering-ssr) for content-heavy sites, but CSR remains appropriate for logged-in application UIs where SEO is less critical.

## How it works

The server sends a minimal HTML file (typically containing a root div, meta tags, and script links). The browser downloads and executes the JavaScript bundle. The JavaScript creates the DOM structure, fetches data from APIs, and manages routing using the History API. All subsequent navigation happens client-side: JavaScript intercepts link clicks, fetches new data, and updates the DOM without a full page reload.

## When to use CSR

CSR is appropriate for authenticated application UIs: dashboards, admin panels, collaborative tools, and complex form workflows. These apps benefit from instant navigation and state management. CSR is less appropriate for content-focused public sites, e-commerce, or blogs where SEO and initial load speed matter. Even for apps, combine CSR with [code splitting](/glossary/code-splitting) and [lazy loading](/glossary/lazy-loading) to minimize the initial bundle.

## Common misconception

CSR is not "just a framework thing." Even vanilla JavaScript can do client-side rendering. And CSR does not mean you have no server logic. The API server still handles authentication, authorization, data validation, and business logic. CSR only means the rendering is client-side. Also, CSR does not automatically fail SEO. Search engines like Google can execute JavaScript and index CSR content, but the quality of indexing depends on JavaScript execution budget and timing.

## Note

CSR performance can be improved with server-side rendering (SSR) for the initial page, then switching to CSR for subsequent navigation. This hybrid approach is called "universal" or "isomorphic" rendering.

## In code

## Common questions
Q: Is CSR bad for SEO?
A: Not necessarily. Google can render JavaScript, but results vary. SSR or SSG is more reliable for SEO-critical content.
Q: What is the biggest problem with CSR?
A: Slow initial load, especially on mobile networks. Users see a blank screen until the JavaScript bundle downloads and executes.

## Key takeaways

## Related entries


Last updated June 2026. Permalink: atomicglue.co/glossary/client-side-rendering-csr

Schedule a call

30 min · Video call

1
Date
2
Time
3
Details