You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
2023/05/18/debounce-and-throttle/
背景防抖和节流是前端开发中常用的两种技术,用于解决事件处理和资源请求等方面的性能问题。在前端开发中,由于事件和资源的处理需要时间,因此防抖和节流可以有效地减少不必要的并发和处理时间,提高页面性能和响应速度。举个例子,滚动事件的触发频率是很高的,假如你想在滚动时执行一个函数,防抖和节流可以控制函数触发的频率,可以极大的提高页面性能和响应速度。 什么是防抖(debounce) ?防抖是一种事件处理技术
https://blog.octkun.top/2023/05/18/debounce-and-throttle/
Beta Was this translation helpful? Give feedback.
All reactions