I have an animated gif loader with 6 kilobytes. when I open it in the browser window, it rotates perfectly. But when it opens when ajax is called on my web page, it gets stuck. It appears on time and disappears on time, but does not rotate.
Any ideas?
Here is the jquery code:
$('#please-wait') .css("visibility", "visible")//.hide() .ajaxStart(function() { $(this).css("visibility", "visible"); }) .ajaxStop(function() { $(this).css("visibility", "hidden"); });
or
$('#please-wait') .show() .ajaxStart(function() { $(this).show(); }) .ajaxStop(function() { $(this).hide(); });
any ideas?
performance jquery javascript-events image animated-gif
Barka Sep 16 '11 at 6:22 2011-09-16 06:22
source share