title: Preload wait 3 seconds before open page
body: <p>I'm doing preload page. Here my code:</p>
  
  <pre><code>   &lt;style&gt;
      #page-preloader { ... }    
      #page-preloader .spinner { ...}
     &lt;/style&gt;
  
     &lt;script src="js/jquery.js"&gt;&lt;/script&gt;
     &lt;script&gt;
      $(window).on('load', function () {
          var $preloader = $('#page-preloader'),
              $spinner   = $preloader.find('.spinner');
          $spinner.fadeOut();
          $preloader.delay(350).fadeOut('slow');
      });
     &lt;/script&gt;    
  &lt;/head&gt;
    &lt;body&gt;
      &lt;div id="page-preloader"&gt;&lt;span class="spinner"&gt;&lt;/span&gt;&lt;/div&gt;
      ...
  </code></pre>
  
  <p>All good, but i want to make some condition, and don't know how do it.
  I need to preloader work minimum 4 second (even if page load for 1 sec) if session is empty.</p>