title: Why does the jQuery resize event fire twice?
body: <p>I just noticed that the jquery resize event fires twice any time the browser window is resized. I'm unable to find any documentation listing this as the default behavior. I have tested this in the latest versions of Chrome and Firefox, using jQuery 1.4 and 1.5. </p>
  
  <p>Does anyone else see this behavior? Is there a specific reason for it?</p>
  
  <p><strong>Update</strong>: This happens if I click the maximize button on the browser window once. I understand that if I'm manually dragging the window to a different size, the event will be fired multiple times, but that shouldn't be the case with the maximize button. </p>
  
  <p>The code used test this is below. The browser resized text is output twice:</p>
  
  <pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
          "http://www.w3.org/TR/html4/loose.dtd"&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;&lt;/title&gt;
  &lt;/head&gt;
  &lt;script src="//ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
      $(window).resize(function(){
          console.log('Browser Resized');
      });
  &lt;/script&gt;
  &lt;body&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>