https://github.com/glebmachine/throttle-by-raf
Create throttle function by request Animation Frame
https://github.com/glebmachine/throttle-by-raf
Last synced: about 1 month ago
JSON representation
Create throttle function by request Animation Frame
- Host: GitHub
- URL: https://github.com/glebmachine/throttle-by-raf
- Owner: glebmachine
- Created: 2015-10-19T14:24:42.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-19T14:27:51.000Z (over 9 years ago)
- Last Synced: 2023-03-22T12:35:35.879Z (about 2 years ago)
- Language: JavaScript
- Size: 113 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# throttle-by-raf
Create throttle function by requestAnimationFrame```js
function handler() {
console.log('this should trigger once per RAF frame')
}$('html').mousemove(throttleByRAF(handler))
```