Skip to content
This repository has been archived by the owner on Jun 30, 2023. It is now read-only.

Commit

Permalink
Merge pull request #80 from w3c/marcoscaceres-patch-1
Browse files Browse the repository at this point in the history
as=html => as=document (closes #79)
  • Loading branch information
yoavweiss authored Apr 30, 2018
2 parents 7efd7c4 + b053f4e commit 489fef6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ <h2>Prefetch</h2>
<p>The <code><dfn>prefetch</dfn></code> link relation type is used to identify a resource that might be required by the next navigation, and that the user agent SHOULD fetch, such that the user agent can deliver a faster response once the resource is requested in the future.</p>

<pre class="example html">
&lt;link rel="prefetch" href="//example.com/next-page.html" as="html" crossorigin="use-credentials"&gt;
&lt;link rel="prefetch" href="//example.com/next-page.html" as="document" crossorigin="use-credentials"&gt;
&lt;link rel="prefetch" href="/library.js" as="script"&gt;
</pre>

Expand Down Expand Up @@ -199,7 +199,7 @@ <h2>Fetching the resource hint link</h2>
<pre class="example js">
var hint = document.createElement("link");
hint.rel = "prefetch";
hint.as = "html";
hint.as = "document";
hint.href = "/article/part3.html";
document.head.appendChild(hint);
</pre>
Expand Down

0 comments on commit 489fef6

Please sign in to comment.