texlive.js icon indicating copy to clipboard operation
texlive.js copied to clipboard

WebWorkers do not terminate

Open jvilk opened this issue 11 years ago • 4 comments
trafficstars

Thanks for doing this port; it's pretty fun to fool around with.

You don't seem to terminate your WebWorkers, though. They aren't automatically garbage collected; you need to either terminate each from the main thread, or the worker needs to call self.close() to halt execution.

https://developer.mozilla.org/en-US/docs/Web/Guide/Performance/Using_web_workers#Terminating_a_worker

jvilk avatar Apr 06 '14 22:04 jvilk

I also believe you launch a WebWorker on page load, which you never end up using.

jvilk avatar Apr 06 '14 22:04 jvilk

thanks, indeed, I must add that! The initial webworker is used for preloading the script. But you are right: it should be terminate'd, too!

manuels avatar Apr 07 '14 07:04 manuels

Was this ever fixed?

ghost avatar Sep 11 '15 15:09 ghost

not yet.

fzimmermann89 avatar Nov 04 '15 02:11 fzimmermann89