Fix font preloading

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
This commit is contained in:
Rūdolfs Ošiņš
2023-04-27 16:06:19 +02:00
parent 1f09d8a2a8
commit 36746a8091
+53 -8
View File
@@ -15,14 +15,7 @@
<meta property="og:image:width" content="220" />
<meta property="og:image:height" content="220" />
<meta property="og:type" content="website" />
<link rel="stylesheet" type="text/css" href="/typography.css" />
<link rel="stylesheet" type="text/css" href="/katex.min.css" />
<link rel="stylesheet" type="text/css" href="/colors.css" />
<link rel="stylesheet" type="text/css" href="/elevations.css" />
<link rel="stylesheet" type="text/css" href="/layout.css" />
<link rel="stylesheet" type="text/css" href="/prettylights.css" />
<link rel="stylesheet" type="text/css" href="/index.css" />
<link rel="icon" href="/radicle.svg" type="image/svg+xml" />
<link
rel="preload"
href="/fonts/Inter-Regular.woff"
@@ -35,6 +28,58 @@
as="font"
type="font/otf"
crossorigin="anonymous" />
<link
rel="preload"
href="/fonts/Inter-Bold.otf"
as="font"
type="font/otf"
crossorigin="anonymous" />
<link
rel="preload"
href="/fonts/JetBrainsMono-Regular.ttf"
as="font"
type="font/ttf"
crossorigin="anonymous" />
<link
rel="preload"
href="/fonts/JetBrainsMono-SemiBold.ttf"
as="font"
type="font/ttf"
crossorigin="anonymous" />
<link
rel="preload"
href="/fonts/JetBrainsMono-Bold.ttf"
as="font"
type="font/ttf"
crossorigin="anonymous" />
<link
rel="preload"
href="/fonts/JetBrainsMono-Italic.ttf"
as="font"
type="font/ttf"
crossorigin="anonymous" />
<link
rel="preload"
href="/fonts/JetBrainsMono-SemiBoldItalic.ttf"
as="font"
type="font/ttf"
crossorigin="anonymous" />
<link
rel="preload"
href="/fonts/JetBrainsMono-BoldItalic.ttf"
as="font"
type="font/ttf"
crossorigin="anonymous" />
<link rel="stylesheet" type="text/css" href="/typography.css" />
<link rel="stylesheet" type="text/css" href="/katex.min.css" />
<link rel="stylesheet" type="text/css" href="/colors.css" />
<link rel="stylesheet" type="text/css" href="/elevations.css" />
<link rel="stylesheet" type="text/css" href="/layout.css" />
<link rel="stylesheet" type="text/css" href="/prettylights.css" />
<link rel="stylesheet" type="text/css" href="/index.css" />
<link rel="icon" href="/radicle.svg" type="image/svg+xml" />
<script type="text/javascript">
// Workaround to get `global` to work in old-school transitive
// dependencies.