htmx/www/content/posts/2021-5-25-htmx-1.4.0-is-released.md
2023-03-18 11:29:38 -04:00

1.9 KiB

+++ title = "htmx 1.4.0 has been released!" date = 2021-05-25 [taxonomies] tag = ["posts", "announcements"] +++

htmx 1.4.0 Release

I'm happy to announce the 1.4.0 release of htmx.

New Features & Major Changes

  • Added the queue option 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.useTemplateFragments option 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 IntersectionObserver API
  • The htmx.config.withCredentials option was added, to send credentials with ajax requests (default is false)
  • hx-swap now supports the none option

Improvements & Bug fixes

Enjoy!