[whatwg] SharedWorkers and the name parameter
jimjjewett at gmail.com
Sat Aug 15 17:29:45 PDT 2009
> Currently, SharedWorkers accept both a "url" parameter and a "name"
> parameter - the purpose is to let pages run multiple SharedWorkers using the
> same script resource without having to load separate resources from the
> [ request that name be scoped to the URL, rather than the entire origin,
> because not all parts of example.com can easily co-ordinate.]
Would there be a problem with using URL fragments to distinguish the workers?
new SharedWorker("url.js", "name");
and if you want a duplicate, call it
The normal semantics of fragments should prevent the repeated server fetch.
More information about the whatwg