I have the following code:
<div id="conteudo"></div>
<script>
var qnt_result_pg = 20;
var busca = "";
var pagina = 1;
$(document).ready(function () {
listar_usuario(pagina, qnt_result_pg, busca);
});
function listar_usuario(pagina, qnt_result_pg, busca){
var dados = {
pagina: pagina,
busca: busca,
qnt_result_pg: qnt_result_pg
}
$.post('<?php echo $caminhoAbsoluto; ?>/listar-pagamentos-pendentes.php', dados , function(retorna){
$("#conteudo").html(retorna);
});
}
</script>
It returns me the list of users registered on my page, but in the bank has more than 7,000 entries and even have placed a pagination, it takes a few seconds to open. How can I make a loading appear while the content is not loaded?