Exclude full-page-screenshot audit as part of lighthouse run
See original GitHub issueSummary
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:
- Created 2 years ago
- Reactions:1
- Comments:6 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fixed in
main
branch and v10. (as long as you don’t use--legacy-navigation
).previous discussion on this: https://github.com/GoogleChrome/lighthouse/pull/2539#issuecomment-310480924
onlyCategories
is one thing that makes it complicated. Maybefull-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)