title: Detect when Gmail has finished loading using jQuery and GreaseMonkey
body: <p>I'm trying to add some jQuery stuff to Gmail using a GreaseMonkey script. Adding jQuery functionality works fine, but the problem is that I can't really detect when Gmail has finished loading.</p>
  
  <p>This is basically what happens:</p>
  
  <ol>
  <li>I refresh Gmail</li>
  <li>The loading window starts</li>
  <li>The GM script starts 3 times, during the loading window</li>
  <li>Something in the loading window changes</li>
  <li>The GM script starts one more time</li>
  <li>The page changes</li>
  <li>The GM script starts for the last time</li>
  <li>Gmail view loads and finishes</li>
  </ol>
  
  <p>At this point a bunch of JavaScript has been loaded into the DOM that probably calls on some functions that use AJAX to load the rest of the view.</p>
  
  <p>I'd like for jQuery to do stuff <em>after</em> step 8, when everything has finished loading.</p>
  
  <p>Does anyone know how to do/detect this?</p>