rottle
v0.2.0
Published
Throttle functions using requestAnimationFrame.
Downloads
72
Readme
Rottle
Throttle function calls using requestAnimationFrame.
Installation
npm install rottle
Usage
var throttle = require('rottle');
var task = function () {
console.log('done');
};
var throttledTask = throttle(task);
throttledTask();
throttledTask();
// Will log 'done' only once.