logoalt Hacker News

athrowaway3zlast Thursday at 3:28 PM5 repliesview on HN

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.


Replies

moebrowneyesterday at 11:25 AM

> 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.

recursivedoubtslast Thursday at 5:09 PM

our minimalist version of htmx is fixi.js:

https://github.com/bigskysoftware/fixi

1181kb brotli'd (no minification)

show 1 reply
naaskinglast Thursday at 3:48 PM

Look into DataStar and Alpine Ajax then, they're much smaller and more targeted.

adamzwassermanlast Thursday at 8:27 PM

Read DATAOS.software for an in depth analysis of bundle sizes and impact on performance.

yawaraminlast Thursday at 6:49 PM

It's much smaller than the final bundle size that most sites will end up loading.