Skip to content

<link rel="preload" ...> element gets duplicated inside head #1964

@simonbaas

Description

@simonbaas

I'm trying to preload a font file hosted locally following the guide at https://fontsource.org/docs/getting-started/preload, but the <link rel="preload" ...> element gets duplicated inside head in the page returned from the server.

Steps to reproduce

  1. npm create waku@latest
  2. Add <link rel="preload" ...> element like the one below to _layout.tsx file just below <link rel="icon" type="image/png" href={data.icon} />:
    <link rel="preload" as="font" type="font/woff2" href="this-is-the-url-for-the-font.woff2" crossOrigin="anonymous" />
  3. npm run dev
  4. Notice that the <link rel="preload"...> element is duplicated inside the head element.
Image

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