4 ms·
The last example reminds me of the once-proposed html imports feature. It was being pushed by Google back when Polymer was a thing and would've given us actual
by hiimshort 3y ago
The last example reminds me of the once-proposed html imports feature. It was being pushed by Google back when Polymer was a thing and would've given us actual web components delivered as html documents with full support for html, css, and js just like we use normally. If I remember correctly there were a few issues with the approach that needed to be resolved and nobody stepped up to make it a reality. So instead we got the custom elements spec years later which only implemented a small percentage of what made html imports useful.
- troupo 3y agoIn the end it was only Firefox who implemented HTML Imports, and Google has gone mad and pushed everything in to Javascript.
- hinkley 3y agoThey went Golden Hammer on v8.
- spankalee 3y agoThat is not what happened at all. Firefox never shipped HTML Imports.
- troupo 3y agoWell I'll be! In my mind I had this clear picture of Firefox implementing it. It correct, it was only Chrome: https://caniuse.com/?search=html%20import https://caniuse.com/?search=html%20import