How do I call a function once the browser windows has FINISHED resizing?
I\'m trying to do it like so, but am having problems. I\'m using the JQuery Resize
var lightbox_resize = false; $(window).resize(function() { console.log(true); if (lightbox_resize) clearTimeout(lightbox_resize); lightbox_resize = setTimeout(function() { console.log('resize'); }, 500); });