You can display a message like: "Loading ..." while my ajax does the operation?
AJAX
$.ajax({
url: url,
type: 'GET',
dataType: 'json',
success: function(data) {
console.log("sucesso");
},
error: function() {
console.log("erro");
}
});
type, before entering success: function(data){}
show loader or msg