/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function doSomething() { alert("I'm done resizing for the moment"); }; var resizeTimer = null; $(window).bind('resize', function() { if (resizeTimer) clearTimeout(resizeTimer); resizeTimer = setTimeout(doSomething, 100); });
URL: http://groups.google.com/group/jquery-en/browse_thread/thread/4a00d513c63f5c00