Skip to content

Commit 093be0b

Browse files
authored
Add SW static routing API timing information to resource timing (#415)
* Add SW static routing API timing information to resource timing * Update service worker timing info to be collected from fetch timing info * Trigger CI * Add Service Worker to the xref
1 parent 9be78d3 commit 093be0b

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

index.html

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
github: "https://github.com/w3c/resource-timing/",
6767
caniuse: "resource-timing",
6868
xref: {
69-
specs: ["hr-time-3", "performance-timeline", "xhr"],
69+
specs: ["hr-time-3", "performance-timeline", "service-workers" ,"xhr"],
7070
profile: "web-platform",
7171
},
7272

@@ -382,6 +382,10 @@ <h3>
382382
readonly attribute DOMHighResTimeStamp firstInterimResponseStart;
383383
readonly attribute DOMHighResTimeStamp responseStart;
384384
readonly attribute DOMHighResTimeStamp responseEnd;
385+
readonly attribute DOMHighResTimeStamp workerRouterEvaluationStart;
386+
readonly attribute DOMHighResTimeStamp workerCacheLookupStart;
387+
readonly attribute DOMString workerMatchedRouterSource;
388+
readonly attribute DOMString workerFinalRouterSource;
385389
readonly attribute unsigned long long transferSize;
386390
readonly attribute unsigned long long encodedBodySize;
387391
readonly attribute unsigned long long decodedBodySize;
@@ -773,6 +777,30 @@ <h3>
773777
info</a>'s [=fetch timing info/render-blocking=] is true; otherwise
774778
<a data-link-for="RenderBlockingStatusType">non-blocking</a>.
775779
</p>
780+
<p data-dfn-for="PerformanceResourceTiming">
781+
The <dfn>workerRouterEvaluationStart</dfn> getter steps are to return
782+
<a>this</a>'s <a data-for="PerformanceResourceTiming">timing info</a>'s
783+
[=fetch timing info/service worker timing info=]'s
784+
[=service worker timing info/worker router evaluation start=].
785+
</p>
786+
<p data-dfn-for="PerformanceResourceTiming">
787+
The <dfn>workerCacheLookupStart</dfn> getter steps are to return
788+
<a>this</a>'s <a data-for="PerformanceResourceTiming">timing info</a>'s
789+
[=fetch timing info/service worker timing info=]'s
790+
[=service worker timing info/worker cache lookup start=].
791+
</p>
792+
<p data-dfn-for="PerformanceResourceTiming">
793+
The <dfn>workerMatchedRouterSource</dfn> getter steps are to return
794+
<a>this</a>'s <a data-for="PerformanceResourceTiming">timing info</a>'s
795+
[=fetch timing info/service worker timing info=]'s
796+
[=service worker timing info/worker matched router source=].
797+
</p>
798+
<p data-dfn-for="PerformanceResourceTiming">
799+
The <dfn>workerFinalRouterSource</dfn> getter steps are to return
800+
<a>this</a>'s <a data-for="PerformanceResourceTiming">timing info</a>'s
801+
[=fetch timing info/service worker timing info=]'s
802+
[=service worker timing info/worker final router source=].
803+
</p>
776804
<p class='note'>
777805
A user agent implementing <a>PerformanceResourceTiming</a> would need
778806
to include <code>"resource"</code> in

0 commit comments

Comments
 (0)