title: window.resize in jQuery firing multiple times
body: <p>I have the following JavaScript/jQuery code in an HTML file:</p>
  <pre><code>&lt;html&gt;
    &lt;head&gt;
      &lt;script src=&quot;http://code.jquery.com/jquery-1.6.2.min.js&quot; 
       type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
      &lt;script language=&quot;javascript&quot;&gt;
      $(window).resize(function(){alert('hi');});&lt;/script&gt;
    &lt;/head&gt;
    &lt;body&gt;
      resize me
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  <p>It appears relatively straightforward, however when I resize the browser window, I get two successive alert windows on Chrome and IE9 and I seemingly crash Firefox5.</p>
  <p>What am I missing? Is it one fire per dimension (x/y)?</p>