r/javascript • • May 02 '17
YouTube's new UI uses Polymer
https://youtube.googleblog.com/2017/05/a-sneak-peek-at-youtubes-new-look-and.html
212
Upvotes
r/javascript • • May 02 '17
View all comments
Show parent comment
6
u/ergo14 May 03 '17 edited May 03 '17
Like I said, this has nothing to do with that. Watch literally any component example like polymer shop demo if you don't believe my word (https://shop.polymer-project.org/ or https://news.polymer-project.org/list/top_stories). It doesn't have any of that crap in Firefox. It's something specific just to yt app. The polyfills are small, here we are seeing yt resources embedded incorrectly in source html. Normally the code you write is the same for all browsers, regardless of their capabilities. Webcomponents-lite.js handles the rest for you. And it's 20kb total, here we see additional 100kb HTML out of nowhere based on user agent.