Server-Side Rendering (SSR)
Server-side rendering is the process of rendering(loading) the web pages on the server side and sending the fully rendered HTML to the client. In this, the server generates HTML dynamically based on the requested URL and data then sends it to the client.
Features:
- It reduces the time to load initial page by delivering pre-rendered HTML directly to the client.
- Search engines can easily crawl and index pages rendered on the server side.
- It is rendered on server side so users can see content quicker, especially on slower connections or devices.
- It ensures that basic content is available to users even if JavaScript is disabled or fails to load.
- Devices with limited processing power benefit from SSR as it reduces the amount of client-side computation required to render the page.
How does SSR(Server-Side Rendering) differ from CSR(client-side rendering) ?
Server-Side Rendering (SSR) and Client-Side Rendering (CSR) are two different approaches used in web development to render web pages to users. Each approach has its own set of advantages and disadvantages.
In this article, we will learn about the difference between SSR and CSR with examples and features.
Table of Content
- Server-Side Rendering (SSR)
- Client-Side Rendering (CSR)
- Steps to Initialize Node Application and install required modules
- Difference between SSR and CSR