New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add workerStart attribute to measure (Service)Worker startup time #11
Comments
Love it. |
This seems reasonable. Adding @aliams to thread. |
This is awesome 👍 |
Sounds great! What would that value be set to when SW is not installed? identical to fetchStart? Zero? Or should it simply not be there? |
+1 |
To be consistent with how other attributes are initialized (e.g. secureConnectionStart), initializing to zero when SW is not present seems like the best way to go. This way you also have a clear indicator of whether SW is used or not. |
This will be quite useful, thanks for working it out. |
Filed https://code.google.com/p/chromium/issues/detail?id=465640 to track in blink |
If the app is ServiceWorker-enabled then all fetches are routed to the SW, where they may be fulfilled from local cache, rewritten, forwarded to remote server, etc. However, the SW script may be terminated at any point and may need to be (re)started prior to servicing the request - e.g. navigation request spools up a worker, which is then killed, and a new worker is started up to service a subresource fetch.
The application needs to be able to distinguish and measure the worker startup time.
Attribute definition:
For processing section update (add new step before 3.5):
Does that look reasonable? Anything I'm forgetting?
</handwaving>
P.S. Once we iron out the language here, we'll need to make a similar update to Navigation Timing..
/cc @jakearchibald @slightlyoff @KenjiBaheux
The text was updated successfully, but these errors were encountered: