I'm happy to announce the 1.1.0 release of htmx.
This is a surprisingly big release, but the star of the show isn't htmx itself, but rather the new preload extension which allows you to preload requests into the cache, cutting down on latency. (This extension is used in the htmx website!)
There are also new examples, including keyboard shortcuts and drag and drop list reordering with Sortable.js
ignore:
modifier for extensionshtmx.ajax()
javascript function, to issue an htmx-style ajax
request from javascriptHX-Event-Target
, HX-Active-Element
,
HX-Active-Element-Name
, HX-Active-Element-Value
hx-preserve
attribute, which allows
you to preserve elements across requests (for example, to keep a video element playing properly)from:
clause on hx-trigger
to
allow an element to respond to events on other elements.htmx:beforeProcessNode
event, renamed the (previously undocumented) htmx:processedNode
to htmx:afterProcessNode
closest
syntax support for the hx-indicator
attributeon load
support for the newest version of hyperscripthtmx.config.allowEval
configuration value, for CSP compatibilityEnjoy!