pull down to refresh

htmlx is a javascript framework
It's an "un-framework", in that beautiful middle spot between HTML and convoluted shit like Next... the DX is completely different
reply
17 sats \ 4 replies \ @ek 8h
So? The point is that I didn't have to write a ton of Javascript that renders HTML myself, HTMX is only adding attributes to HTML, and it's not a "bloated, overengineered mess."
Working with HTMX is completely different from other JavaScript frameworks, so saying HTMX is a Javascript framework isn't appropriate imo.
reply
10 sats \ 1 reply \ @itsrealfake 4h
somebody should share this convincing the HTMX Twitter account... in sure it would be very appreciated
reply
0 sats \ 0 replies \ @ek 3h
I don't understand. Convincing the HTMX twitter account of what?
reply
50 sats \ 1 reply \ @rblb 7h
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.
reply
0 sats \ 0 replies \ @ek 2h
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

  1. How much "bloat" can there be in less than 2,000 lines?
reply
21 sats \ 0 replies \ @k00b OP 7h
Someone once told me, so proud of their cypherpunkness, they weren't using javascript on their website because they made it with htmx.
I've never looked closely at htmx, but I knew they weren't just making use of hidden html attributes or something.
reply