diff --git a/source b/source index ec68c40fa23..e26ccf4ee4e 100644 --- a/source +++ b/source @@ -26048,15 +26048,58 @@ document.body.appendChild(wbr); link. This keyword is body-ok.

The prefetch keyword indicates that preemptively fetching and caching the specified resource is likely to be - beneficial, as it is highly likely that the user will require this resource for future - navigations. User agents must implement the processing model of the prefetch keyword described in Resource Hints. -

+ data-x="concept-fetch">fetching and caching the specified resource or same-site document is + likely to be beneficial, as it is highly likely that the user will require this resource for + future navigations.

There is no default type for resources given by the prefetch keyword.

+

The fetch and process the linked resource algorithm for prefetch links, given a link element + el, is as follows:

+ +
    +
  1. If el's href attribute's value is the + empty string, then return.

  2. + +
  3. Let options be the result of creating link options from el.

  4. + +
  5. Set options's destination to + the empty string.

  6. + +
  7. Let request be the result of creating a + link request given options.

  8. + +
  9. If request is null, then return.

  10. + +
  11. Set request's initiator to + "prefetch".

  12. + +
  13. +

    Let processPrefetchResponse be the following steps given a response response and null, failure, or a + byte sequence bytesOrNull:

    + +
      +
    1. If response is a network error, fire an event named error at el.

    2. + +
    3. Otherwise, fire an event named load at el.

    4. +
    +
  14. + +
  15. The user agent should fetch request, with + processResponseConsumeBody set to + processPrefetchResponse. User agents may delay the fetching of request to + prioritize other requests that are necessary for the current document.

  16. +
+ +

The process a link header steps for this type of linked resource are to do + nothing.

Link type "preload"