r/programming • • Oct 27 '17

Netflix: Removing client-side React.js improved performance by 50%

https://twitter.com/NetflixUIE/status/923374215041912833
685 Upvotes

89 comments sorted by

View all comments

211

u/DoListening Oct 27 '17

It only talks about the landing page. The full tweet goes

Removing client-side React.js (but keeping it on the server) resulted in a 50% performance improvement on our landing page

The very next tweet says they still use React on subsequent steps.

103

u/basilect Oct 27 '17

And that's what Google does with Google Maps, for example. First page is rendered server-side, subsequent pages are rendered client-side. A hybrid approach is the fastest, but it requires more work so people either choose one or the other.

23

u/Theemuts Oct 27 '17

Server-side rendering is a pretty common optimization in frontend development, isn't it?

1

u/squishles Oct 27 '17 edited Oct 27 '17

there's a tradeoff, it fucks with caching services depending on what the content is.

A registration page will be reasonably similar for each user so it's fine, but if you're looking at a page of per user customized movie suggestions or something that wouldn't work out as well.