Intro to JS Web Workers
zapier.com
Intro to JS Web Workers
1–10 of 11 posts
Re: Intro to JS Web Workers
#2Re: Intro to JS Web Workers
#3Inlining a worker with an ObjectURL is brilliant. It nicely solves the issue of worker script urls being resolved relative to the page, rather than relative to the URL of the calling script. I had previously solved that problem just by having the parent script read a global variable with the proper absolute path to the worker's location, but this is much nicer.
Re: Intro to JS Web Workers
#4Even without the context of minification, I like your use of Blobs to instantiate a Web Worker.
Re: Intro to JS Web Workers
#5Re: Intro to JS Web Workers
#6Re: Intro to JS Web Workers
#7Re: Intro to JS Web Workers
#8I happen to know this because I was starting to use web workers about 6 hours ago. And yes, html5rocks does include the blob trick.
Re: Intro to JS Web Workers
#9Just like WebSockets really, you can feel the obvious potential but I have yet to encounter a good example of how Web Workers will help the average web developer to solve his problems in a more efficient or elegant manner.
The fact that they can't manipulate the DOM in a simple way is probably one of the reasons why they haven't crossed the mainstream line. That or the still approximative support across browsers.
Or maybe it's just that they're too much of a game changer and we've yet to wrap our heads around their power. I don't know...
Re: Intro to JS Web Workers
#10Web Workers are a good example of those new technologies that the HTML5 Javascript APIs expose to programmers that we don't really have found a real-life use for as of now... Just like WebSockets really, you can feel the obvious potential but I have yet to encounter a good example of how Web Workers will help the average web developer to solve his problems in a more efficient or elegant manner. The fact that they can…