font-awesome-rails
font-awesome-rails copied to clipboard
Add font-display: block to font face declaration
Lighthouse is warning about it and
some browsers would use incorrect behaviour (swap) if auto
or nothing provided
Issue on FA:
https://github.com/FortAwesome/Font-Awesome/issues/16077
Change already scheduled for FA 5.12.2 https://github.com/FortAwesome/Font-Awesome/issues/16077#issuecomment-594581049
That's interesting. I proposed swap
, but yeah, maybe block
is better.
Hi, I was about to create a new pull request about this subject also. I suggest "font-display: swap", as it is recommended by Google here https://web.dev/font-display/?utm_source=lighthouse&utm_medium=devtools#how-to-avoid-showing-invisible-text Problem with "font-display: block" is that it may delay FCP. What do you think ?