Skip to content

Commit

Permalink
Prevent FOIT
Browse files Browse the repository at this point in the history
Prevented flashing of invisible texts as according to
https://web.dev/font-display/?utm_source=lighthouse&utm_medium=unknown
  • Loading branch information
felixthiele committed Jun 6, 2020
1 parent 95100cb commit 53808bd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
<!-- iOS Safari -->
<meta name="apple-mobile-web-app-status-bar-style" content="#263959">
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css?family=PT+Serif:400,700|Lato:300,400,700" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=PT+Serif:400,700|Lato:300,400,700&display=swap" rel="stylesheet">
<!-- Font Awesome -->
<link rel="stylesheet" href="{{ "/assets/fonts/font-awesome/css/font-awesome.min.css" | prepend: site.baseurl }}">
<!-- Styles -->
Expand Down
1 change: 1 addition & 0 deletions assets/fonts/font-awesome/css/font-awesome.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
src: url('../fonts/fontawesome-webfont.eot?#iefix&v=4.7.0') format('embedded-opentype'), url('../fonts/fontawesome-webfont.woff2?v=4.7.0') format('woff2'), url('../fonts/fontawesome-webfont.woff?v=4.7.0') format('woff'), url('../fonts/fontawesome-webfont.ttf?v=4.7.0') format('truetype'), url('../fonts/fontawesome-webfont.svg?v=4.7.0#fontawesomeregular') format('svg');
font-weight: normal;
font-style: normal;
font-display: swap;
}
.fa {
display: inline-block;
Expand Down
Loading

0 comments on commit 53808bd

Please sign in to comment.