Debounce

Also called debouncing or debounced search

A technique that waits for a short pause in typing or other repeated events, then runs the work once instead of on every keystroke.

What is Debounce?

Typing "running shoes" into a search box takes 13 keystrokes. Without a debounce, a live search sends 13 requests, most of them for half-typed words like "runn". A debounce starts a short timer on each keystroke and restarts it on the next one. The work runs only when the timer finishes, which means the person paused.

Use it for search as you type, autocomplete, autosave, server-side validation, and window resize handlers. Delays of 200–400ms feel responsive for search; autosave can wait a second or more.

Debounce is often mixed up with throttle. Throttle runs the work at most once per interval while events keep coming, which suits scroll and drag handlers that need steady updates; debounce waits for the events to stop. Also cancel or ignore older requests, so a slow early response can’t replace a newer one.

All terms

Inline validation

Form checking that happens right next to each field as you fill it in, showing an error or a checkmark before you press Submit.

Combobox

A text field with a dropdown list that filters as you type, so people can pick one option from a long list quickly.

Command palette

A search box that opens with a shortcut like ⌘K and lets you find and run any command or page by typing a few letters.

Loading state

The view a screen shows while its data is on the way, designed together with the outcomes that follow: loaded, empty, or error.