Skip to content

arturcarvalho/cr-javascript-throttle-debounce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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