Skip to content

Commit 74887d7

Browse files
Adding preload destination concept
1 parent 7bf83f8 commit 74887d7

File tree

1 file changed

+18
-14
lines changed

1 file changed

+18
-14
lines changed

source

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16390,19 +16390,23 @@ interface <dfn interface>HTMLLinkElement</dfn> : <span>HTMLElement</span> {
1639016390

1639116391
<hr>
1639216392

16393+
A <dfn data-x="concept-preload-destination">preload destination</dfn> is a <span
16394+
data-x="concept-potential-destination">potential destination</span>, excluding "<code
16395+
data-x="">json</code>" when used with <code data-x="rel-preload">preload</code> links, and is
16396+
either "<code data-x="">json</code>", "<code data-x="">style</code>", or a <span
16397+
data-x="concept-script-like-destination">script-like destination</span> when used with
16398+
<code data-x="rel-modulepreload">modulepreload</code> links.
16399+
1639316400
<p>The <dfn element-attr for="link"><code data-x="attr-link-as">as</code></dfn> attribute
16394-
specifies the <span data-x="concept-potential-destination">potential destination</span> for a
16401+
specifies the <span data-x="concept-preload-destination">preload destination</span> for a
1639516402
preload request for the resource given by the <code data-x="attr-link-href">href</code> attribute.
1639616403
It is an <span>enumerated attribute</span>. Each <span
16397-
data-x="concept-potential-destination">potential destination</span> is a keyword for this
16398-
attribute, mapping to a state of the same name. The attribute must be specified on
16399-
<code>link</code> elements that have a <code data-x="attr-link-rel">rel</code> attribute that
16400-
contains the <code data-x="rel-preload">preload</code> keyword. It may be specified on
16401-
<code>link</code> elements that have a <code data-x="attr-link-rel">rel</code> attribute that
16402-
contains the <code data-x="rel-modulepreload">modulepreload</code> keyword; in such cases it must
16403-
have a value which is either "<code data-x="">json</code>", "<code data-x="">style</code>", or a
16404-
<span data-x="concept-script-like-destination">script-like destination</span>. For other
16405-
<code>link</code> elements, it must not be specified.</p>
16404+
data-x="concept-preload-destination">preload destination</span> corresponding to the <code
16405+
data-x="attr-link-rel">rel</code> attribute is a keyword for this attribute, mapping to a state of
16406+
the same name. The attribute must be specified on <code>link</code> elements that have a <code
16407+
data-x="attr-link-rel">rel</code> attribute that contains the <code
16408+
data-x="rel-preload">preload</code> or <code data-x="rel-modulepreload">modulepreload</code>
16409+
keywords. For other <code>link</code> elements, it must not be specified.</p>
1640616410

1640716411
<p w-nodev>The processing model for how the <code data-x="attr-link-as">as</code> attribute is
1640816412
used is given in an individual link type's <span>fetch and process the linked resource</span>
@@ -27429,7 +27433,7 @@ document.body.appendChild(wbr);</code></pre>
2742927433
<td colspan="2"><em>not allowed</em></td>
2743027434
<td class="yes"> Yes </td>
2743127435
<td class="yes"> Yes </td>
27432-
<td>Specifies that the user agent must preemptively <span data-x="concept-fetch">fetch</span> and cache the target resource for current <span data-x="navigate">navigation</span> according to the <span data-x="concept-potential-destination">potential destination</span> given by the <code data-x="attr-link-as">as</code> attribute (and the <span data-x="concept-request-priority">priority</span> associated with the <span data-x="concept-potential-destination-translate">corresponding</span> <span data-x="concept-request-destination">destination</span>).</td>
27436+
<td>Specifies that the user agent must preemptively <span data-x="concept-fetch">fetch</span> and cache the target resource for current <span data-x="navigate">navigation</span> according to the <span data-x="concept-preload-destination">preload destination</span> given by the <code data-x="attr-link-as">as</code> attribute (and the <span data-x="concept-request-priority">priority</span> associated with the <span data-x="concept-potential-destination-translate">corresponding</span> <span data-x="concept-request-destination">destination</span>).</td>
2743327437
</tr>
2743427438

2743527439
<tr>
@@ -28759,7 +28763,7 @@ document.body.appendChild(wbr);</code></pre>
2875928763

2876028764
<p>The <code data-x="rel-preload">preload</code> keyword indicates that the user agent will
2876128765
preemptively <span data-x="concept-fetch">fetch</span> and cache the specified resource according
28762-
to the <span data-x="concept-potential-destination">potential destination</span> given by the
28766+
to the <span data-x="concept-preload-destination">preload destination</span> given by the
2876328767
<code data-x="attr-link-as">as</code> attribute, and the <span
2876428768
data-x="concept-request-priority">priority</span> given by the <code
2876528769
data-x="attr-link-fetchpriority">fetchpriority</code> attribute, as it is highly likely that the
@@ -152542,8 +152546,8 @@ interface <dfn interface>External</dfn> {
152542152546
<tr>
152543152547
<th> <code data-x="">as</code>
152544152548
<td> <code data-x="attr-link-as">link</code>
152545-
<td> <span data-x="concept-potential-destination">Potential destination</span> for a preload request (for <code data-x="attr-link-rel">rel</code>="<code data-x="rel-preload">preload</code>" and <code data-x="attr-link-rel">rel</code>="<code data-x="rel-modulepreload">modulepreload</code>")
152546-
<td> <span data-x="concept-potential-destination">Potential destination</span>, for <code data-x="attr-link-rel">rel</code>="<code data-x="rel-preload">preload</code>", excluding "<code data-x="">json</code>"; "<code data-x="">json</code>", "<code data-x="">style</code>", or a <span data-x="concept-script-like-destination">script-like destination</span> for <code data-x="attr-link-rel">rel</code>="<code data-x="rel-modulepreload">modulepreload</code>"
152549+
<td> <span data-x="concept-preload-destination">Preload destination</span> for a preload request (for <code data-x="attr-link-rel">rel</code>="<code data-x="rel-preload">preload</code>" and <code data-x="attr-link-rel">rel</code>="<code data-x="rel-modulepreload">modulepreload</code>")
152550+
<td> <span data-x="concept-preload-destination">Preload destination</span> for <code data-x="attr-link-rel">rel</code>="<code data-x="rel-preload">preload</code>" and <code data-x="attr-link-rel">rel</code>="<code data-x="rel-modulepreload">modulepreload</code>"
152547152551
<tr>
152548152552
<th> <code data-x="">async</code>
152549152553
<td> <code data-x="attr-script-async">script</code>

0 commit comments

Comments
 (0)