tags:

views:

67

answers:

1

Hi!, I wonder if any of you guys knows how to show an ajax loading image on a jQuery $.ajax call, only if that call is taking more that a specific time. Thanks for any help! cheers

+1  A: 

I think Throbber can solve your issue: http://plugins.jquery.com/project/throbber

It's a jQuery plugin that handles Ajax loading animations and it has this option - you can set the delay.

Or you can set the delay manually using setTimeout() before displaying loading animation.

Igor Pavelek