Attempt to improve darkmode FOUC with direct script tag in head

This commit is contained in:
Xevion
2023-02-17 03:14:14 -06:00
parent 5164d5f8da
commit 511229292c
2 changed files with 8 additions and 5 deletions

View File

@@ -4,7 +4,9 @@ import Script from 'next/script'
export default function Document() {
return (
<Html>
<Head />
<Head>
<script src="/js/darkmode.js" />
</Head>
<body>
<Main/>
<NextScript/>