request-callback
v1.0.2
Published
Like requestIdleCallback, but for everywhere
Downloads
11
Maintainers
Readme
request-callback
defer heavy operations to when the browser has resources
Install
$ npm install --save request-callback
Usage
const requestCallback = require('request-callback')
// defer heavy operations
function HeavyFn () {
..
}
requestCallback(heaveFn)
API
requestCallback(callback)
Invokes function on nextTick
License
MIT © Jack Hanford