logoalt Hacker News

hnal943today at 5:48 PM2 repliesview on HN

HTMX is the solution


Replies

zarzavattoday at 6:36 PM

So instead of using JS to sort the table directly, now you make a JS fetch() request to sort the table?!

It does make sense in one situation, if the table is a large server-side paginated one and the sorting is really an ORDER BY clause. But for a basic table that fits entirely on the client, it doesn't make sense at all. There are tiny JS libraries that will make <table>s sortable when you add a particular class name.

nozzlegeartoday at 7:00 PM

Trading one javascript for another?