Skip to content

Commit

Permalink
Report <link> Resource Timing
Browse files Browse the repository at this point in the history
Part of #6542.
  • Loading branch information
noamr authored Feb 22, 2022
1 parent 36ccb4e commit d17eac0
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -14141,14 +14141,20 @@ interface <dfn interface>HTMLLinkElement</dfn> : <span>HTMLElement</span> {
<li><p>Run the <span>linked resource fetch setup steps</span>, given <var>el</var> and
<var>request</var>. If the result is false, then return.</p></li>

<li><p>Let <var>initiatorType</var> be "<code data-x="">css</code>" if <var>el</var>'s
<code data-x="attr-link-rel">rel</code> attribute contains the keyword
<code data-x="rel-stylesheet">stylesheet</code>; "<code data-x="">link</code>"
otherwise.</p></li>

<li>
<p>Run the following steps <span>in parallel</span>:</p>
<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>
<!--FETCH--><li><p>Let <var>response</var> be the result of <span
data-x="concept-fetch">fetching</span> <var>request</var>.</p></li>

<li><p>Let <var>success</var> be true.</p></li>
<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>

<li>
<p>If <var>response</var> is a <span>network error</span> or its <span
Expand All @@ -14170,8 +14176,7 @@ interface <dfn interface>HTMLLinkElement</dfn> : <span>HTMLElement</span> {
be fetched and processed, with the expectation that this will be done correctly.</p>
</li>

<li><span>Queue an element task</span> on the <span>networking task source</span> given
<var>el</var> to <span>process the linked resource</span> given <var>el</var>,
<li><p><span>Process the linked resource</span> given <var>el</var>,
<var>success</var>, and <var>response</var>.</li>
</ol>
</li>
Expand Down

0 comments on commit d17eac0

Please sign in to comment.