Possible duplicate: Same problems (unresolved)
I show the loading of the DOM before calling Ajax and after calling Ajax, I hide it. For some reason, the boot image only appears after the ajax call ends. As a result, the boot image does not even appear if I don’t delay(#).hide(0). The code is as follows:
$("#loading-popup").show();
$.ajax({
});
$("#loading-popup").hide(0);
I tested other Ajax calls on my website and this problem occurs. Has anyone figured this out? I am using Chrome 26.
EDIT: I forgot to indicate that I am using a synchronous ajax call. ( async: false)
source
share