Skip to content
This repository was archived by the owner on Apr 10, 2025. It is now read-only.
This repository was archived by the owner on Apr 10, 2025. It is now read-only.

Don't strip rel=preload hints for resource types we don't optimize #1392

@jeffkaufman

Description

@jeffkaufman

Right now if we see:

<link rel=preload as=font href=...>

or:

<link rel=preload as=document href=...>

we will strip the preload hint. We should instead only be stripping hints for resources we optimize:

<link rel=preload as=script href=...>
<link rel=preload as=style href=...>
<link rel=preload as=image href=...>

Specifically, if as is something other than script, style, or image we should leave the hint alone.

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