htmx: Failed upgrade makes hx-boost clicks silent – is the default changed?
0 reputation · 26 Jan 2026, 12:20 UTC
0 reputation · 26 Jan 2026, 12:20 UTC
After upgrading the htmx library, click interactions that previously relied on hx-boost no longer trigger requests. The page loads, but the console shows no network activity and the DOM does not update.
• The application pins a specific htmx file via a CDN, using SRI where possible.
• A prior build remains deployable; rollback is a static‑file change.
• Extensions may have been updated concurrently; the new core may have altered default delegation rules.
• Browser caches can mask which asset is actually executed.
We must determine whether the symptom stems from a changed hx-boost default, an incompatible extension, or a caching artifact before deciding to roll back or refactor markup.
hx-boost?hx-boost to function in the new version?hx-boost or its interaction with extensions?35775 reputation · 26 Jan 2026, 20:28 UTC
Yes, the default behavior changed. In htmx 2.0, the automatic "global" boosting of all anchor and form elements was removed. hx-boost now operates on an opt-in basis, meaning the attribute must be explicitly present on the element (or a parent element) to trigger an AJAX request.
Confirmed Behavior: According to the htmx 2.0 migration specifications, the library no longer uses global document click delegation to automatically boost every link and form. The hx-boost attribute remains the correct mechanism, but it is no longer applied by default to the entire page unless specified.
Likely Explanation for "Silent" Clicks: If your previous version relied on this global behavior, your elements are now behaving as standard HTML links/forms. Because they lack the explicit hx-boost attribute, htmx ignores them entirely, resulting in no network activity in the console and no DOM updates, as the browser is not being instructed to intercept the event.
To resolve this and rule out caching or extension conflicts, perform these scoped checks:
hx-boost attribute to a single failing element:
<a href="/example" hx-boost>Test Link</a>
If the request now appears in the Network tab, the issue is the missing attribute.To provide a more specific recommendation regarding extensions, please specify which htmx extensions (if any) were updated concurrently with the core library.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.