Re:MDN (beta) is now built with React
by pier25 on Tuesday July 16, 2019 @03:16PM
(#20453015)
How is it surprising that rendering a React website is slower than simple HTML?
[ Parent
| on HN ]
The 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.
I'm not too familiar with Gatsby but something has to be slowing you down if TTFB is too high.
It's not that high, Google says I might be able to save .8 seconds. I might try hosting on netlify and see if that improves things
Re:MDN (beta) is now built with React
by robertoandred on Tuesday July 16, 2019 @03:32PM
(#20453121)
An SSR React site IS simple HTML.
Doesn't matter, React has to rehydrate which blocks the CPU.
SSR solves waiting for the API but not the CPU problem.
Re:MDN (beta) is now built with React
by robertoandred on Tuesday July 16, 2019 @04:59PM
(#20453850)
That doesn't affect TTFB.