Show accepts a callback function as a parameter. See example below.
function buttonHandler() {
$(".spinner").show(function() {
// this will be executed after show has completed
});
}
3
solved jQuery show not executing when expected [closed]