on-idle
Safely detect when the browser is idle. Does nothing when run in Node.
Usage
var onIdle = var html = var cancel = if somethingHappens
API
onIdle(callback, options)
Call a function when the browser has spare time. Calls it on the next frame if
window.requestIdleCallback
is not available. Does nothing in Node.