What's the difference between Shared Worker and Worker in HTML5?

Tower picture Tower · Jul 21, 2011 · Viewed 18.3k times · Source

After reading this blog post: http://www.sitepoint.com/javascript-shared-web-workers-html5/

I don't get it. What's the difference between a Worker and a SharedWorker?

Answer

nwellcome picture nwellcome · Jul 21, 2011

Very basic distinction: a Worker can only be accessed from the script that created it, a SharedWorker can be accessed by any script that comes from the same domain.