title: does the jquery trigger('resize') function works only once?
body: <p>I have this 2 pieces of code</p>
  
  <pre><code>function fixFooter() {
      var wrapper = $('#disqus_wrapper').height();
      if ( wrapper &gt; 200 ) { 
          $(window).trigger('resize');
      }
  };
  
  var element = $('#disqus_wrapper');
  new ResizeSensor(element, function() {
      fixFooter();
  });
  </code></pre>
  
  <p>The expected effect is that the window will resize every time the div#disqus_wrapper changes height. (to fix comments and footer overlapping)</p>
  
  <p>Well the code works, but only once after the page loads. I need it to resize each time the div changes in height. I tried switching the trigger('resize') function with an alert and everything works perfectly. Any idea why the trigger('resize') only works once and how can I fix it? </p>
  
  <p>Update ;</p>
  
  <p>The html is just this because I am loading the Disqus comment system</p>
  
  <pre><code>&lt;div id="disqus_wrapper"&gt;&lt;div id="disqus_thread"&gt;&lt;/div&gt;&lt;/div&gt;
  </code></pre>
  
  <p>For detecting the div height change I am using this library
  <a href="https://github.com/marcj/css-element-queries" rel="nofollow">https://github.com/marcj/css-element-queries</a> (the ResizeSensor.js)</p>