I have a table that is populated with a list of connected users. The list itself does not change very often, but one of the things on each line is the timer (hh: mm: ss), which is updated every second. To update the timers, I am doing something like this:
var curTime = new Date().getTime() / 1000; $('.timerCell').each(function(){ var $this = $(this); var initialTime = $this.data('sessionStartTimestamp');
The problem I am facing is this: every time one timer cell is updated, it causes a redraw. Is there any way to tell the browser to wait to redraw? or perhaps somehow combine these updates into one update. I also thought about re-rendering the whole body every time an update occurs, but I thought that it would probably be more intensive in the system than just updating the cells.
source share