title: Progress bar should display on screen until web page loads fully
body: <p>I am using bellow code to display progress bar.</p>
  
  <pre><code>jQuery('#container').showLoading(
  {
        'afterShow':
         function () 
         {
            setTimeout("jQuery('#container').hideLoading()", 1000);
         }
  });
  </code></pre>
  
  <p>Progress bar displays on screen till <code>1000</code> milliseconds and then disappear.
  But I want that progress bar display on screen till  <code>(time) = page load</code>. 
  means statically I am taking 1000 milliseconds but I want progress bar display that much time .. that a page take time to load. </p>
  
  <p>So how to get page load time and pass it here ?? </p>