Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 955 Bytes

File metadata and controls

28 lines (19 loc) · 955 Bytes

Netlify Status

How to use it:

Test it online: https://javascript-throttle-debounce.netlify.com

OR

Download it to your PC and open baby.htm or text.htm on a browser.

Topics covered

  • Learn what is Throttle.
  • Learn what is Debounce.
  • Implement Throttle and debounce (10 lines of code each).
  • Use lodash (and talk about leading edge, trailing edge, cancel).

Leading edge: When the event starts invoking the function. Trailing edge: After the event stops invoking the function.

Credits