1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-21 17:36:52 +01:00

faster theme loading

This commit is contained in:
Matthias Kretschmann 2024-03-12 19:22:54 +00:00
parent 442622b66d
commit ee8f7c8c4e
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 3 additions and 3 deletions

View File

@ -18,6 +18,3 @@ import styles from './index.module.css'
</div>
</label>
</div>
<!-- ./theme.cjs is symlinked to public/theme.js before build -->
<script is:inline src="/theme.js" defer></script>

View File

@ -119,6 +119,9 @@ const faviconSvg = await getImage({ src: faviconSvgSrc, format: 'svg' })
)
}
<!-- ./theme.cjs is symlinked to public/theme.js before build -->
<script is:inline src="/theme.js"></script>
{style && <link rel="stylesheet" href={style} />}
{