Skip to content

Commit f757d96

Browse files
committed
pre-loading fonts
1 parent 7f2d0b8 commit f757d96

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

html/base.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,12 @@
349349
{% block extra_head %}{% endblock %}
350350
<link rel="preconnect" href="https://fonts.googleapis.com">
351351
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
352-
<link href="https://fonts.googleapis.com/css2?family=Emilys+Candy&display=swap" rel="stylesheet">
353-
<link href="https://fonts.googleapis.com/css2?family=Roboto+Slab&display=swap" rel="stylesheet">
352+
353+
<!-- Preload critical fonts for faster rendering -->
354+
<link rel="preload" href="https://fonts.gstatic.com/s/lato/v24/S6uyw4BMUTPHjx4wXiWtFCc.woff2" as="font" type="font/woff2" crossorigin>
355+
<link rel="preload" href="https://fonts.gstatic.com/s/emilycandy/v19/WBLgrEbUbFlYW6-M8CeAS6mKrwXhQQ.woff2" as="font" type="font/woff2" crossorigin>
356+
357+
<link href="https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Emilys+Candy&family=Roboto+Slab&display=swap" rel="stylesheet">
354358
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
355359
</head>
356360
<!-- Google tag (gtag.js) -->

0 commit comments

Comments
 (0)