8-BIT PIXEL RETRO GUIDE
Client-Side Rendering (CSR) is a web rendering technique where web pages are primarily rendered in the user's browser using JavaScript. When a user requests a CSR-powered page, the server typically sends a minimal HTML document along with JavaScript bundles. The browser then executes this JavaScript to fetch data, build the page structure, and display the content.
In CSR, the browser does most of the work. The initial HTML received from the server is often just a shell, sometimes with a loading spinner. The JavaScript then takes over, dynamically generating the HTML content and making the page interactive. This approach is characteristic of many Single Page Applications (SPAs).
To use our earlier analogy, CSR is like receiving a flat-pack furniture box with detailed instructions and all the parts – you (the browser) assemble it on-site.
CSR is often used for highly interactive web applications, such as dashboards, social media platforms, and complex tools where a rich user experience and app-like feel are paramount. For sophisticated applications, AI agents providing financial insights can enable dynamic and responsive interfaces.
CSR offers a very responsive and fluid user experience after the initial setup.
Now that you have a grasp of what CSR entails, let's delve into its inner workings and its specific advantages and disadvantages.
Explore How CSR Works & Its Pros and Cons