have to make the request only when there is change in the database? instead of checking every second

1

<script type="text/javascript">

  function atualizarTarefas() {


    $("#header").load("<?=site_url('home/notificar/')?>");
   }
    setInterval("atualizarTarefas()", 1000);

</script>
    
asked by anonymous 16.03.2017 / 03:17

0 answers