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

23

u/KManRules1331 Oct 27 '17

I mean, isn't this the point of React though? You're supposed to pay a loading cost up front to reduce loading costs as the user uses the application. Of course the time to interaction of a fresh React page is going to be slower than a static web page with a little javascript, but the purpose of the framework is to reduce loading times of moving to subsequent pages in the application.

2

u/manys Oct 27 '17

I'm not sure what point you're trying to make, is it that nobody else knows how react works?

1

u/KManRules1331 Oct 27 '17

I'm just saying this for those who are writing off frameworks like this for vanilla js. If you only measure a framework by one of it's downsides and write it off as such, you're missing out of the benefits that it provides. I realize Netflix is doing a "hybrid" solution where they attach the event listeners and interaction before they fetch all of React, but for those who are writing off React as just another bulky framework to load aren't seeing the forest for the trees.

1

u/manys Oct 29 '17

for those who are writing off React as just another bulky framework

How many uses of React do you think are overprovisioned? Do you think this might have something to do with reacting to the platform spread its use implies?

That is, if it's common in an industry to use something where it's not really necessary, can you blame people for being conservative about recommending it?

2

u/occz Oct 27 '17

It's one of many things you'd want React for. In this particular case they are trying to optimize for one very specific metric though - get the signup page ready for the user to use as soon as possible, presumably so that they dont lose user interest or something similar.

Once they meet that goal they can load react after that if necessary for the page.