Skip to content

Commit

Permalink
Add font-display: block to font face declaration
Browse files Browse the repository at this point in the history
Lighthouse is warning about it and
some browsers would use incorrect behaviour (swap) if `auto` or nothing provided
Issue on FA:
FortAwesome/Font-Awesome#16077

Change already scheduled for FA 5.12.2
FortAwesome/Font-Awesome#16077 (comment)
  • Loading branch information
PikachuEXE committed Mar 20, 2020
1 parent d4a2e50 commit f914464
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/assets/stylesheets/font-awesome.css.erb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
src: url('<%= font_path('fontawesome-webfont.eot') %>?#iefix') format('embedded-opentype'), url('<%= font_path('fontawesome-webfont.woff2') %>') format('woff2'), url('<%= font_path('fontawesome-webfont.woff') %>') format('woff'), url('<%= font_path('fontawesome-webfont.ttf') %>') format('truetype'), url('<%= font_path('fontawesome-webfont.svg') %>#fontawesomeregular') format('svg');
font-weight: normal;
font-style: normal;
font-display: block;
}
.fa {
display: inline-block;
Expand Down

0 comments on commit f914464

Please sign in to comment.