Is there something special about using Web Workers in extensions?
The official MDN page only links this obsolete “Using workers in extensions” article.
I know there is a limited test of API available for Workers, but what about WebExtension API, is some of it available?
I’ve never used workers before so if there are some gotchas I should know about, please let me know .
Right now my plan is to simply start a worker from background script, send it work, wait for the response and kill it afterwards.
I have a CPU intensive task that can run for 10+ seconds and when it’s running in background script, it actually blocks my extension UI (I think I’ve read this somewhere that different contexts of the same extension are actually sharing same event loop).