Closed Bug 1886223 Opened 1 year ago Closed 1 year ago

<link rel=preload> should support `json` for `as` attribute

Categories

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

Firefox 124
enhancement

Tracking

()

RESOLVED INVALID

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/122.0.0.0 Safari/537.36

Steps to reproduce:

See new spec PR and WPTs:
https://github.com/whatwg/html/pull/10212
https://github.com/web-platform-tests/wpt/pull/45200

Added <link rel=preload as=json href=foo.json>

("json" is the destination for JSON modules, so this should only be supported if JSON modules are supported)

Actual results:

foo.json should be fetched

Expected results:

No fetch is initiated.

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: 1 year ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.