user
Hydration: Enhance Web Apps with Server & Client Rendering

Hamza Miloud Amar
June 13, 2024
4 min read

Welcome back! In our previous post, we discussed Client Side Rendering. Today, we'll explore Hydration, a technique that enhances the performance of Single Page Applications by combining the benefits of Multi page Application and Client Side Rendering. Hydration involves rendering the initial HTML on the server and then hydrating it on the client side with JavaScript to make it interactive.
Web Development Group
Me , Server , Browser, CDN, Narrator
narrator
user
server
browser
user
browser
user
server
user
browser
user
browser
Slow Time to Interactive: Hydration can slow down how quickly a page becomes interactive (TTI) because the browser needs to download and run all the JavaScript code that makes the page interactive.
browser
Duplicate Execution: The same app logic might need to run twice – first on the server to generate the initial HTML, and then again in the browser during hydration to add interactivity.
user
browser
user
browser
me
We hope you now have a better understanding of Hydration and its role in modern web development. Join us next time as we delve into Static Site Generation (SSG), a method that pre-renders pages at build time for optimal performance. Goodbye for now, and see you in our next post on Static Site Generation!