Don't let deadline clock depend on timing of js `setInterval`
Jquery’sSubmitted by Elmer van Chastelet on 16 April 2019 at 11:58
setIntervalmay lag behind after some time or (depending on the browser) when the browser tab was not active.
The issue is that we currently decrease the
remainingSecevery interval. What we should do instead is recalc the remaining seconds every interval.
Log in to post comments