Intent to implement and ship PerformanceResourceTiming.workerStart

Skip to first unread message

Ben Kelly

Oct 5, 2017, 12:43:34 PM10/5/17
The PerformanceResourceTiming API has had a `workerStart` value specified
for a couple years now. Its defined to represent the time when we trigger
a service worker FetchEvent. It will be zero if service workers are not

This will be available on all platforms.

I'm targeting it for release in FF58.

It is not behind a pref. The property will always be there. If SW are
disabled then the value will always be zero.

We have some work going on to try to display service worker timing
information in devtools:

Chrome has implemented workerStart for a while and there is a WPT test.

There are some spec/compat questions to clarify:

But I don't think those need to block shipping the property. We can adjust
the values as the spec is clarified. Also, one of the reasons I am
implementing this now is so we can enable the WPT test. Our
PerformanceResourceTiming code is completely broken for SW in e10s right
now and we missed it because the test is not passing. (This will be fixed
in FF58 as well.)

The WPT test is here and is being expanded slightly with our implementation:

Please let me know if there are questions or concerns. Thanks.

Reply all
Reply to author
0 new messages