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

as=html => as=document (closes #79) #80

Merged
merged 1 commit into from
Apr 30, 2018
Merged
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
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