title: Jquery trigger on body resize
body: <p>I have a page that has content that is modified by javascript. I want to create some kind of event listener that triggers when the content's size changes. I do not want this:</p>
  
  <pre><code>$(window).resize(...);
  </code></pre>
  
  <p>This triggers when the window size changes - for example when the user re-sizes the browser window. I tried this:</p>
  
  <pre><code>$('body').resize(...);
  </code></pre>
  
  <p>However it does not trigger. How can I create an event that triggers when the content causes the page size to change? I am also open to plain javascript solutions.</p>