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

Cool! Just to make sure, initial execution of the script refers to the very first time the SW runs (before it's installed) or every time the SW is run?

The current spec seems to observe event types every time in Run Service Worker, which wouldn't allow for this optimization. We want to persist a bit on the installed script indicating whether there's a fetch event handler. So next time you go to the website, we can decide whether the SW needs to run.

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

Received on Thursday, 28 January 2016 04:08:09 UTC