I had almost this exact same issue. I used one of the many animated spin
cursor gifs on the net along with show, hide and setTimeOut.
I thought about using the fade out but it's too CPU intensive compared to
show and hide.

-----Original Message-----
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of seedy
Sent: Monday, July 30, 2007 8:39 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: "please wait"-box only if delayed response



You could use a  http://www.w3schools.com/js/js_timing.asp setTimeout  to
delay the box from showing.

I have had to deal with the same issue of my wait box 'flashing' for quick
page loads, but instead of using setTimeout, I fade the box out.  The fade
always takes some time, so even on the quickest page the loading box shows
up long enough to not be annoying, plus it has a nice fadeout effect

$('#wait').fadeOut();



Reply via email to