Skip to content

Commit

Permalink
move blocking css import to link preconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
activatedgeek committed Sep 26, 2024
1 parent fef7003 commit 86c7976
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "copernicus",
"type": "module",
"version": "0.8.2",
"version": "0.8.3",
"scripts": {
"dev": "astro dev",
"pretty": "prettier --write .",
Expand Down
7 changes: 7 additions & 0 deletions src/components/Html.astro
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ const {
<link rel="canonical" href={canonicalURL.href} />
<meta name="giscus:backlink" content={canonicalURL.href} />

<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Assistant:wght@200..800&display=swap"
rel="stylesheet"
/>

<title>{title} | {siteAuthorName}</title>
<meta name="theme-color" content={themeColor} />
<meta name="description" content={description} />
Expand Down
2 changes: 0 additions & 2 deletions src/styles/main.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import url("https://fonts.googleapis.com/css2?family=Assistant:wght@200..800&display=swap");

@import "@picocss/pico/css/pico.classless.min.css";

:root {
Expand Down

0 comments on commit 86c7976

Please sign in to comment.