I'm aghast at the comments in that thread. They are truly asleep at the wheel.
No wonder the front end is such a disaster with those mindsets running the show.
Re:Web Components Are Okay
by lelanthran on Monday September 30, 2024 @12:21PM
(#41698940)
> I'm aghast at the comments in that thread. They are truly asleep at the wheel.
And the wheel that they're at is the one in a clown car. Which is driving off a cliff.
Just having a custom element `<my-include-html remote-src='...'>`[1] is enough to forgo 50% of the reason for using a front-end framework with a build-step.
[1] One that executes scripts, allows `<style>` tags, etc.
I mean <script type="module"></script> can do ECMAScript module imports.
That's a solved problem. You can create a custom element for that with some 5 lines of code. Or use one ready:
https://github.com/justinfagnani/html-include-element
And that’s exactly what some people don’t want!
Some people will never be happy
https://github.com/whatwg/html/issues/2791