3 ms·
How is it surprising that rendering a React website is slower than simple HTML?
by pier25 7y ago
How is it surprising that rendering a React website is slower than simple HTML?
- robertoandred 7y agoAn SSR React site IS simple HTML.
- pier25 7y agoDoesn't matter, React has to rehydrate which blocks the CPU. SSR solves waiting for the API but not the CPU problem.
- robertoandred 7y agoThat doesn't affect TTFB.
- pier25 7y agoAh you are right, my bad. I was thinking of TTFI.
- anchpop 7y agoThe server doesn't do any rendering before serving the page. All the "SSR" is done exactly once at build time. To the server it's no different from serving any other site.