Update multiple divs on one page

0

I have a page where I need to update some divs with information coming from the bank. With this I'm doing it this way:

<div id='diva'>conteúdo a</div>
<div id='divb'>conteúdo b</div>
<div id='divc'>conteúdo c</div>

And so on. In jQuery:

setInterval(function() {
  $("#diva").load(location.href+" #diva");
  $("#divb").load(location.href+" #divb");
  $("#divc").load(location.href+" #divc");
}, 1000);

I just realized that by staying too many minutes on the same page, the page blinks and then adds the data, coming back soon. Would you have some way to minimize that impact?

    
asked by anonymous 08.05.2015 / 20:46

0 answers