www/content/extensions/_index.md
+++ title = "Extensions" +++
htmx supports extensions to augment the core hypermedia infrastructure it provides. The extension mechanism takes pressure off the core library to add new features, allowing it to focus on its main purpose of generalizing hypermedia controls.
If you are interested in creating an extension for htmx, please see Building htmx Extensions.
htmx extensions are split into two categories:
| Name | Description |
|---|---|
| head-support | Provides support for merging head tag information (styles, etc.) in htmx requests |
| htmx-1-compat | Rolls back most of the behavioral changes of htmx 2 to the htmx 1 defaults. |
| idiomorph | Provides a morph swap strategy based on the idiomorph morphing library, which was created by the htmx team. |
| preload | This extension allows you to load HTML fragments into your browser's cache before they are requested by the user, so that additional pages appear to users to load nearly instantaneously. |
| response-targets | This extension allows you to specify different target elements to be swapped when different HTTP response codes are received. |
| sse | Provides support for Server Sent Events directly from HTML. |
| ws | Provides bi-directional communication with Web Sockets servers directly from HTML |