part-next-tick

Node/browser process.nextTick implementation.

Part Next Tick

Node/browser process.nextTick implementation.

In the browser, it will try requestAnimationFrame and fallback to setTimeout. In node.js, it just uses process.nextTick.

node.js:

$ npm install part-next-tick

browser:

$ component install part/next-tick
var nextTick = require('part-next-tick');
 
nextTick(function(){
  console.log('after');
});
 
console.log('before');

MIT