Preload fonts

This commit is contained in:
Santiago Lo Coco 2022-02-14 14:02:31 -03:00
parent c5cabe3aa7
commit 8bbc284748
2 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@
<link rel="stylesheet" href="{{ '/assets/css/mdb.min.css' | relative_url }}"/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@{{ site.fontawesome.version }}/css/all.min.css" integrity="{{ site.fontawesome.integrity }}" crossorigin="anonymous">
<link rel="stylesheet" href="{{ '/assets/css/fonts.css' | relative_url }}">
<link rel="preload" href="{{ '/assets/css/fonts.css' | relative_url }}" as="font">
<link rel="stylesheet" href="https://gitcdn.link/repo/jwarby/jekyll-pygments-themes/master/{{ site.highlight_theme }}.css"/>

View File

@ -9,7 +9,7 @@
url('../fonts/roboto-v29-latin-regular.woff') format('woff'),
url('../fonts/roboto-v29-latin-regular.ttf') format('truetype'),
url('../fonts/roboto-v29-latin-regular.svg#Roboto') format('svg');
font-display: swap;
/* font-display: swap; */
}
@font-face {
@ -23,7 +23,7 @@
url('../fonts/roboto-v29-latin-500.woff') format('woff'),
url('../fonts/roboto-v29-latin-500.ttf') format('truetype'),
url('../fonts/roboto-v29-latin-500.svg#Roboto') format('svg');
font-display: swap;
/* font-display: swap; */
}
@font-face {
@ -37,7 +37,7 @@
url('../fonts/roboto-v29-latin-700.woff') format('woff'),
url('../fonts/roboto-v29-latin-700.ttf') format('truetype'),
url('../fonts/roboto-v29-latin-700.svg#Roboto') format('svg');
font-display: swap;
/* font-display: swap; */
}
.material-icons {