1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-12-22 01:03:37 +01:00

preload/defer tweaks

This commit is contained in:
Matthias Kretschmann 2023-09-19 15:42:55 +01:00
parent 50a17fb07a
commit 4d06f34237
Signed by: m
GPG Key ID: 606EEEF3C479A91F
3 changed files with 7 additions and 3 deletions

View File

@ -144,7 +144,7 @@ jobs:
name: dist-ubuntu-latest-18
path: dist.zip
- name: unzip artifact
run: unzip ./dist.zip
run: unzip dist.zip
- name: Deploy to S3
run: npm run deploy:s3
env:

View File

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

View File

@ -105,7 +105,11 @@ const faviconSvg = await getImage({ src: faviconSvgSrc, format: 'svg' })
{
typekitID && (
<>
<link rel="preconnect" href="https://use.typekit.net" />
<link
rel="preload"
as="style"
href={`https://use.typekit.net/${typekitID}.css`}
/>
<link rel="preconnect" href="https://p.typekit.net" />
<link
rel="stylesheet"