Hacker News new | ask | show | jobs
by polydevil 1436 days ago
Do you really suggest https://htmx.org/? That thing has bold questions, like

> Why should only <a> and <form> be able to make HTTP requests?

And than you turn off your js in the browser and try to open a demo from the htmx. White screen of death. It doesnt even work without js. Why even bother to use it? HTML is not perfect, but it is well tested, can work without js, also works with screenreader and you can create accessible web apps. With htmx you can create something usable to some degree, but completely inaccessible, which may lead your company to be sued.

3 comments

HTMX relies solely on client-side behavior, but it definitely supports falling back on server-side behavior:

https://htmx.org/docs/#boosting

> Why even bother to use it? HTML is not perfect, but it is well tested, can work without js [...]

I agree completely. Still you can use HTMX for some cases where you would need client-side JS anyway, but without actually having to write .js code.

> which may lead your company to be sued

OP specifically said 'Given its home lab style stuff', I think HTMX would be a good fit for that.

htmx is a javascript library, I don't really see why you'd think it should work after turning off javascript in the browser.
To be fair though, unless you use only backend frameworks plus CSS and JS for simple client only things, this will be the case.

Any sort of reaching out to the server from JS will be disabled.