3 ms·
One thing I use HTMX for is to quickly hack interactivity into a more traditional site. One example is incremental filtering: I added an input field, and made
by fhd2 2y ago
One thing I use HTMX for is to quickly hack interactivity into a more traditional site.
One example is incremental filtering: I added an input field, and made it (a few ms after the last value change) load the same page the user is already on with a query parameter that filters the items in the response. Then I just replace the list of items with the contents from the response, ignoring the rest of the page.
It's a bit wasteful perhaps, but all this took just a few lines of HTML.