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.

Exclude full-page-screenshot audit as part of lighthouse run

See original GitHub issue

Summary I am using LH version - 8.4.0 currently and would like to exclude the audit full-page-screenshot as part of my LH run since it would increase the result JSON by 33% as per the notable changes here. Since we cannot pass both skipAudits and onlyAudits flag together, I am looking for a way to not include this full-page-screenshot audit. Example: If I run only the audit errors-in-console, I see two audit results - errors-in-console and full-page-screenshot

Here is my config:

const desktopConfig = {
  extends: 'lighthouse:default',
  settings: {
    maxWaitForFcp: 15000,
    maxWaitForLoad: 35000,
    emulatedFormFactor: 'desktop',
    throttling: {
      rttMs: 40,
      throughputKbps: 10240,
      cpuSlowdownMultiplier: 1,
    },
  },
};

I have lighthouse: default as part of my config and I guess that’s the reason this audit gets automatically included, but looking for a way to exclude this audit.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
paulirishcommented, Nov 28, 2022

Fixed in main branch and v10. (as long as you don’t use --legacy-navigation).

0reactions
brendankennycommented, Oct 24, 2022

previous discussion on this: https://github.com/GoogleChrome/lighthouse/pull/2539#issuecomment-310480924

onlyCategories is one thing that makes it complicated. Maybe full-page-screenshot should continue to be special cased (or we should admit it’s not an audit, though it’ll still need some kind of flag for disabling)

Read more comments on GitHub >

github_iconTop Results From Across the Web

skip-audits flag excludes full-page-screenshot #11913 - GitHub
Lighthouse shouldn't exclude full-page-screenshot , and should only skip specified audits. Environment Information. Affected Channels: CLI, Node ...
Read more >
View Lighthouse Log - WebPageTest
lighthouse "https://csswizardry.dev/lcp/img.html" --channel wpt ... GMT LH:config:warn unrecognized audit in 'skipAudits': full-page-screenshot Sun, ...
Read more >
Google Lighthouse: What Is It & How Do You Use It?
Lighthouse uses a web browser called Chromium to build pages and runs tests on the pages as they're built. The tool is open-source...
Read more >
How to Use Google Lighthouse to Improve Site Speed
Google Lighthouse helps you audit web pages and identify specific areas to improve your page load speed and overall user experience. Pair ...
Read more >
Performance monitoring with Lighthouse CI - web.dev
A single Lighthouse report provides a snapshot of a web page's performance at the time that it is run; Lighthouse CI shows how...
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