Remix.run Logo
athrowaway3z 4 days ago

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.

naasking 4 days ago | parent | next [-]

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

recursivedoubts 4 days ago | parent | prev | next [-]

our minimalist version of htmx is fixi.js:

https://github.com/bigskysoftware/fixi

1181kb brotli'd (no minification)

yawaramin 4 days ago | parent [-]

I think you mean 1181b, not kb

recursivedoubts 4 days ago | parent [-]

whooops

moebrowne 3 days ago | parent | prev | next [-]

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

adamzwasserman 4 days ago | parent | prev | next [-]

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

yawaramin 4 days ago | parent | prev [-]

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