In this example lets prove that the
WORKER
based timeout is closer to a
TRUE TIMEOUT
than a
setTimeout
based one. In this the
TIMEOUT
used for both is
5 SECONDS
.
Browser setTimeout took:
Worker setTimeout took: