preload

edit

WPT coverage of the tests of preload at the revision 5602b0f210e3. The tests link to their results in the browsers on wpt.fyi. The tentative tests (experimental features) and the reftests are listed separately from the stable tests.

GroupPassingTestsDisabledPass rate
Stable6369091%
Tentative0100%
Reftests110100%
All6471090%

Failure reasons

The tests that do not pass (failing or disabled), by kind of reason. A test with several reasons counts once per kind.

  • TEST BUG: 4
  • NOT IMPLEMENTED: 3

Stable tests

TestResultSubtestsKindDescription
avoid-delaying-onload-link-modulepreload-exec.htmlPass1 / 1
avoid-delaying-onload-link-modulepreload.htmlPass1 / 1
avoid-delaying-onload-link-preload-style.htmlPass1 / 1
avoid-delaying-onload-link-preload.htmlPass1 / 1
avoid-prefetching-on-text-plain.htmlPass1 / 1
cross-origin-link-header-on-subresource.sub.htmlFail0 / 1NOT IMPLEMENTEDthe Link headers of the responses of the subresources (a style sheet, an image) are not processed: the specification only processes the ones of the documents (Chromium and WebKit preload them)
delaying-onload-link-preload-after-discovery.htmlPass1 / 1
download-resources.htmlPass1 / 1
dynamic-adding-preload-imagesrcset.htmlPass1 / 1
dynamic-adding-preload-nonce.htmlPass2 / 2
dynamic-adding-preload.htmlPass1 / 1
link-blob-url-revoked.window.jsPass4 / 4
link-header-modulepreload.htmlPass1 / 1
link-header-on-subresource.htmlFail0 / 1NOT IMPLEMENTEDthe Link headers of the responses of the subresources (a style sheet, an image) are not processed: the specification only processes the ones of the documents (Chromium and WebKit preload them)
link-header-preload-delay-onload.htmlPass1 / 1
link-header-preload-imagesrcset.htmlPass1 / 1
link-header-preload-non-html.htmlPass5 / 5
link-header-preload-nonce.htmlPass2 / 2
link-header-preload.htmlPass1 / 1
link-preload-as-case-insensitive.htmlPass7 / 7
modulepreload-already-in-module-map.htmlPass5 / 5
modulepreload-as.htmlPass28 / 28
modulepreload-consumed-by-script.htmlPass1 / 1
modulepreload-fires-before-dependencies.htmlPass3 / 3
modulepreload-json.htmlPass1 / 1
modulepreload-multiple.htmlPass3 / 3
modulepreload-sri-importmap.htmlPass1 / 1
modulepreload-sri.htmlPass1 / 1
modulepreload-style.htmlPass1 / 1
modulepreload-text.htmlPass1 / 1
modulepreload.htmlPass55 / 55
onerror-event.htmlFail0 / 1TEST BUGexpects the as=video and as=audio preloads to fire an error event: they are not preload destinations, so nothing is fetched (fails in every browser)
onload-event.htmlFail0 / 1TEST BUGexpects the as=video and as=audio preloads to fire a load event: they are not preload destinations, so nothing is fetched (fails in every browser)
preconnect-onerror-event.htmlPass3 / 3
preconnect.htmlPass1 / 1
prefetch-accept.htmlPass1 / 1
prefetch-cache.htmlPass4 / 4
prefetch-document.htmlPass5 / 5
prefetch-events.htmlPass9 / 9
prefetch-headers.https.htmlPass3 / 3
prefetch-load-event.htmlPass1 / 1
prefetch-time-to-fetch.https.htmlPass2 / 2
prefetch-types.https.htmlPass25 / 25
preload-connect-to-doc.htmlPass5 / 5
preload-csp.sub.htmlPass1 / 1
preload-default-csp.sub.htmlPass1 / 1
preload-dynamic-csp.htmlPass1 / 1
preload-error.sub.htmlPass68 / 68
preload-font-crossorigin.htmlPass4 / 4
preload-imagesrcset-in-markup.htmlPass2 / 2
preload-imagesrcset-no-href.htmlPass3 / 3
preload-invalid-resources.htmlPass2 / 2
preload-link-cached-stylesheet-different-doc.htmlPass1 / 1
preload-nonce.sub.htmlPass2 / 2
preload-referrer-policy.htmlPass196 / 196
preload-resource-match.https.htmlFail56 / 58TEST BUGthe two font subtests that expect the preload to be discarded do not use the font (an empty paragraph), so the font face is not fetched and there is a single resource timing entry (also fails in Chromium and WebKit)
preload-strict-dynamic.sub.htmlPass3 / 3
preload-time-to-fetch.https.htmlPass10 / 10
preload-type-match.htmlPass45 / 45
preload-with-type.htmlPass1 / 1
preload-with-unsupported-type.htmlPass1 / 1
preload-xhr.htmlPass2 / 2
reflected-as-value.htmlPass13 / 13
single-download-late-used-preload.htmlPass1 / 1
single-download-preload.htmlPass1 / 1
subresource-integrity-font.htmlFail13 / 23TEST BUGthe hashes of the test are not the ones of /fonts/CanvasTest.ttf (its SHA-256 is mQ5AW27g...), so the preloads with a "correct" hash fail their integrity check (the same 10 subtests fail in Chromium)
subresource-integrity-partial-image.htmlPass1 / 1
subresource-integrity.htmlPass77 / 77
supported-as-values.htmlPass13 / 13

Tentative tests

TestResultSubtestsKindDescription
preload-referrer-policy-subresource-header.tentative.htmlFail0 / 196NOT IMPLEMENTEDthe Link headers of the responses of the subresources (a style sheet, an image) are not processed: the specification only processes the ones of the documents (Chromium and WebKit preload them)

Reftests

TestResultVariantsKindDescription
preload-in-data-doc.htmlPass1 / 1