0.2.0 • Published 8 years ago
rottle v0.2.0
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.