Web workers support
See original GitHub issueType of Issue
[ ] Bug Report
[X] Feature Request
Description
I need to use web worker for image processing library, and I am wondering if it is possible to generate a web worker inside the library and make it work out of the box for consumers?
Currently, my workaround is to add an inline script as a blob url and create a worker with it.
However the downside of this workaround is that you won’t be able to use {type: 'module}
. and it is not possible to use 3rd party libraries such as rxjs.
A feature: please describe your use case and motivation
It would be very useful if we can generate web workers and integrate them in the library without requiring users to manually configure them.
Expected Behaviour
A feature: do you have a first draft or an idea how to implement?
Not sure if it is possible.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Web Workers | Can I use... Support tables for HTML5, CSS3, etc
"Can I use" provides up-to-date browser support tables for support of front-end web technologies on desktop and mobile web browsers.
Read more >Worker - Web APIs - MDN Web Docs
Chrome Edge
Worker Full support. Chrome4. Toggle history Full support. Edge...
Worker() constructor Full support. Chrome4. Toggle history Full support. Edge...
Support for ECMAScript modules Full...
Read more >The State Of Web Workers In 2021 - Smashing Magazine
A table taken from caniuse.com, showing that every browser supports Workers. Web Workers are fully supported in every browser since IE10.
Read more >Browser Compatibility Testing of Web Workers - LambdaTest
BROWSER SUPPORT FOR Web Workers · Google Chrome · Mozilla Firefox · Internet Explorer · Safari · Microsoft Edge · Opera.
Read more >Browser versions that support web workers? - Stack Overflow
Internet Explorer 10, Firefox, Chrome, Safari and Opera support Web workers. But it is a bit vague for me. It does not state...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Running code in web workers should be handled at an application level.
iMHO, a library should offer a set of features and than its up to the consumer if these features should be run in a web worker or the not.
Don’t think its possible.
new Worker()
requires a URL and that can only be done by the app.