htmx 1.4.0 has been released!
htmx 1.4.0 Release
Iām happy to announce the 1.4.0 release of htmx.
New Features & Major Changes
- Added the
queueoption to the hx-trigger attribute, allowing you to specify how events should be queued when they are received with a request in flight - The
htmx.config.useTemplateFragmentsoption was added, allowing you to use HTML template tags for parsing content from the server. This allows you to use Out of Band content when returning things like table rows, but it is not IE11 compatible. - Introduced a new synthetic event, intersect that allows you to trigger when an item is scrolled into view
as specified by the
IntersectionObserverAPI - The
htmx.config.withCredentialsoption was added, to send credentials with ajax requests (default isfalse) hx-swapnow supports thenoneoption
Improvements & Bug fixes
- The
defaultSettleDelaywas dropped to 20ms from 100ms - Fixed timing issue that caused exceptions in the
reveallogic when scrolling at incredible speeds - https://github.com/bigskysoftware/htmx/issues/463 - Fixed bug causing SVG titles to be incorrectly used as page title - https://github.com/bigskysoftware/htmx/issues/459
- Boosted forms that issue a GET will now push the URL by default - https://github.com/bigskysoftware/htmx/issues/485
- Better dispatch of request events when an element is removed from the DOM
- Fixed a bug causing
hx-promptto fail - The
throttleoption onhx-triggerdoes not delay the initial request any longer - The
metakey is ignored on boosted links <script>tags are now evaluated in the global scope- Safari text selection bug - https://github.com/bigskysoftware/htmx/issues/438
Enjoy!