htmx 4.0 is under construction — migration guide

htmx.config.extensions

Comma-separated list of extensions to load

The htmx.config.extensions option accepts a comma-separated list of htmx extensions to automatically load.

Default: ""

Example

htmx.config.extensions = "preload,morph";
<meta name="htmx-config" content='{"extensions":"preload,morph"}'>

Extensions must be available in the page for this to work.