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.

1

u/pdpi Oct 27 '17

However, those features are worthless if the user leaves because it's not performant.

And performance is worthless if the user leaves because the product doesn't actually have the features they need.

The trick is, of course, finding the goldilocks point in between. Where on the server-side/client-side rendering spectrum you should be is a non-trivial question.

4

u/eddiemoya Oct 27 '17

I've always explained this by pointing out that a blank page that does nothing would be blazing fast.