Skip to content

Latest commit

 

History

History
35 lines (20 loc) · 425 Bytes

File metadata and controls

35 lines (20 loc) · 425 Bytes

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(heavyFn)

API

requestCallback(callback)

Invokes function on nextTick

License

MIT © Jack Hanford