title: how to know how much time/% is left for document.ready?
body: <p>i usually do</p>
  
  <pre><code>$('#load').show();
  $(document).ready(function(){
      $('#load').hide();
  });
  </code></pre>
  
  <p>where <code>&lt;div id="load"&gt;</code> has just a animated gif</p>
  
  <p>but i was thinking of improve a little bit and show a progressbar</p>
  
  <p>having</p>
  
  <pre><code>&lt;div id="load"&gt;&lt;div id="done"&gt;&lt;/div&gt;&lt;/div&gt;
  </code></pre>
  
  <p>so i could, in a timeout (i guess)</p>
  
  <pre><code>var percent_done = how_do_i_figure_out(); /*  here is where i need help */
  $('#done').width(percent_done);
  </code></pre>