Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Report render blocking status for <link> and <script> #7979

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 22 additions & 7 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -14289,15 +14289,19 @@ interface <dfn interface>HTMLLinkElement</dfn> : <span>HTMLElement</span> {
<code data-x="rel-stylesheet">stylesheet</code>; "<code data-x="">link</code>"
otherwise.</p></li>

<li><p>Let <var>renderBlockingStatus</var> be "<code data-x="">blocking</code>" if
<var>request</var>'s <span data-x="concept-request-render-blocking">render-blocking</span> is
true; "<code data-x="">non-blocking</code>" otherwise.</p></li>

<li>
<p><!--FETCH--><span data-x="concept-fetch">Fetch</span> <var>request</var> with <i
data-x="processResponseConsumeBody">processResponseConsumeBody</i> set to the following steps
given <span data-x="concept-response">response</span> <var>response</var>:</p>

<ol>
<li><p><span>Finalize and report timing</span> with <var>response</var>,
<var>el</var>'s <span>node document</span>'s <span>relevant global object</span>, and
<var>initiatorType</var>.</p></li>
<var>el</var>'s <span>node document</span>'s <span>relevant global object</span>,
<var>initiatorType</var>, and <var>renderBlockingStatus</var>.</p></li>

<li>
<p>If <var>response</var> is a <span>network error</span> or its <span
Expand Down Expand Up @@ -26540,11 +26544,14 @@ document.body.appendChild(wbr);</code></pre>
<li><p>Let <var>key</var> be the result of <span data-x="create a preload key">creating a
preload key</span> given <var>request</var>.</p></li>

<li><p>Let <var>renderBlockingStatus</var> be "<code data-x="">non-blocking</code>".</p></li>

<li><p>Let <var>finalize</var> be the following step given a <code>Document</code>
<var>document</var> and a <span data-x="concept-response">response</span> <var>response</var>:
<span>finalize and report timing</span> given <var>response</var>,
<var>document</var>'s <span>relevant global object</span>, <var>options</var>'s
<span data-x="link options initiator">initiator</span>, and <var>unsafeEndTime</var>.</p></li>
<span data-x="link options initiator">initiator</span>, <var>renderBlockingStatus</var> and
<var>unsafeEndTime</var>.</p></li>

<li>
<p><!--FETCH--><span data-x="concept-fetch">Fetch</span> <var>request</var>, with <i
Expand Down Expand Up @@ -93397,9 +93404,13 @@ document.querySelector("button").addEventListener("click", bound);
<span>CORS-cross-origin</span>. This only affects how error reporting happens.</p>
</li>

<li><p>Let <var>renderBlockingStatus</var> be "<code data-x="">blocking</code>" if
<var>request</var>'s <span data-x="concept-request-render-blocking">render-blocking</span> is
true; "<code data-x="">non-blocking</code>" otherwise.</p></li>

<li><p><span>Finalize and report timing</span> with <var>response</var>, <var>settings
object</var>'s <span data-x="concept-settings-object-global">global object</span>, and "<code
data-x="">script</code>".</p></li>
object</var>'s <span data-x="concept-settings-object-global">global object</span>, "<code
data-x="">script</code>", and <var>renderBlockingStatus</var>.</p></li>

<li><p>Set <var>response</var> to <var>response</var>'s <span>unsafe response</span>.</p></li>

Expand Down Expand Up @@ -94164,9 +94175,13 @@ document.querySelector("button").addEventListener("click", bound);
<p class="note"><var>response</var> is always <span>CORS-same-origin</span>.</p>
</li>

<li><p>Let <var>renderBlockingStatus</var> be "<code data-x="">blocking</code>" if
<var>request</var>'s <span data-x="concept-request-render-blocking">render-blocking</span> is
true; "<code data-x="">non-blocking</code>" otherwise.</p></li>

<li><p><span>Finalize and report timing</span> with <var>response</var>, <var>fetch client
settings object</var>'s <span data-x="concept-settings-object-global">global object</span>, and
"<code data-x="">other</code>".</p></li>
settings object</var>'s <span data-x="concept-settings-object-global">global object</span>,
"<code data-x="">other</code>", and <var>renderBlockingStatus</var>.</p></li>

<li>
<p>If either of the following conditions are met:</p>
Expand Down