mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-20 21:01:18 -04:00
attempt to make edge functions a tad bit lighter
This commit is contained in:
@@ -8,8 +8,8 @@ const Document = () => {
|
||||
return (
|
||||
<Html lang={config.siteLocale} className={themeClassNames["light"]}>
|
||||
<Head>
|
||||
{/* inject a small script to set/restore the user's theme ASAP */}
|
||||
<ThemeScript id="restore-theme" {...{ themeClassNames, themeStorageKey }} />
|
||||
{/* inject this script (generated at build-time) to prioritize setting/restoring the user's theme. */}
|
||||
<ThemeScript key="restore-theme-js" {...{ themeClassNames, themeStorageKey }} />
|
||||
|
||||
<style id="stitches" dangerouslySetInnerHTML={{ __html: getCssText() }} />
|
||||
</Head>
|
||||
|
Reference in New Issue
Block a user