Re: [slightlyoff/ServiceWorker] Enabling multiple Service Workers for a single scope (#921)

Just for the info, if one SW is registered at / scope and second on
/scripts/ scope. Then I fetch the /scripts/main.js file. Will browser spawn
both SW in the same process or in separate processes?

On Jun 30, 2016 11:31 AM, "Yoav Weiss" <notifications@github.com> wrote:

> Is this mainly for handling fetches? If so, it feels like a same-origin
> foreign fetch.
>
> I guess you can think of it that way, yeah.
>
> On the other hand, though, I don't know if spinning up N worker threads
> for every network request is a good idea either.
>
> Can't we run all of them on the same worker thread? At least the use cases
> I can think of don't need multiple workers running in parallel. One SW
> yields (by calling fetch() or respondWith()) and another takes over.
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <https://github.com/slightlyoff/ServiceWorker/issues/921#issuecomment-229596010>,
> or mute the thread
> <https://github.com/notifications/unsubscribe/ABIlkf8YYjKd2OaIhLKuF4shfKx_KYh3ks5qQ37ogaJpZM4JBS5x>
> .
>


---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/921#issuecomment-229597430

Received on Thursday, 30 June 2016 08:38:27 UTC