perf: update font load strategy for better performance

This commit is contained in:
satnaing
2023-01-19 18:21:13 +06:30
parent 9840cf7b66
commit 52197d319d
+1 -3
View File
@@ -65,10 +65,8 @@ const fallbackImageURL = new URL(SITE.ogImage, Astro.url.origin).href;
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
rel="preload"
href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&display=swap"
as="style"
onload="this.onload=null;this.rel='stylesheet'"
rel="stylesheet"
/>
{