Skip to content

Commit ee12481

Browse files
Preloading Fallback font for slower connections (#4415)
1 parent f85f6ef commit ee12481

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
<meta id="theme-color" name="theme-color" content="#2196F3" />
7070

7171
<link type="text/css" href="fonts/material-icons.css" rel="stylesheet"/>
72+
<link rel="preload" href="/fonts/material-icons.woff2" as="font" type="font/woff2" crossorigin="anonymous">
7273
<link rel="stylesheet" href="lib/materialize-iso.css" />
7374
<link rel="stylesheet" href="css/themes.css" />
7475

planet/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
<link type="text/css" href="fonts/material-icons.css" rel="stylesheet">
88
<!--Import materialize.css-->
99
<link type="text/css" rel="stylesheet" href="libs/materialize.min.css" media="screen,projection"/>
10-
10+
11+
<link rel="preload" href="./fonts/material-icons.woff2" as="font" type="font/woff2" crossorigin="anonymous">
1112
<!-- Import clipboard.js -->
1213
<script src="libs/clipboard.min.js"></script>
1314

0 commit comments

Comments
 (0)