Is it possible to specify time after which I can show busy indicator?
My code for busy indicator is quite simple:
jQuery.ajaxSetup( {
beforeSend:function ()
{
jQuery( "#busy-indicator" ).show();
}, complete:function ()
{
jQuery( "#busy-indicator" ).hide();
}
} );
But often Ajax request is faster then appearing indicator, therefore I’d like to show it for request which take lets say at least 1 second, is it possible? Or Do you have idea how to do it?
This does the trick: