setTimeout in Edge and IE 11 do not guarantee the delay value. In my testing, if the delay is greater than 200ms, then setTimeout is reliable but with a smaller delay, the callback function can fire early roughly 50% of the time.
I created util.guaranteeMinimumTimeout() which makes sure the desired amount of time has passed.
setTimeout in Edge and IE 11 do not guarantee the delay value. In my testing, if the delay is greater than 200ms, then setTimeout is reliable but with a smaller delay, the callback function can fire early roughly 50% of the time.
I created
util.guaranteeMinimumTimeout()
which makes sure the desired amount of time has passed.Fixes: #357