- From: DENG, XIAOFU <notifications@github.com>
- Date: Thu, 24 Nov 2022 22:09:02 -0800
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 25 November 2022 06:09:14 UTC
Our website uses service worker to proxy http requests. When service worker is enabled, the `connectStart` and `connectEnd` values returned by `window.performance` API are always the same as `workerStart`. If we disable service worker, these values become correct, and we can then measure the DNS cost, TCP connection cost. Image 1, service worker enabled: <img width="551" alt="image" src="https://user-images.githubusercontent.com/12378280/203910261-53fdf887-c106-4652-b1be-c5939cdad3e4.png"> Image 2, without service worker: <img width="510" alt="image" src="https://user-images.githubusercontent.com/12378280/203910924-16711b42-167f-47d5-9d61-b17d42a97261.png"> I find something useful in Chrome Dev Tool. How can I access this timing info in service worker? <img width="432" alt="image" src="https://user-images.githubusercontent.com/12378280/203912274-3cec1998-099c-419f-ae24-f41c908ac0a5.png"> -- Reply to this email directly or view it on GitHub: https://github.com/w3c/ServiceWorker/issues/1663 You are receiving this because you are subscribed to this thread. Message ID: <w3c/ServiceWorker/issues/1663@github.com>
Received on Friday, 25 November 2022 06:09:14 UTC