Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Deprecate JSON as preload destination in favor of modulepreload #11995

Copy link
Copy link
@KurtCattiSchmidt

Description

@KurtCattiSchmidt
Issue body actions

What is the issue with the HTML Standard?

In #11981 (review), @annevk raised a good point that JSON doesn't really make sense as a destination for preload if it also exists in modulepreload. script and style make sense in both, as there are use cases outside of modules, but as far as I understand, JSON is only natively supported as a JSON module import, so if it's being preloaded, it might as well go straight into the module map.

Chromium doesn't currently support <link type="preload" as="json"> (see https://wpt.fyi/results/preload/preload-type-match.html), but Firefox and Safari Preview do, so usage is probably low. I also don't believe there are any observable effects of preloading that could break a site by deprecating preload for JSON in favor of modulepreload - it doesn't look like <link> supports onload or onerror that could break by deprecating this.

Curious what your thoughts are @rniwa

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.