Skip to content

Commit

Permalink
move page itself before css imports like css or fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
jankaifer committed Feb 1, 2023
1 parent d806859 commit 4f23455
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/src/server/app-render.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1491,6 +1491,7 @@ export async function renderToHTMLOrFlight(
Component: () => {
return (
<>
<Component {...props} />
{preloadedFontFiles?.length === 0 ? (
<link rel="preconnect" href="/" crossOrigin="anonymous" />
) : null}
Expand Down Expand Up @@ -1528,7 +1529,6 @@ export async function renderToHTMLOrFlight(
/>
))
: null}
<Component {...props} />
</>
)
},
Expand Down

0 comments on commit 4f23455

Please sign in to comment.