An optimized window.resize fun

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.

版权声明:

1、该文章(资料)来源于互联网公开信息,我方只是对该内容做点评,所分享的下载地址为原作者公开地址。
2、网站不提供资料下载,如需下载请到原作者页面进行下载。