Skip to content

Bug: ReactDOM.preload()  #27200

@styfle

Description

@styfle

React version: 18.3.0-canary-9377e1010-20230712

Steps To Reproduce

  1. Add <meta name="viewport" content="width=device-width, initial-scale=1" /> inside of <head>
  2. Call ReactDOM.preload('/img.png', { as: 'image' })

The current behavior

The <link> generated from the preload is before the <meta> for the viewport.

The expected behavior

The <link> should come after the <meta> for the viewport.

Related

cc @gnoff

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: UnconfirmedA potential issue that we haven't yet confirmed as a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions