I have a page that loads via jQuery load. Within this page there is an SQL query that takes an average of 8 seconds.
I would like to put some indication that the query is loading, it can be a progress bar, display percentage, a circle running, anything. I ran into Goolge, but I did not find anything that would help me. Does anyone know of any way to do this?
Script that loads the page:
$(document).ready(function(){
$('.clica').click(function(){
$('#new').load('opcoesConsultaSiga.php?cond='+$(this).val());
});
});
HTML:
<button class="clica" value="-1">Exibir Tudo</button>
<button class="clica" value="2">Ordenar por estoque </button>
<button class="clica" value="4">Ordenar por custo </button>
<div id="new"></div>