Bug 158720 - Add support for <link rel=preload>
Summary: Add support for <link rel=preload>
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Yoav Weiss
URL: https://w3c.github.io/preload/
Keywords:
Depends on: 158466 159872
Blocks:
  Show dependency treegraph
 
Reported: 2016-06-13 19:53 PDT by Michael[tm] Smith
Modified: 2017-05-25 08:54 PDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael[tm] Smith 2016-06-13 19:53:19 PDT
Preload provides a declarative fetch primitive that initiates an early, high-priority, and non-render-blocking fetch and separates fetching from resource execution.
Declaratively specifies which resources (e.g., fonts) the user agent must fetch early to improve page performance.

- spec: https://w3c.github.io/preload/
- use cases: https://w3c.github.io/preload/#use-cases

Browser-engine support:

- Blink: Shipped in Chrome 50 https://developers.google.com/web/updates/2016/03/link-rel-preload?hl=en
- Edge: “Priority: Medium — Development is likely for a future release” https://developer.microsoft.com/en-us/microsoft-edge/platform/status/preload
- Gecko: Open feature bug https://bugzilla.mozilla.org/show_bug.cgi?id=1222633
Comment 1 Yoav Weiss 2016-06-14 00:22:52 PDT
I'm currently implementing this feature (but failing to assign this issue to myself *shrug*).

Related bugs:
https://bugs.webkit.org/show_bug.cgi?id=156334 - initial preload support
https://bugs.webkit.org/show_bug.cgi?id=157988 - Preload single download tests.
https://bugs.webkit.org/show_bug.cgi?id=156773 - LayoutTest http/tests/preload/dynamic_remove_preload_href.html is flaky on Mac and iOS
Comment 2 Yoav Weiss 2016-11-24 23:57:36 PST
Also related: https://bugs.webkit.org/show_bug.cgi?id=158466
Comment 3 Domenic Denicola 2017-04-26 11:37:07 PDT
Please note the tests at http://w3c-test.org/html/dom/reflection-metadata.html for link.as.
Comment 4 Jake Archibald 2017-05-25 08:54:31 PDT
I imagine it's in-progress, but neither fetch() or XHR appear to use the preload cache in the latest technology preview.