So I currently use something like:
$(window).resize(function(){resizedw();});
But this gets called many times while resizing process goes o
var flag=true; var timeloop; $(window).resize(function(){ rtime=new Date(); if(flag){ flag=false; timeloop=setInterval(function(){ if(new Date()-rtime>100) myAction(); },100); } }) function myAction(){ clearInterval(timeloop); flag=true; //any other code... }