Skip to content

Commit

Permalink
preload/defer tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
kremalicious committed Sep 19, 2023
1 parent 50a17fb commit 4d06f34
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/components/ThemeSwitch/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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>
6 changes: 5 additions & 1 deletion src/components/layouts/Base/Head.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

1 comment on commit 4d06f34

@vercel
Copy link

@vercel vercel bot commented on 4d06f34 Sep 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

blog – ./

kremalicious.vercel.app
blog-kremalicious.vercel.app
blog-git-main-kremalicious.vercel.app

Please sign in to comment.