Hacker News new | ask | show | jobs
by simulate-me 1526 days ago
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.
1 comments

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
This doesn't work if the content is coming from a dynamic source like a database.