r/javascript • • Aug 11 '15

Netflix.com Adopts Universal JavaScript, Drops Java From Rendering Pipeline

http://www.infoq.com/news/2015/08/netflix-universal-javascript
482 Upvotes

115 comments sorted by

View all comments

2

u/myevillaugh Aug 11 '15

I get the value of consistent code, but something seems off. Why was code repeated on both the server and the client? Why were sections the user wasn't going to see rendered in the first place? As written, this sounds like shitty legacy code.

2

u/fooey Aug 11 '15

Fewer round trips, fewer and bigger cache entries

Probably though, it's because building big SPA's without frontloading everything in one big JS file is challenging.

If every page request has to get a new template and script package, you're defeating a lot of the point of using a SPA framework.