Hey Chris, Happy to discuss in DMs if you're available. Complex situation, large codebase, but team is committed to V1 support.
-
-
Replying to @slightlylate
Thanks, Alex! I've heard back from someone on the Polymer team who shared more details: IIUC, Polymer 2.x and 3.x should be compatible with Firefox's native implementation of Shadow DOM V1 (coming in Firefox 63, fingers crossed), though YouTube is still using Polymer 1.x and V0.
1 reply 0 retweets 8 likes -
Replying to @cpeterso
That's correct. Note that YT *is* using polyfills, but not Shadow DOM V0; instead it's using Polymer's Shady DOM everywhere at the moment: https://www.polymer-project.org/blog/shadydom
2 replies 2 retweets 18 likes -
So even on Chrome right?
1 reply 0 retweets 0 likes -
Correct. You can see this in DevTools; no Shadow DOM anywhere in sight:pic.twitter.com/znZwyMOpNl
1 reply 1 retweet 10 likes -
Replying to @slightlylate @kennethrohde and
That means the slowness is likely unrelated to the V0. The custom element polyfill is super fast. We’ve never managed to measure it being slower than native.
2 replies 1 retweet 12 likes -
Replying to @cramforce @slightlylate and
AFAIK, the main perf issue is that it is UA-sniffing for Chrome and using HTML imports (injecting the polyfill for non-Chrome browsers). It's the main blocker for removing imports support: https://bugs.chromium.org/p/chromium/issues/detail?id=766694#c14 …
1 reply 1 retweet 6 likes -
Replying to @patmeenan @slightlylate and
Yeah, polyfilling HTML imports (RIP) sounds like a likely reason.
1 reply 0 retweets 4 likes -
Replying to @cramforce @patmeenan and
I keep waiting for Mozilla to lead design of an alternative after killing them in 2014:https://hacks.mozilla.org/2014/12/mozilla-and-web-components/ …
2 replies 0 retweets 5 likes -
Replying to @slightlylate @patmeenan and
I vividly remember our discussion as to whether AMP should use HTML imports as the one time Alex was wrong and Malte was right
1 reply 0 retweets 10 likes
You were totally, absolutely right.
-
-
Replying to @slightlylate @cramforce and
FWIW, YT ships with exactly two (2) HTML imports because they bundle, so it's pretty inconceivable that HTML imports is a major contributor.pic.twitter.com/2tDld2rviU
2 replies 2 retweets 9 likes -
Replying to @kevinpschaaf @slightlylate and
This is getting more and more interesting!
1 reply 0 retweets 2 likes - 8 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.