logoalt Hacker News

tehbeard05/03/20250 repliesview on HN

No HTML imports was an idea of using the HTML document format to encapsulate the 3 distinct data types needed for custom elements:

- JS for functionality via the custom elements API - HTML for layout via <template> tags. - CSS for aesthetics via <style> tags.

Not for just quickly and simply inserting the contents of header.html at a specific location in the DOM.