top | item 30287683

(no title)

mstef9 | 4 years 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

discuss

order

stavros|4 years ago

Ah, that's a great idea, thanks!