When a page is loaded using an ajax request, all correspondence is generated. How can a lossless performance of a message update with an interval of 3 seconds?

  • in words impossible - Excess Suslik
  • Well, then not in words) I would just understand by what principle - IvanZ
  • one
  • one
    It is very simple: when sending an ajax request, you don’t give all correspondence, but only fresh updates - andreymal
  • Well, the timer for 3 seconds, the timer ajax. - nick_n_a

1 answer 1

lossless performance use websocket

setInterval(function() { ваш ajax }, 3000);