Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
var blob = new Blob([document.querySelector('#worker1').textContent], { type: "text/javascript" };
var worker = new Worker(window.URL.createObjectURL(blob)); // Do the rest of the work here.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment