Hacker News new | ask | show | jobs
by mstef9 1593 days ago
You can achieve full support with JS disabled using HTMX as well. It takes a little more work but HTMX provides headers[0] which you can evaluate on the backend to determine if you should return a partial or not. If JS is disabled, the HTMX headers will be missing and you know it's not an HTMX request.

[0] https://htmx.org/reference/#request_headers

1 comments

Ah, that's a great idea, thanks!