https://github.com/boycce/throttle-debounce
Throttle debounce
https://github.com/boycce/throttle-debounce
Last synced: about 1 year ago
JSON representation
Throttle debounce
- Host: GitHub
- URL: https://github.com/boycce/throttle-debounce
- Owner: boycce
- License: mit
- Created: 2015-11-19T07:55:46.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-11-19T08:19:34.000Z (over 10 years ago)
- Last Synced: 2025-03-20T16:48:47.360Z (about 1 year ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Throttle-Debounce
Throttle/debounce your functions.
This is the same as Ben Alman's [jquery-throttle-debounce](https://github.com/cowboy/jquery-throttle-debounce), but with a few alterations and no jQuery references.
Throttle/debounce allows you to rate-limit your functions in multiple useful ways. Passing a delay and callback to throttle returns a new function that will execute no more than once every delay milliseconds. Passing a delay and callback to debounce returns a new function that will execute only once, coalescing multiple sequential calls into a single execution at either the very beginning or end.
# License
MIT © Ricky Boyce