Open Bug 1773056 Opened 2 years ago Updated 6 months ago

Support modulepreload in link header

Categories

(Core :: DOM: Core & HTML, enhancement)

enhancement

Tracking

()

REOPENED

People

(Reporter: noam.j.rosenthal, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36

Steps to reproduce:

Load an HTML file with a Link header with rel=preload
(e.g. Link: <module.js>;rel=modulepreload )

See WPT: https://github.com/web-platform-tests/wpt/pull/34328
Spec PR: https://github.com/whatwg/html/pull/7862

Actual results:

The module is not preloaded, importing the module would generate the first fetch to retrieve the module.

Expected results:

The module should be preloaded, and importing it should consume the preloaded script

The Bugbug bot thinks this bug should belong to the 'Core::DOM: Core & HTML' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → DOM: Core & HTML
Product: Firefox → Core
Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Resolution: --- → DUPLICATE

This is about adding support for rel=modulepreload in the Link: HTTP header, not the <link rel="modulepreload"> HTML attribute. Therefore I reopen this bug.

Sebastian

Status: RESOLVED → REOPENED
Ever confirmed: true
Resolution: DUPLICATE → ---

It appears this has been implemented and shipped in Firefox 116 last year, as part of https://bugzilla.mozilla.org/show_bug.cgi?id=1798319

See also:

You need to log in before you can comment on or make changes to this bug.