Networking

hx-multipartStream HTML with multipart/mixed
hx-sseStream HTML with text/event-stream (SSE)
hx-wsStream HTML and send data over WebSockets

UX

hx-liveAdd reactive bindings to HTML
hx-optimisticShow optimistic UI with hx-optimistic
hx-browser-indicatorShow tab's spinner with hx-browser-indicator
hx-promptPrompt before requests with hx-prompt='Reason?'

Performance

hx-preloadPreload on hover with hx-preload='mouseover'
hx-ptagSkip unchanged polls with HX-PTag: "v42"
hx-history-cacheRestore back/forward pages from sessionStorage

Swaps

hx-headMerge tags with hx-head='merge'
hx-upsertUpdate or insert elements with hx-swap='upsert'
hx-targetsTarget many elements with hx-targets='.selector'
hx-downloadDownload files with hx-swap='download'

Compatibility

htmx-2-compatRestore htmx 2.x defaults and event names on htmx 4
hx-alpine-compatRun htmx alongside Alpine.js without conflicts

Security

hx-cspMake htmx work under strict Content Security Policy