There is such a script
function submitFilter(){ form= $("form[name=filterForm]"); form.find("[name=page]").val(0); data= form.serialize(); $(".cap").css({display:"block"}); $.ajax({ type: 'POST', url: form.attr("action"), data: data, success: function(answer) { $(".blockContent").empty(); $(".blockContent").append(answer); $(".cap").css({display:"none"}); } }); }
Between $ (". Cap"). Css ({display: "block"}); and $ (". cap"). css ({display: "none"}); it takes little time and I do not have time to see the loader. You can somehow set a timer or slow down for at least 1 second to see the loader.