Debounce and throttle are two easy techniques to implement that will drastically increase the performance of any site that has heavy API usage. In this video I show you how to implement both techniques, compare the pros/cons of each, and give real world examples of when to use each technique.
Materials/References:
GitHub Code: https://github.com/WebDevSimplified/debounce-throttle-js
Debounce Blog Article: https://blog.webdevsimplified.com/2022-03/debounce-vs-throttle
Find Me Here:
My Blog: https://blog.webdevsimplified.com
My Courses: https://courses.webdevsimplified.com
Patreon: https://www.patreon.com/WebDevSimplified
Twitter: https://twitter.com/DevSimplified
Discord: https://discord.gg/7StTjnR
GitHub: https://github.com/WebDevSimplified
CodePen: https://codepen.io/WebDevSimplified
⏱️ Timestamps:
00:00 - Introduction
00:27 - Default Behavior
02:35 - Debounce
06:56 - Throttle
#Debounce #WDS #Throttle