4 ms·
HTML Imports are not standard and have been removed from Chrome. <script type="module" src="my-component.js"> is indeed the single accepted standard.
by spankalee 7y ago
HTML Imports are not standard and have been removed from Chrome. <script type="module" src="my-component.js"> is indeed the single accepted standard.
- strogonoff 7y agoThe working draft was last updated in December 2019, unfortunate that browser support is so poor.
- spankalee 7y agoBrowser support isn't poor, it's just not a thing anymore. Chrome removing HTML Imports in _good_ so that we can move on to an agreed upon replacement that integrates with the JS module system like HTML Modules.
- deleted 7y ago[deleted]
- strogonoff 7y agoBack then I recall HTML modules being used as a synonym with HTML imports… It was contrasted with JS modules. Interesting. Anyway, the standard is there and apparently being worked on so I fail to see how it entirely isn’t a thing—hopefully another incarnation will land. All around it just feels like a solid way to bundle all the aspects of an element together.