Re: [slightlyoff/ServiceWorker] Eliminating SW startup latency for common case (#920)

Google Docs is experimenting with service workers and we noticed that in the 95th percentile there is a regression of ~400ms and most of it is related to starting the SW.

This solution will completely eliminate the problem for us.

We actually need a simpler solution, we would like the SW to make the preflight request and only if the SW decides to make the exact same request, it will be handed to the SW (the SW doesn't need to know whether it was a preflight request).

If the SW does not make the request, the request that was made to the server will be ignored.

 

-- 
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/920#issuecomment-241119245

Received on Friday, 19 August 2016 19:57:22 UTC