title: Window.resize() is slowing down as number of resize increases
body: <p>I am calling some code when my window is completely resized by the help of window.resize() event and with the help of  <a href="https://stackoverflow.com/questions/8840552/jquery-window-resize-not-working-when-decreasing-windows-height">this</a> link.
  it has worked, but problem is it will become slow as you perform re-size more than 3 times. So as you increase the number of re-size, the page becomes slower and slower.</p>
  
  <p>My code is like below,</p>
  
  <pre><code> $(window).bind('resize', function(e) {
       window.resizeEvt;
       $(window).resize(function() {
           clearTimeout(window.resizeEvt);
           window.resizeEvt = setTimeout(function() {
               //code to do after window is resized
           }, 250);
       });
   });
  </code></pre>
  
  <p>Can any one help me to identify why its slowing down?</p>