Skip to content

Commit 80f318e

Browse files
authored
fix: preloading fonts (#55)
1 parent 7fab441 commit 80f318e

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/views/404.ejs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
66
<title>404 - Page not found - Oops!</title>
7-
<link rel="preload" href="../assets/fonts/Poppins-Regular-latin-ext.woff2" as="font" />
8-
<link rel="preload" href="../assets/images/confused-robot.png?as=webp" as="image" />
7+
<link rel="preload" href="../assets/fonts/Poppins-Regular-latin.woff2" as="font" type="font/woff2" crossorigin="anonymous" />
8+
<link rel="preload" href="../assets/images/confused-robot.png?as=webp" as="image" type="image/webp" />
99
</head>
1010
<body>
1111
<div class="error-container">

src/views/index.ejs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
<meta property="og:image:width" content="1366" />
1717
<meta property="og:image:height" content="1269" />
1818
<link rel="canonical" href="<%- baseUrl %>" />
19-
<link rel="preload" href="../assets/images/profile100w100h.png?as=webp" as="image" />
20-
<link rel="preload" href="../assets/fonts/Poppins-Bold-latin-ext.woff2" as="font" />
21-
<link rel="preload" href="../assets/fonts/Poppins-Regular-latin-ext.woff2" as="font" />
22-
<link rel="preload" href="../../node_modules/@fortawesome/fontawesome-free/webfonts/fa-brands-400.woff2" as="font" />
23-
<link rel="preload" href="../../node_modules/@fortawesome/fontawesome-free/webfonts/fa-solid-900.woff2" as="font" />
19+
<link rel="preload" href="../assets/images/profile100w100h.png?as=webp" as="image" type="image/webp" />
20+
<link rel="preload" href="../assets/fonts/Poppins-Bold-latin-ext.woff2" as="font" type="font/woff2" crossorigin="anonymous" />
21+
<link rel="preload" href="../assets/fonts/Poppins-Regular-latin-ext.woff2" as="font" type="font/woff2" crossorigin="anonymous" />
22+
<link rel="preload" href="../../node_modules/@fortawesome/fontawesome-free/webfonts/fa-brands-400.woff2" as="font" type="font/woff2" crossorigin="anonymous" />
23+
<link rel="preload" href="../../node_modules/@fortawesome/fontawesome-free/webfonts/fa-solid-900.woff2" as="font" type="font/woff2" crossorigin="anonymous" />
2424
<script type="application/ld+json">
2525
{
2626
"@context": "https://schema.org",

0 commit comments

Comments
 (0)