Skip to content

Commit 80d953c

Browse files
authored
Add Render Blocking Status to PerformanceResourceTiming (#327)
* Add Render Blocking Status to PerformanceResourceTiming * Change render blocking status to enum * Change 'render blocking' to render-blocking * Update getter steps to use timing info * Fix up getter steps
1 parent bc3ff6f commit 80d953c

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

‎index.html

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@ <h3>
380380
readonly attribute unsigned long long transferSize;
381381
readonly attribute unsigned long long encodedBodySize;
382382
readonly attribute unsigned long long decodedBodySize;
383+
readonly attribute RenderBlockingStatusType renderBlockingStatus;
383384
[Default] object toJSON();
384385
};
385386
</pre>
@@ -409,6 +410,11 @@ <h3>
409410
info=] <a data-dfn-for="PerformanceResourceTiming"><dfn>resource
410411
info</dfn></a>.
411412
</p>
413+
<p>
414+
A <a>PerformanceResourceTiming</a> has an associated
415+
{{RenderBlockingStatusType}} <a data-dfn-for=
416+
"PerformanceResourceTiming"><dfn>render-blocking status</dfn></a>.
417+
</p>
412418
<p>
413419
The <a>PerformanceResourceTiming</a> interface participates in the
414420
<a data-cite=
@@ -698,12 +704,47 @@ <h3>
698704
</p>
699705
</li>
700706
</ol>
707+
<p data-dfn-for="PerformanceResourceTiming">
708+
The <dfn>renderBlockingStatus</dfn> getter steps are to return
709+
<a data-link-for="RenderBlockingStatusType">blocking</a>
710+
if <a>this</a>'s <a data-for="PerformanceResourceTiming">timing
711+
info</a>'s [=fetch timing info/render-blocking=] is true; otherwise
712+
<a data-link-for="RenderBlockingStatusType">non-blocking</a>.
713+
</p>
701714
<p class='note'>
702715
A user agent implementing <a>PerformanceResourceTiming</a> would need
703716
to include <code>"resource"</code> in
704717
{{PerformanceObserver/supportedEntryTypes}}. This allows developers
705718
to detect support for Resource Timing.
706719
</p>
720+
<section id="sec-render-blocking-status-types">
721+
<h4>
722+
<dfn>RenderBlockingStatusType</dfn> enum
723+
</h4>
724+
<pre class='idl'>
725+
enum RenderBlockingStatusType {
726+
"blocking",
727+
"non-blocking"
728+
};
729+
</pre>
730+
<p>
731+
The values are defined as follows:
732+
</p>
733+
<dl data-dfn-for='RenderBlockingStatusType'>
734+
<dt>
735+
<dfn>blocking</dfn>
736+
</dt>
737+
<dd>
738+
The resource can potentially block rendering.
739+
</dd>
740+
<dt>
741+
<dfn>non-blocking</dfn>
742+
</dt>
743+
<dd>
744+
The resource will not block rendering.
745+
</dd>
746+
</dl>
747+
</section>
707748
</section>
708749
<section id="sec-extensions-performance-interface" data-dfn-for=
709750
"Performance">

0 commit comments

Comments
 (0)