Skip to content

Commit

Permalink
Merge pull request #12 from Wallapop/feature/AC-266
Browse files Browse the repository at this point in the history
Added font-display: swap; to all fonts to avoid render-blocking resources
  • Loading branch information
mati-dev authored Sep 17, 2020
2 parents f8abe08 + d54f74b commit 668ca57
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scss/_fonts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,20 @@
font-family: $wallie;
src: url("//d22j03ecumputt.cloudfront.net/fonts/Wallie-Skinny.woff2") format("woff2"), url("//d22j03ecumputt.cloudfront.net/fonts/Wallie-Skinny.woff") format("woff"), url("//d22j03ecumputt.cloudfront.net/fonts/Wallie-Skinny.ttf") format("truetype");
font-weight: $font-weight-skinny;
font-display: fallback;
}

@font-face {
font-family: $wallie;
src: url("//d22j03ecumputt.cloudfront.net/fonts/Wallie-Fit.woff2") format("woff2"), url("//d22j03ecumputt.cloudfront.net/fonts/Wallie-Fit.woff") format("woff"), url("//d22j03ecumputt.cloudfront.net/fonts/Wallie-Fit.ttf") format("truetype");
font-display: fallback;
}

@font-face {
font-family: $wallie;
src: url("//d22j03ecumputt.cloudfront.net/fonts/Wallie-Chunky.woff2") format("woff2"), url("//d22j03ecumputt.cloudfront.net/fonts/Wallie-Chunky.woff") format("woff"), url("//d22j03ecumputt.cloudfront.net/fonts/Wallie-Chunky.ttf") format("truetype");
font-weight: $font-weight-chunky;
font-display: fallback;
}

@font-face {
Expand All @@ -21,4 +24,5 @@
url('//d22j03ecumputt.cloudfront.net/fonts/OCRAStd.woff') format('woff'), url('//d22j03ecumputt.cloudfront.net/fonts/OCRAStd.ttf') format('truetype'), url('//d22j03ecumputt.cloudfront.net/fonts/OCRAStd.svg#OCRAStd') format('svg');
font-weight: normal;
font-style: normal;
font-display: fallback;
}

0 comments on commit 668ca57

Please # to comment.