Re: [ServiceWorker] Proposal: Optimized No-Fetch Service Workers (#718)

Consensus at the Service Worker informal working session F2F was to not observe listeners, and instead add a method like disableFetch() to be called in the install event handler.

Reasoning:
- observing listeners would break the invariant that addEventListener has no side effects, potentially making SW spec's event model diverge from DOM spec's.
- having an explicit listener list is an alternative; however fetch event is the only one you need it for as the others are already opt-in.
- an explicit listener enableFetch() would break current sites
- therefore, disableFetch() was chosen

---
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/issues/718#issuecomment-123530545

Received on Wednesday, 22 July 2015 02:00:31 UTC