https://github.com/hanford/request-callback
requestIdleCallback polyfill
https://github.com/hanford/request-callback
javascipt npmjs open-source requestanimationframe requestidlecallback
Last synced: about 1 month ago
JSON representation
requestIdleCallback polyfill
- Host: GitHub
- URL: https://github.com/hanford/request-callback
- Owner: hanford
- Created: 2017-09-19T00:53:26.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-20T05:07:58.000Z (over 7 years ago)
- Last Synced: 2025-02-23T13:39:29.696Z (about 2 months ago)
- Topics: javascipt, npmjs, open-source, requestanimationframe, requestidlecallback
- Language: JavaScript
- Size: 4.88 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# request-callback
> defer heavy operations to when the browser has resources
## Install
```
$ npm install --save request-callback
```## Usage
```js
const requestCallback = require('request-callback')// defer heavy operations
function HeavyFn () {
..
}requestCallback(heavyFn)
```## API
### requestCallback(callback)
Invokes function on nextTick
## License
MIT © [Jack Hanford](https://jackhanford.com)