← Back to context

Comment by xnx

10 hours ago

Why didn't HTML imports stick around? https://web.dev/articles/imports

The moronic Web Component cabal got their hands on it and trashed it by forcing it to rely on JavaScript, thus ensuring it would never get support.

  • I'm sorry, this a dumb comment that has no basis in reality.

    HTML Imports was part of the initial set of the web components specs, there's no "cabal" or whatever that got its hands on it, and it didn't rely on JavaScript, not in the way you're probably referring to.

    It was only opposed because it was separate from the JS module system, not because it relied on JS.

    It's replacement: The HTML Modules proposal has general support from all vendors, just no one has put together a complete proposal yet.

  • Found this, it should answer your complaints:

    > HTML Imports were redundant, since you need JavaScript to bring them alive anyways

    • Exactly. I think the problem wasn't that browsers (specifically Firefox and Safari) were opposed to the idea of html includes in general, but they didn't like the specific proposal, in large part because it still required javascript, and added a lot of complexity for little to no benefit.

      I think rejecting that proposal was the right thing to do. What disappoints me is that there hasn't been a more declaritive, simpler proposal that has gotten anywhere.

      2 replies →