var timer = setTimeout(function() { // тут показываем лоадер }, 2000); $.get(url, function(data) { clearTimeout(timer); ... });