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:
parent
50a17fb07a
commit
4d06f34237
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -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:
|
||||||
|
@ -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>
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user