1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-22 09:56:51 +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 name: dist-ubuntu-latest-18
path: dist.zip path: dist.zip
- name: unzip artifact - name: unzip artifact
run: unzip ./dist.zip run: unzip dist.zip
- name: Deploy to S3 - name: Deploy to S3
run: npm run deploy:s3 run: npm run deploy:s3
env: env:

View File

@ -20,4 +20,4 @@ import styles from './index.module.css'
</div> </div>
<!-- ./theme.cjs is symlinked to public/theme.js before build --> <!-- ./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 && ( 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="preconnect" href="https://p.typekit.net" />
<link <link
rel="stylesheet" rel="stylesheet"