- Debounce: Delays function execution until activity stops for a specified time
- Throttle: Limits function execution to a fixed rate (once per X ms)
| Debounce | Throttle | |
|---|---|---|
| Trigger | After last event + delay | At regular intervals |
| Use | Search input, auto-save | Scroll, resize tracking |
| Risk | May feel unresponsive | May skip intermediate events |