This can be caused by including extensions in the wrong order. Make sure you're loading htmx first, then the preload extension.