pull down to refresh
50 sats \ 1 reply \ @rblb 7h \ parent \ on: Just fucking use HTML devs
No, it is not adding attributes... all custom tags and attributes are valid in html, they just do nothing by default... HTMX is calling a ton of querySelectorAll to select its own custom tag and then run javascript on them.
This is very inefficient and bloated, you can just write html and use plain javascript querySelector for the elements you need, this is what htmx does, it just does it for a lot of stuff you don't need.
Please explain how the inefficiencies and bloat you see in HTMX actually matter. Do they significantly slow down the site or make HTMX too complicated to use?
But to entertain your argument: it's 1,604 lines of code in a single file 1 with zero dependencies. If there's something you don't need, you could just remove that code yourself. That's how simple it is. Try doing that with a common JS framework like React, Vue, or Angular.
Footnotes
-
How much "bloat" can there be in less than 2,000 lines? ↩
reply