News for hackers. Stuff that matters.
Re:Hydration is pure overhead by simulate-me on Wednesday April 20, 2022 @04:36PM (#31102644)
One reason I like SSR is that you need some form of SSR for public-facing websites anyway. Website previews (like in iMessage, Twitter, etc.) rely on Open Graph tags in the HTML, and these services expect the OG tags to be available without executing any JavaScript. Since you already need this step, you can make loading pages much faster if you inline any data you might have fetched from the client at view time.
Re:Hydration is pure overhead by codercatdev on Wednesday April 20, 2022 @05:57PM (#31103586)
Just one side note here you could also just use SSG, and never need to hit a server unless you rebuild the page in some fashion
Re:Hydration is pure overhead by simulate-me on Wednesday April 20, 2022 @10:08PM (#31105345)
This doesn't work if the content is coming from a dynamic source like a database.