title: jQuery setTimeout or delay ajax spinner
body: <p>Is it posible to <code>setTimeout</code> on <code>beforeSend</code> so ajax spinner will spin 4 seconds ? Or I have to use differed function to do that?</p>
  
  <p>The reason I wanna do that is because some times for is processing so fast that user cant even see the effect with ajax spinner.</p>
  
  <pre><code>var v = $("#contact-form").validate({
   submitHandler: function(form) {
     $(form).ajaxSubmit({
     beforeSend: function() {
      $('.submit-btn button').addClass('loading');
     },
      url: 'send-mail.php',
      success: function() {
      $('.submit-btn button').addClass('message-sent');
      },
     complete: function() {
      $('.submit-btn button').removeClass('loading').text('Send');   }
     });     
     v.resetForm();
   }
  })
  </code></pre>