Skip to content

Commit d17eac0

Browse files
authored
Report <link> Resource Timing
Part of #6542.
1 parent 36ccb4e commit d17eac0

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

source

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14141,14 +14141,20 @@ interface <dfn interface>HTMLLinkElement</dfn> : <span>HTMLElement</span> {
1414114141
<li><p>Run the <span>linked resource fetch setup steps</span>, given <var>el</var> and
1414214142
<var>request</var>. If the result is false, then return.</p></li>
1414314143

14144+
<li><p>Let <var>initiatorType</var> be "<code data-x="">css</code>" if <var>el</var>'s
14145+
<code data-x="attr-link-rel">rel</code> attribute contains the keyword
14146+
<code data-x="rel-stylesheet">stylesheet</code>; "<code data-x="">link</code>"
14147+
otherwise.</p></li>
14148+
1414414149
<li>
14145-
<p>Run the following steps <span>in parallel</span>:</p>
14150+
<p><!--FETCH--><span data-x="concept-fetch">Fetch</span> <var>request</var> with <i
14151+
data-x="processResponseConsumeBody">processResponseConsumeBody</i> set to the following steps
14152+
given <span data-x="concept-response">response</span> <var>response</var>:</p>
1414614153

1414714154
<ol>
14148-
<!--FETCH--><li><p>Let <var>response</var> be the result of <span
14149-
data-x="concept-fetch">fetching</span> <var>request</var>.</p></li>
14150-
14151-
<li><p>Let <var>success</var> be true.</p></li>
14155+
<li><p><span>Finalize and report timing</span> with <var>response</var>,
14156+
<var>el</var>'s <span>node document</span>'s <span>relevant global object</span>, and
14157+
<var>initiatorType</var>.</p></li>
1415214158

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

14173-
<li><span>Queue an element task</span> on the <span>networking task source</span> given
14174-
<var>el</var> to <span>process the linked resource</span> given <var>el</var>,
14179+
<li><p><span>Process the linked resource</span> given <var>el</var>,
1417514180
<var>success</var>, and <var>response</var>.</li>
1417614181
</ol>
1417714182
</li>

0 commit comments

Comments
 (0)