If I have this
window.onresize = function() { alert(\'resized!!\'); };
My function gets fired multiple times throughout the res
simple pure javascript solution, just change the 1000 int value to be lower for more responsiveness
var resizing = false; window.onresize = function() { if(resizing) return; console.log("resize"); resizing = true; setTimeout(function() {resizing = false;}, 1000); };