question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Relax render blocking audit for CDN-loaded assets (e.g. fonts)

See original GitHub issue

Feature request summary

The “Eliminate render-blocking resources” audit is being flagged whenever font stylesheets from a font CDN (e.g. Google Fonts) is present.

This makes sense because it blocks rendering, but given that the fonts are coming from a shared CDN and would often already be cached, should such assets have the same negative weight some other render-blocking resource that is loaded from the same origin? I realize that double-key caching in browsers will invalidate this, however.

Nevertheless, when running an audit on an AMP page, there is actually logic present which will force font stylesheets to get loaded asynchronously (see font-stylesheet-timeout.js).

When a framework does this, should this be taken into consideration in the Lighthouse audit?

What is the motivation or use case for changing this?

The AMP framework requires font stylesheets to be placed in the head. Developers of AMP pages do currently have any alternative way to embed Google Fonts. So this audit is telling users about something they can’t currently change (other than to remove the font altogether), and since the AMP framework unblocks such resources, the “eliminate render-blocking resources” audit here may flag something that is already being taken care of.

How is this beneficial to Lighthouse?

Improve the actual impact of the “Eliminate render-blocking resources” audit.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
patrickhulcecommented, Apr 28, 2020
1reaction
Stanzillacommented, Apr 28, 2020

@patrickhulce 10046 is this issue 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

9 tricks to eliminate render blocking resources - LogRocket Blog
Render blocking resources are static files, such as fonts, HTML, CSS, and JavaScript files, that are vital to the process of rendering a...
Read more >
How To Eliminate Render-Blocking Resources
Discovering critical render-blocking resources and repairing them can significantly boost your SEO. Read on to learn how.
Read more >
Eliminate render-blocking resources - Chrome Developers
The goal is to reduce the impact of these render-blocking URLs by inlining critical resources, deferring non-critical resources, ...
Read more >
How to Eliminate Render-Blocking Resources on WordPress
Learn how to eliminate Render-Blocking JavaScript & CSS on your WordPress site either manually or using a plugin, like Autoptimize or WP ...
Read more >
Three Ways to Remove Render-Blocking JavaScript | Blog
Having render-blocking resources can ding your site's performance on a number of levels. Using Google's PageSpeed Insights audit tool, The C2 Group's ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found