jQuery.html( something ) detect when injection is complete
<p>In a nutshell I want a callback to fire after the html has been injected and the content of that html has rendered. Reason being I need to know the height of the new content right away. Something like this:</p>

<pre><code>  $('div').html(tonsofstuff);
  console.log( $('div').height() ); //works in Firefox, but returns 0 in Chrome
  setTimeout(function(){
        console.log( $('div').height() ); //works everywhere, but takes too long
  },3000);
</code></pre>

<p>The issue is occasionally in some browsers (and always in chrome) $('div').height() fires before the new content has a height.</p>

<p>My fantasy:</p>

<pre><code>  $('div').html(tonsofstuff, function(){
        console.log( $('div').height() );
  });

  or even

  $('div').html(tonsofstuff).load(function(){
        console.log( $('div').height() );
  });
</code></pre>
