onresize 🌹
An optimized window.resize function
var onresize = ;// start processvar dispose = onresize; // once done;
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.