@matt Honestly if that was the case then they should've at least optimized the YouTube iframe widget. 1.2MB for a video embed?
(Source is https://www.zachleat.com/web/youtube-embeds/)
@slightlyoff
`preload=metadata` sounds like a sufficient default. I guess not all browsers use it.
Maybe add a lazy option for `poster`?
@slightlyoff , because there is a lazy load for JS and most of things is done by JS.
Extending the HTML with Declarative Custome Elements should do the trick even with JS disabled.
Otherwise w3c HTML expansion would grow forever
@niutech, template and shadow is not an answer for mylti-vendor code, <custom-element> is :p
@niutech ,
Declarative Shadow DOM from https://web.dev/articles/declarative-shadow-dom
has nothing to do with Declarative syntax. It is still relying on JS to function. DCE would be the no-js answer.
@niutech , π htmlz, the base for #PHOOOS . Interesting concept. Still needs some polishing towards pure DCE.
Till this moment I thought only
<custom-element> covers no-js patterns of #DeclarativeCustomElement