46
debounce
also often paired with throttle
Wait until the action pauses, then run it. Search boxes, not every keystroke.
What is debounce?
Debounce delays a function until events stop for N milliseconds. Throttle runs at most once per interval. Debounce is “after they finish.” Throttle is “while they are going.”
Why does debounce matter when vibe coding?
Without the word, you get “don’t spin while I type” and a request per letter. With it, one sentence. Cancel the in-flight request when the next one starts.
How do you do debounce?
Search: debounce 300ms, abort the previous fetch. Scroll handlers: throttle. Do not debounce a submit button — that is a race dressed as UX.
How do you ask a model for debounce?
Debounce the search input by 300ms. Abort the in-flight request when a new one starts. Do not fetch on every keystroke.
What goes wrong with debounce?
Debouncing the write path. Saves and payments want idempotency, not a delay.