3 ms·
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 t
by tehbeard 1y ago
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.