raf-queue
Batch jobs to fire in the next frame using requestAnimationFrame.
Installation
with component:
component install anthonyshort/raf-queue
with browserify and friends:
npm install raf-queue
Usage
var frame = ; // Add jobs to the job, returns an idvar job = frame; // Remove jobs from the queueframe; // Fires after the jobs from the next frame are doneframedefer{ console;};