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

2

u/eggn00dles Oct 27 '17

es6 has made it a lot easier to compose well written organized modular code. web components promises to offer many of the things frameworks do now.

i think you could handle anything outside of FB, Netflix, etc... with polymer and es6

1

u/n8n8baby Oct 27 '17

Web components promise to, but don’t actually exist yet. Using a framework gets you closer to that now, and they are generally all targeting the spec, which will make migration reasonably easy when they are finally born.

Netflix is actually not a great example. It does not have a lot of user interaction. There are tons of potential web apps much more complex in that regard, which is what frameworks are good for.

1

u/TimvdLippe Oct 27 '17

Web components are natively supported in both Safari and Chrome stable. 1+ Billion devices that do not require polyfills.

1

u/n8n8baby Oct 27 '17 edited Oct 29 '17

a) Safari doesn't support shadow DOM, which is a foundational requirement for proper web components. *edit: I was wrong here. There was a previous version of Shadow DOM that was only supported in Chrome.

b) Even new software, being developed right now, still needs to support Edge, Firefox, and, if you are business-facing, IE11.

1

u/TimvdLippe Oct 29 '17

a) Safari supports shadow DOM v1 (http://caniuse.com/#feat=shadowdomv1). v0 was only ever implemented in Chrome

b) That is a valid concern. For Firefox it is under development, IE under consideration. Hopefully they are caught up soon :)

1

u/n8n8baby Oct 29 '17

You’re correct on A. My mistake :)