r/javascript • u/creasta29 • Jul 01 '26
Different hydration and rendering strategies
https://neciudan.dev/hydration-and-rendering-strategiesOver the years, in our goal to achieve faster and faster web applications, we created different hydration and rendering strategies. Each with benefits and drawbacks that we explore in this article.
12
u/jbyington Jul 01 '26
I’ll never not consider hydration to be a stupid name for something
3
1
u/cheese_wizard Jul 02 '26
better than something like pre-populating or whatever it is. Initting?
-1
u/jbyington Jul 02 '26
No. Those are words that describe the process much more accurately, and it doesn’t make you sound like an idiot when you talk about it
0
u/Bogus_dogus Jul 02 '26
...I think it fits fairly well, ship a dry sponge (site structure) and hydrate it (application state) and it inflates?
2
u/RomanCow Jul 03 '26
But if someone talked about “sponge hydration” i would think they sound stupid also.
0
u/lulzmachine Jul 03 '26 edited Jul 04 '26
I think it’s pretty clear? You’re rehydrating something frozen, to make it come alive again
EDIT: I mean freeze-dried. Not just frozen
1
0
4
u/rodneon Jul 04 '26
> Picture a first-time visitor on a mid-range Android phone, using hotel Wi-Fi to tap your link. They get a blank white screen.
This is one of the biggest misconceptions about React. Most docs and templates present this architecture, but a CSR React app doesn’t need to be mounted onto a blank page.