Scott Jehl on Nostr: CSS/Fonts: It's really unfortunate that the typical patterns for loading web fonts ...
CSS/Fonts: It's really unfortunate that the typical patterns for loading web fonts from providers (Google Fonts, etc) start with a render-blocking third-party request just to get the @font-face CSS rules (note: not the actual fonts yet) which should ideally be in our own CSS from the start. I should blog about the reasons we can't do that reliably with many providers, but it's such a shame we can't because leading with a performance anti-pattern transfers the cost of the service to the users.
Published at
2024-08-29 22:21:33Event JSON
{
"id": "a2416ca081aa31198d0863a88669abb2d738606236298483bc54bf93804b9a3e",
"pubkey": "b366513fe344d7bcd092cb92e8dbb8f07ef6321dbdf1a05fd3439b0ba381c150",
"created_at": 1724970093,
"kind": 1,
"tags": [
[
"proxy",
"https://mstdn.social/users/scottjehl/statuses/113047640040446807",
"activitypub"
]
],
"content": "CSS/Fonts: It's really unfortunate that the typical patterns for loading web fonts from providers (Google Fonts, etc) start with a render-blocking third-party request just to get the @font-face CSS rules (note: not the actual fonts yet) which should ideally be in our own CSS from the start. I should blog about the reasons we can't do that reliably with many providers, but it's such a shame we can't because leading with a performance anti-pattern transfers the cost of the service to the users.",
"sig": "0aa5bf207508590decad4635802637828538adfa1bc7e8ffe88dffebaf2d743112707f524cd044f8a53f9d3ad15bc727fc22661cb25f354433a8cf6c16d732f0"
}