Htmx Protocol Pitfalls

Use when a server sends HTML fragments to htmx 2.x (response headers HX-Redirect, HX-Location, HX-Trigger, HX-Refresh, HX-Retarget, HX-Reswap, the lost headers on 3xx redirects, polling with every Ns and the 286 status, load polling), when an htmx request needs UX around it (htmx-indicator, hx-disabled-elt against double submit, hx-preserve, attribute inheritance leaking hx-confirm or hx-target to children), or when htmx meets other code (htmx.onLoad and htmx.process for widgets, Vary and ETag for fragment versus full-page responses, history restore, CORS exposed headers, a pinned CDN script with an integrity hash). Which tool owns what, swap targets, escaping and Alpine state are htmx-alpine-conventions.

techmefr Updated

File contents

techmefr/mentis commit d93265961c

Frequently asked questions

npx get-skill add techmefr/htmx-protocol-pitfalls