Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
3

web vital issue causing render blocking issue while using typekit cdn

New Here ,
Jan 13, 2024 Jan 13, 2024

Does anyone know how to resolve this problem?

On my website, I'm using the Typekit fonts, however it's giving me an error and blocking the thread.

You cannot download CSS files that are referenced with @Import in other CSS files until the other CSS file has completely loaded. Rendering is delayed by these protracted render-blocking request chains.

 

Somesh34776575yrs9_0-1705168943590.pngexpand image

 

TOPICS
Font rendering , How to , Import export , Performance , Sync issue
2.5K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 17, 2024 Jan 17, 2024

Hey!  We're seeing the same thing and have opened https://community.adobe.com/t5/adobe-fonts-discussions/out-of-date-misleading-explanation-for-why-we...

 

In the meantime, although this is a very imperfect solution, one can use a one-liner HTML / JS hack to remove font loading from the critical rendering path, at the cost of risking a regression in CLS.

 

<!-- This causes the CSS file to be interpreted as a "preload", then when it's loaded, the "onload" event changes the rel property to "stylesheet" so that the browser interprets it differently -->
<link href="https://use.typekit.net/xxxxxx.css" rel="preload" as="style" onload="this.rel='stylesheet'">
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 09, 2024 Jun 09, 2024

I'm surprised there isn't any more activity on this thread. Are you still using this solution @Luke Leber?

 

Does Adobe or anybody else have any insight on this, given that it's now June and the issue still stands?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 10, 2024 Jun 10, 2024

We aren't - having made cuts in other places, we're now hovering around 2,100 - 2,300 for LCP so we didn't have to.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 10, 2024 Jun 10, 2024

You might consider upvoting https://community.adobe.com/t5/adobe-fonts-discussions/out-of-date-misleading-explanation-for-why-we... as a better solution to this problem 🙂

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 12, 2024 Jun 12, 2024
LATEST
quote

You might consider upvoting https://community.adobe.com/t5/adobe-fonts-discussions/out-of-date-misleading-explanation-for-why-we... as a better solution to this problem 🙂


By Luke Leber

If you want to get features implemented, you should use uservoice. https://adobefonts.uservoice.com/forums/940222-adobe-fonts-feature-requests-and-feedback?query=colla...

ABAMBO | Hard- and Software Engineer | Photographer
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines