LineWorker.js    swing shift yo!

spin up a new web thread without a separate file.
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
// lineWrker.js function workman() { setInterval(function() { postMessage({eat: "me"}); }, 500); } var wkd = workman.toString(); wkd = wkd.substring(wkd.indexOf("{")+1, wkd.lastIndexOf("}")); var blobbyJo = new Blob([wkd], { type: "application/javascript" }); var wrkr = new Worker(URL.createObjectURL(blobbyJo)); wrkr.onmessage = function(msgz) { console.log("msg", msgz); };
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus