- From: Nathan Schloss <notifications@github.com>
- Date: Fri, 16 Dec 2016 09:07:21 -0800
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 16 December 2016 17:08:12 UTC
> Did you measure this? This sounds extremely unlikely to be so slow as you suggest. Forty event loop turns should be super quick. We did a number of measurements on this and there is currently significant overhead, plus even in a perfect world this can get blocked a lot on script. If know that the SW isn't going to respond to a particular fetch event then having it get blocked at all on a SW is a waste. > Yeah, for the non-declarative solution we could expose the "use-service-workers" value that's in-progress. That sounds amazing imo! Thinking about this more there will be times where we know far enough in advance that we should skip the SW so declarative routing will work. But other times it would make more sense to do it within fetch options. Both have real value and the more I think about it the more I feel like doing both is the right call. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/ServiceWorker/issues/1026#issuecomment-267643180
Received on Friday, 16 December 2016 17:08:12 UTC