1.0.1 • Published 9 years ago

onresize v1.0.1

Weekly downloads
14
License
MIT
Repository
github
Last release
9 years ago

onresize 🌹

An optimized window.resize function

var onresize = require('onresize');
// start process
var {dispose} = onresize.on(function() {
    console.log('Resource conscious resize callback!')
});

// once done
dispose();

Also:

  • comes with TypeScript definitions built in
  • returns an object that has a dispose function to unhook the handler

To learn more on why you would want to use this checkout this article.