Skip to content

preload option doesn't add <link> tags to <head> #834

@bricksroo

Description

@bricksroo

While poking around https://npmx.dev, I noticed that fonts were not being preloaded via a <link rel="preload" as="font" ...> in the <head> tag even though preload is set to true in the config.

https://github.com/npmx-dev/npmx.dev/blob/main/nuxt.config.ts#L286

Minimal repro attempt:

https://stackblitz.com/edit/github-xbntjchq?file=nuxt.config.ts

No preload <link rel="preload" as="font" ...> tag in the rendered page <head> tag
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions