The htmax.js file bundles htmx with the most popular extensions in a single file:

The extensions are automatically available, you can just use their attributes directly (e.g. hx-sse:connect, hx-ws:connect).

<script src="/js/htmax.min.js"></script>

To enable history caching, opt in via the meta tag:

<meta name="htmx-config" content='{"historyCache": {"disable": false}}'>