Performance
Debounce
Waiting for activity to stop before you act, so you don't fire on every keystroke.
Debouncing delays a function until things go quiet for a moment — for example, waiting 300ms after the user stops typing before sending a search request, instead of hammering your API on every letter. It's like letting someone finish their sentence before you respond, rather than interrupting each word. Without it, a search-as-you-type box built by AI can fire dozens of redundant requests and burn through rate limits or API budget, and a debounce is the standard fix.