Javascript Web Workers: Chrome 5+ supports new SharedWorker()

In my excitement and haste upon discovering new SharedWorker() support in the Opera 10.60 Beta, I neglected to snoop around the window object of my two favorites, Chrome 5+ and FireFox 3.6+ … WHOOPS! If I had done so, I would’ve discovered, as I did just now, that Chrome 5+ ALSO supports new SharedWorker(). Of course, then I have to test Safari 5 - and yes, it too supports new SharedWorker().


I modified my previous example to try it out in Chrome and Safari (mainly, I removed the call to Firebug Lite). The Gists are available for download here.


The comments will guide you through the process


The inner iframe page:


The outer page:


The renderer (client side):


The worker:


That leaves two browsers to add support… I’m looking at you Firefox 4. IE9 almost isn’t worth mentioning, because while I’m optimistic that it will support new Worker() (because the first preview announcement said it would) - I doubt we’ll get support for new SharedWorker() in the same release. Prove me wrong.

This entry was posted by Rick Waldron (@rwaldron) on June 21, 2010 in Chrome, Chromium, HTML5, JavaScript, Safari, Web Workers and WebKit.

Comments

Author

This entry was posted by Rick Waldron (@rwaldron) on June 21, 2010 in Chrome, Chromium, HTML5, JavaScript, Safari, Web Workers and WebKit.

Recent posts from this author

Related on the Bocoup Blog

Advertisement

Twitter

Google+