Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I remember fetching HTML from the server with AJAX and updating innerHTML before it was called AJAX. Is HTMX repackaging that or am I missing some exciting breakthrough here?


It is like that yes but more abstract because it uses some special HTML tags to make the JS calls.

There is a big downside though: weak error handling. It just assumes that your call will get a response.


No, there're error events[1] which can be handled with a little bit of client-side scripting.

[1]: https://htmx.org/events/#htmx:timeout


It is doing the same. Just makes cleaner and easier.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: