7 ms·
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
by mstef9 5y 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 https://htmx.org/reference/#request_headers
- stavros 5y agoAh, that's a great idea, thanks!