Possible duplicate: Same problem (unresolved)
I show loading DOM before the Ajax call and after the Ajax call, I hide it. For some reason, the loading image appears
This could be another way.
var $ani = $('#loading-popup').hide(); $(document) .ajaxStart(function () { $ani.show(); }) .ajaxStop(function () { $ani.hide(); });