package
Resource concious window.resize
npm install onresizeGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
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:
dispose function to unhook the handlerTo learn more on why you would want to use this checkout this article.