You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have two web fonts I'm using for my website. Noe Display (weight 500, style normal) I bought from a vendor and I am loading it locally using @font-face, display: swap and preload. It renders extremely fast!
The second font is Freight Sans Compressed Pro (weight 500, style normal), this one I'm loading from Typekit (Adobe Fonts).
When using the code below from your recipe "The Compromise" I noticed that it's causing FOIT with the Adobe Font rendering. I know this was written for locally hosted fonts, but I was hoping it could be somewhat adapted for my use case.
I am using this code right now because of the FOIT issue, but I'm wondering if there's a better solution that includes 'sessionStorage'...it was the 'sessionStorage' that caused the FOIT.
I have two web fonts I'm using for my website. Noe Display (weight 500, style normal) I bought from a vendor and I am loading it locally using
@font-face
,display: swap
andpreload
. It renders extremely fast!The second font is Freight Sans Compressed Pro (weight 500, style normal), this one I'm loading from Typekit (Adobe Fonts).
When using the code below from your recipe "The Compromise" I noticed that it's causing FOIT with the Adobe Font rendering. I know this was written for locally hosted fonts, but I was hoping it could be somewhat adapted for my use case.
I am using this code right now because of the FOIT issue, but I'm wondering if there's a better solution that includes 'sessionStorage'...it was the 'sessionStorage' that caused the FOIT.
I should also note that I'm using WordPress, and that I'm conditionally enqueuing the FontFaceObserver polyfill so it only loads in IE and EDGE.
I'm preconnecting to the Typekit stylesheet as well:
<link href="https://use.typekit.net/xxxxxx.css" rel="preconnect" crossorigin>
I couldn't find any articles where you specifically talk about Typekit, so here's hoping you have some guidance on how best to proceed.
The text was updated successfully, but these errors were encountered: