Attempt to move up darkmode script in rendering process

This commit is contained in:
2023-03-10 03:23:59 -06:00
parent 0096f690f7
commit a04ff52f34

View File

@@ -5,12 +5,11 @@ export default function Document() {
return ( return (
<Html> <Html>
<Head> <Head>
<script src="/js/darkmode.js" async />
</Head> </Head>
<body> <body>
<script src="/js/darkmode.js" />
<Main/> <Main/>
<NextScript/> <NextScript/>
<Script strategy="beforeInteractive" id="automatic-darkmode" src="/js/darkmode.js"/>
</body> </body>
</Html> </Html>
) )