I have one running webworker and I want it to be able to load external source. How can I do it
because it is run in another thread independent from DOM. Thanks.
I have one running webworker and I want it to be able to load
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The importScripts method allows you to load external scripts that you can use in the web worker. Note: Scripts that need the window object won’t work here, because the window object is only accessible on the UI Thread. More info can be found here