Hacker News new | ask | show | jobs
by hutzlibu 1131 days ago
"Most websites should be using tools which do server rendering by default. "

Meaning the server sends html, or the server sends an image?

edit: html, at least with react

1 comments

Yes, HTML.

HTML is faster to load on all devices, usually smaller over the wire, trivially cacheable at every level. Its easier to debug, easier to archive or backup, and it plays nicely with screen readers, search engines and reader mode. The back button always works and does what the user expects. And it looks web-native everywhere.

I wrote a 9000 word blog post a couple years ago covered in diagrams. The page renders near-instantly on all browsers I've tried, and scrolling is buttery smooth. How did I do that? Its simple. When users open the webpage, I send them an HTML file.