1 min readfrom InfoQ

htmx 4.0: a Fetch-Based Rewrite, Built-In Morphing Swaps, and Explicit Attribute Inheritance

htmx 4.0: a Fetch-Based Rewrite, Built-In Morphing Swaps, and Explicit Attribute Inheritance

htmx 4 has been released, featuring a transition from XMLHttpRequest to the fetch() API, enhancing streaming capabilities. Key updates include built-in morphing swaps for DOM state preservation and an hx-partial tag for cleaner updates. Attribute inheritance is now explicit, with event names standardized. The library maintains focus on minimal JavaScript while remaining popular among frameworks.

By Daniel Curtis

Want to read more?

Check out the full article on the original site

View original article

Tagged with

#htmx
#fetch API
#XMLHttpRequest
#morphing swaps
#streaming
#attribute inheritance
#DOM state
#hx-partial
#minimal JavaScript
#event names
#frameworks
#DOM
#API
#updates
#library
#transitions
#explicit
#standardized
#version 4
#Daniel Curtis