Hacker News new | ask | show | jobs
by hiimshort 838 days 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.
1 comments

In the end it was only Firefox who implemented HTML Imports, and Google has gone mad and pushed everything in to Javascript.
That is not what happened at all. Firefox never shipped HTML Imports.
Well 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

They went Golden Hammer on v8.