React version: 18.3.0-canary-9377e1010-20230712
Steps To Reproduce
- Add
<meta name="viewport" content="width=device-width, initial-scale=1" /> inside of <head>
- 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
React version:
18.3.0-canary-9377e1010-20230712Steps To Reproduce
<meta name="viewport" content="width=device-width, initial-scale=1" />inside of<head>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
next/imagewithpriorityin App Router causes double fetch on mobile vercel/next.js#53574cc @gnoff