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

1

u/oculus42 Aug 12 '15

From the article:

Baxter told InfoQ that code quality is of the utmost importance.

From the website:

<div class="slider-item" data-reactid=".1olue1hk2rk.2:$mainViewRTG.$=1$/browse:0.1:$2.1.0.0.0.2.0.$=1$title_70272727_2_1:$item_1"><div id="title-card-70272727" class="smallTitleCard lockup title_card undefined" tabindex="0" aria-label="Death in Paradise" role="link" data-reactid=".1olue1hk2rk.2:$mainViewRTG.$=1$/browse:0.1:$2.1.0.0.0.2.0.$=1$title_70272727_2_1:$item_1.$title_70272727_2_1"><div class="ptrack-content" data-ui-tracking-context="%7B%22location%22:%22homeScreen%22,%22rank%22:1,%22request_id%22:%22386ef08a-424d-4bf1-91d6-4b14962777b9-198704448%22,%22row%22:2,%22track_id%22:13927326,%22video_id%22:70272727%7D" data-reactid=".1olue1hk2rk.2:$mainViewRTG.$=1$/browse:0.1:$2.1.0.0.0.2.0.$=1$title_70272727_2_1:$item_1.$title_70272727_2_1.0"><div class="video-artwork" style="background-image:url(http://cdn1.nflximg.net/images/1777/8701777.jpg);" data-reactid=".1olue1hk2rk.2:$mainViewRTG.$=1$/browse:0.1:$2.1.0.0.0.2.0.$=1$title_70272727_2_1:$item_1.$title_70272727_2_1.0.0"></div></div><span data-reactid=".1olue1hk2rk.2:$mainViewRTG.$=1$/browse:0.1:$2.1.0.0.0.2.0.$=1$title_70272727_2_1:$item_1.$title_70272727_2_1.2"></span></div></div>

1

u/jodraws Aug 12 '15

My sweet summer child.
That's what you see after it's processed, not the original source.

1

u/oculus42 Aug 12 '15

I understand it's the processed output, but it is also a horror show of hyper-repeated information. The data-react-id attributes account for more than half of the page weight.

1

u/jodraws Aug 12 '15

A valid point.