Re: [csswg-drafts] [css-fonts] Add a `font-display` keyword to eliminate `@font-face` FOIT & layout shifts (#7271)

I'm generally skeptical of this proposal. In general, it's pretty scary to add more to the web platform that intentionally makes pages load _slower_.

People _do_ base64 encode font data into `data:` urls in stylesheets today, presumably to get the kind of behavior proposed in this issue. There are 2 problems with this existing approach:
1. It's unwieldy for the website maintainer; they require a build step to put the font file into the CSS
2. Base64 introduces a ~3x size blowup

What could convince me that this was a good idea is evidence of at least one author saying:
1. We use this technique today for small fonts
2. We want to use it for big fonts
3. But we can't because of the size blowup

-- 
GitHub Notification of comment by litherum
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7271#issuecomment-1155858704 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 15 June 2022 00:52:47 UTC