Enqueue operations for later processing in a requestAnimationFrame() callback.
npm install --save raf-q
var rafq = require('raf-q');
Copy and paste either
build/dom-q.min.js into your project.
Create a queue with given executor function
op for processing. Each time the queue is drained the executor function passed to the constructor will be invoked sequentially, receiving each queued operation as parameter.
Enqueue callback function
cb to be called during the next processing batch, once all other operations in the queue have been applied.
Released under the ISC license.