Frontend Performance Optimization
- 文章發表於
Frontend Performance Optimization
Input Control
Rate Limiting, Throttling, and Debouncing are all common methods for "controlling the execution frequency of functions". Although these three techniques are often confused, they have distinct differences in the logic of intercepting or delaying execution. However, they share one commonality: these methods are lossy, meaning that when a function is triggered frequently, some calls will be "eaten" and not actually executed.
If you enjoyed this article, please click the buttons below to share it with more people. Your support means a lot to me as a writer.