Hacker News new | ask | show | jobs
by arcbyte 1049 days ago
The browsers really need to make it possible to use templates and slots without javascript at all. There's no reason I shouldn't be able to define and use a custom element using HTML alone.

Until then I don't know if template and slot will take off.

3 comments

This is what everyone in userland clamors for as a baseline. Decade plus old arguments about this. I have little hope this will happen
We had HTML imports and they got rid of it. No JS means No Ads.
It means less invasive tracking really, not no ads.

Ironically it was Firefox that killed it, not Google. Google was all in on HTML imports. It would have also given a non JS way to dynamically load HTML. Streaming would have been great with this.

HTML imports required JS to be used - otherwise all you had was a `link`ed DOM tree that you couldn't access. No one has really proposed a way to dynamically load anything without JS AFAIK.
Fully agreed.