Html is rendered event
<p>I'm appending some code to my page using jQuery AJAX calls. This code is a mix of html and javascript. But I want javascript to be executed only when html part is ready. But what event is raised when appended html is rendered?</p>

<p>Here is an example:</p>

<pre><code>&lt;table id="sampleTable"&gt;
   ...
&lt;/table&gt;

&lt;script&gt;
  // this code should be executed only when sampleTable is rendered
  $('#sampleTable').hide();
&lt;/script&gt;
</code></pre>
