In my _document.tsx I have <NextScript /> used in this way
import { Html, Head, Main, NextScript } from "next/document";
export default function Document() {
return (
<Html lang="en">
<Head />
<body className="selection:bg-transparent">
<Main />
<NextScript />
</body>
</Html>
);
}
As far as I understand, the script should be marked as defer
but Chrome DevTools gives me an issue of 1,39 seconds to paint the page, with the messages
Render blocking request
Add an async or defer attribute to the script so that it can be executed later and not delay rendering (see attached image).
Is there something wrong from my side?