r/reactjs • u/magenta_placenta • Oct 27 '17
Removing client-side React.js (but keeping it on the server) resulted in a 50% performance improvement on our landing page (Netflix)
https://twitter.com/NetflixUIE/status/9233742150419128332
u/StyleIsFree Oct 27 '17
What does it mean by keeping react on the server?
5
u/renfieldist Oct 27 '17
Server-side rendering. React runs, but on the server, and the client browser downloads the result.
1
1
0
Oct 27 '17
[deleted]
6
u/ajc820 Oct 28 '17
As they elaborate on HackerNews it's not really a static page. The problem with drawing conclusions from this presentation is that it's very unique to the scale of Netflix. The vast majority of companies would benefit investing development time in functionality etc. long before this kind of optimization.
Perf matters, as has been demonstrated in the e-commerce realm multiple times. But you still need a product to tune performance of, in the first place. I'm sure a lot of teams using React don't actually need the entire codebase (hello Preact), you absolutely could build a raw vanilla-JS codebase specifically for your product's (highly dynamic) landing page ...but the cost/benefit doesn't make sense until you're near Netflix's position, and even then they're still using React server side.
1
0
2
u/darrenturn90 Oct 27 '17
I wonder what would happen if instead of ditching react, the react part was served from a CDN, presumably already cached in the browser and not needing to be reloaded every time?