I'm a big fan of returning html instead of json when possible and I've been htmx curious for a bit.
With all the examples people keep using, I assumed it would be way smaller. 16kb minified is a lot.
Looking at the docs just now the core api seems reasonable, but it a lot larger than I'd assumed.
our minimalist version of htmx is fixi.js:
https://github.com/bigskysoftware/fixi
1181kb brotli'd (no minification)
Look into DataStar and Alpine Ajax then, they're much smaller and more targeted.
Read DATAOS.software for an in depth analysis of bundle sizes and impact on performance.
It's much smaller than the final bundle size that most sites will end up loading.
> 16kb minified is a lot
I'd bet that almost any site which isn't intentionally bare bones will have a lot more than 16KB of JS.