Introduce web workers by fixing Pomodoro (it runs slow in the background)

Introduce web workers by fixing Pomodoro (it runs slow in the background)
0.0 0

#1

Pomodoro runs slow in the background (e.g. in another tab) because browsers suppress scripts running in the background. Obviously this is a big problem for a timer like Pomodoro. A web worker would fix this, giving the script its own thread. Should I create an issue for this on GitHub?


#2

It’s not a bad idea. FreeCodeCamp volunteers are already swamped, though, so unless you plan on doing the lessons yourself, I doubt it’ll be accepted. It would probably be more helpful if you could write up a wiki post on implementing timers with web workers, and then interested parties could find the info here on the forums. It would have to be very general, though, as I don’t think a how-to on completing a project would be a good thing to have in the wiki.