3

I'm trying to use web workers in a way that doesn't require an external file as the code for the worker, is this possible or does a solution already exist to pipe dynamic code into a web workers?

1 Answer 1

3

You can do this but I'm not sure how well supported it is, moreover it's no longer BlobBuilder but Blob. There will come in handy:

https://developer.mozilla.org/en-US/docs/DOM/Using_web_workers#Spawning_subworkers http://www.html5rocks.com/en/tutorials/workers/basics/#toc-enviornment-subworkers http://updates.html5rocks.com/2012/06/Don-t-Build-Blobs-Construct-Them

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks, marked this as correct, the second link was particularly helpful.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.