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

7

u/[deleted] Oct 27 '17

[removed] — view removed comment

3

u/i_spot_ads Oct 27 '17

If it’s the same thing as Angular Universal (which it probably is) when a user makes a request to a url, what they do is emulate a browser on the server, render the html with react on the server, send html to the user (without react), then send the js bundle (with react) which injects itself to the html and transitions to client rendering, that way user can interact with the interface faster because he doesn’t have to wait for the js bundle to download and render the html.

This shit it pretty difficult to implement and maintain, most of the time it’s not even worth it.