Support modulepreload in link header
Categories
(Core :: DOM: Core & HTML, enhancement)
Tracking
()
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
Comment 1•2 years ago
|
||
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.
Comment 3•2 years ago
|
||
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
Description
•