3 ms·
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
by simulate-me 4y 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.
- codercatdev 4y agoJust 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
- simulate-me 4y agoThis doesn't work if the content is coming from a dynamic source like a database.