Skip to content

Improve hx-live updates, debounce, and warnings#3907

Open
scriptogre wants to merge 2 commits into
bigskysoftware:four-devfrom
scriptogre:4.0/improve-hx-live
Open

Improve hx-live updates, debounce, and warnings#3907
scriptogre wants to merge 2 commits into
bigskysoftware:four-devfrom
scriptogre:4.0/improve-hx-live

Conversation

@scriptogre

@scriptogre scriptogre commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

Description

Follow-up to #3891.

Make sure that in even more scenarios, we skip unnecessary work.

Binding result #3891 This PR
Text and HTML
String and boolean attributes
Boolean and string class bindings
Normalized attribute values
ARIA attributes
checked, selected, and value
Object class bindings
Style bindings

Input debounce

Rename the live.inputDebounceMs config from #3891 to live.inputDebounce, and enable both numbers and HCON intervals.

<meta name="htmx-config" content="live.inputDebounce:20ms"

Recompute warning

Made the automatic warning appear based on main-thread cost rather than expression count.

Previously, you'd get warnings for 50x (cheap) recompute passes that took e.g. 0.1ms in total (negligible).

Now, you get a warning when one single recompute pass exceeds 16ms (expensive), or recomputes consume over 100ms/s for 2 consecutive seconds.

@scriptogre
scriptogre force-pushed the 4.0/improve-hx-live branch from eeca7e3 to b43a94a Compare July 21, 2026 14:43
@scriptogre
scriptogre force-pushed the 4.0/improve-hx-live branch from b43a94a to 17c46ed Compare July 21, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant