WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 92b126f

Browse files
committed
Add SW static routing API timing information to resource timing
1 parent 3d8f933 commit 92b126f

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

index.html

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,12 @@ <h3>
370370
readonly attribute DOMHighResTimeStamp firstInterimResponseStart;
371371
readonly attribute DOMHighResTimeStamp responseStart;
372372
readonly attribute DOMHighResTimeStamp responseEnd;
373+
readonly attribute DOMHighResTimeStamp workerRouterEvaluationStart;
374+
readonly attribute DOMHighResTimeStamp workerCacheLookupStart;
375+
// Holds a value from RouterSourceEnum or empty string
376+
readonly attribute DOMString workerMatchedRouterSource;
377+
// Holds a value from RouterSourceEnum (excluding "race-network-and-fetch-handler") or empty string
378+
readonly attribute DOMString workerFinalRouterSource;
373379
readonly attribute unsigned long long transferSize;
374380
readonly attribute unsigned long long encodedBodySize;
375381
readonly attribute unsigned long long decodedBodySize;
@@ -420,6 +426,11 @@ <h3>
420426
{{RenderBlockingStatusType}} <a data-dfn-for=
421427
"PerformanceResourceTiming"><dfn>render-blocking status</dfn></a>.
422428
</p>
429+
<p>
430+
A <a>PerformanceResourceTiming</a> has an associated
431+
[=service worker timing info=] <a data-dfn-for=
432+
"ServiceWorkerTiming"><dfn>service worker timing</dfn></a>.
433+
</p>
423434
<p data-dfn-for="PerformanceResourceTiming">
424435
When <dfn>toJSON</dfn> is called, run the [=default toJSON steps=]
425436
for {{PerformanceResourceTiming}}.
@@ -722,6 +733,26 @@ <h3>
722733
info</a>'s [=fetch timing info/render-blocking=] is true; otherwise
723734
<a data-link-for="RenderBlockingStatusType">non-blocking</a>.
724735
</p>
736+
<p data-dfn-for="PerformanceResourceTiming">
737+
The <dfn>workerRouterEvaluationStart</dfn> getter steps are to return
738+
<a>this</a>'s <a data-for="PerformanceResourceTiming">service worker
739+
timing info</a>'s [=service worker timing info/worker router evaluation start=].
740+
</p>
741+
<p data-dfn-for="PerformanceResourceTiming">
742+
The <dfn>workerCacheLookupStart</dfn> getter steps are to return
743+
<a>this</a>'s <a data-for="PerformanceResourceTiming">service worker
744+
timing info</a>'s [=service worker timing info/worker cache lookup start=].
745+
</p>
746+
<p data-dfn-for="PerformanceResourceTiming">
747+
The <dfn>workerMatchedRouterSource</dfn> getter steps are to return
748+
<a>this</a>'s <a data-for="PerformanceResourceTiming">service worker
749+
timing info</a>'s [=service worker timing info/worker matched router source=].
750+
</p>
751+
<p data-dfn-for="PerformanceResourceTiming">
752+
The <dfn>workerFinalRouterSource</dfn> getter steps are to return
753+
<a>this</a>'s <a data-for="PerformanceResourceTiming">service worker
754+
timing info</a>'s [=service worker timing info/worker final router source=].
755+
</p>
725756
<p class='note'>
726757
A user agent implementing <a>PerformanceResourceTiming</a> would need
727758
to include <code>"resource"</code> in

0 commit comments

Comments
 (0)