title: Detect when HTML has finished loading AND rendering on the page
body: <p>Is it possible to detect when HTML has finished loading AND rendering on the page?  If so, how?</p>
  
  <p>The page consists of HTML, calls to ajax, receives data back from ajax calls, lots of javascript stuff and some images too.  I would like to detect when everything has finished.  What I can't do is stick a function call at the end, because I don't know when the end is.</p>
  
  <p>For example, the page has lots of ajax style elements which users can pick and choose from, i.e. user 1 might have a different number of elements than user 2 and even in a different order.</p>
  
  <p>So what I can't do is use the last function to simulate the end of HTML rendering, because I won't know which function will be the last function.</p>