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

> The problem with the current importScripts() approach is that multiple fetch events that register have no guaranty regarding ordering and the first one of them that calls respondWith wins.

This seems false? Like every event, the first-registered listener executes first. If you want to go first, just insert your importScripts at the top, and have your fetch handler call respondWith immediately.

---
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-229688232

Received on Thursday, 30 June 2016 15:28:03 UTC