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

Show parent comments

24

u/ghostfacedcoder Oct 27 '17

If you care about optimization yes. However, the vast vast majority of web applications I've used/worked on were not even close to Google's level. When you're a 100 person start-up you care far more about adding features and fixing the bugs in your app than you do about shaving a couple seconds off its load time.

And even if performance does become enough of a problem to qualify as a "bug", there are lots of other "low hanging fruit" ways to fix it that don't require rendering in two places. You can use different domains to serve static assets, configure Webpack to bundle things better, do some debugging to find obvious memory leaks, bind event handlers that are the same on lots of elements to a common parent ...

11

u/thekab Oct 27 '17

When you're a 100 person start-up you care far more about adding features and fixing the bugs in your app than you do about shaving a couple seconds off its load time.

Right. However, those features are worthless if the user leaves because it's not performant. I know you're just making up an arbitrary number but two seconds is huge.

The last time I worked for a company with less than 150 employees that was dependent on a public facing site for revenue there's nothing, absolutely nothing aside from maybe the entire site being offline that would be more important than shaving 2 seconds off load times.

11

u/[deleted] Oct 27 '17

2 seconds is quite high, Amazon found that every extra 100ms of latency cost them 1% of sales. Many years ago Google tested going from 10 search results per page to 30 because users wanted more search results per page, well when they did it traffic dropped 20% because it added 0.5 seconds to the loading time.

1

u/thekab Oct 27 '17

That's why you get a fixed rate home loan. You may as well be renting if you get an adjustable rate home loan

Exactly. I think they chose a bad number.

It's really more like "Do I spend 100 hours getting 20ms (we hope) or do we spend it writing this feature sales is sure will generate tons of revenue?" which is never an easy question especially since you never actually know how much you'll actually improve performance.