Throttled scroll and resize event via requestAnimationFrame.
Based on this article
Install with component(1):
$ component install pilotcreative/throttled
var throttled = require('throttled');
throttled.on('scroll', function(){
console.log('clean scroll');
});
throttled.on('resize', function(){
console.log('clean resize');
});
throttled.on('wheel', function(){
console.log('clean wheel');
});
MIT