Skip to content

Commit

Permalink
Add Render Blocking Status to PerformanceResourceTiming (#327)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
abinpaul1 committed Aug 31, 2022
1 parent bc3ff6f commit 80d953c
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ <h3>
readonly attribute unsigned long long transferSize;
readonly attribute unsigned long long encodedBodySize;
readonly attribute unsigned long long decodedBodySize;
readonly attribute RenderBlockingStatusType renderBlockingStatus;
[Default] object toJSON();
};
</pre>
Expand Down Expand Up @@ -409,6 +410,11 @@ <h3>
info=] <a data-dfn-for="PerformanceResourceTiming"><dfn>resource
info</dfn></a>.
</p>
<p>
A <a>PerformanceResourceTiming</a> has an associated
{{RenderBlockingStatusType}} <a data-dfn-for=
"PerformanceResourceTiming"><dfn>render-blocking status</dfn></a>.
</p>
<p>
The <a>PerformanceResourceTiming</a> interface participates in the
<a data-cite=
Expand Down Expand Up @@ -698,12 +704,47 @@ <h3>
</p>
</li>
</ol>
<p data-dfn-for="PerformanceResourceTiming">
The <dfn>renderBlockingStatus</dfn> getter steps are to return
<a data-link-for="RenderBlockingStatusType">blocking</a>
if <a>this</a>'s <a data-for="PerformanceResourceTiming">timing
info</a>'s [=fetch timing info/render-blocking=] is true; otherwise
<a data-link-for="RenderBlockingStatusType">non-blocking</a>.
</p>
<p class='note'>
A user agent implementing <a>PerformanceResourceTiming</a> would need
to include <code>"resource"</code> in
{{PerformanceObserver/supportedEntryTypes}}. This allows developers
to detect support for Resource Timing.
</p>
<section id="sec-render-blocking-status-types">
<h4>
<dfn>RenderBlockingStatusType</dfn> enum
</h4>
<pre class='idl'>
enum RenderBlockingStatusType {
"blocking",
"non-blocking"
};
</pre>
<p>
The values are defined as follows:
</p>
<dl data-dfn-for='RenderBlockingStatusType'>
<dt>
<dfn>blocking</dfn>
</dt>
<dd>
The resource can potentially block rendering.
</dd>
<dt>
<dfn>non-blocking</dfn>
</dt>
<dd>
The resource will not block rendering.
</dd>
</dl>
</section>
</section>
<section id="sec-extensions-performance-interface" data-dfn-for=
"Performance">
Expand Down

0 comments on commit 80d953c

Please sign in to comment.