Comments (2)
I believe we landed on this because it avoided landing a non-reversible change to the gatherer implementation that affects filtering, which is already kinda complex. But this doesn't help for custom gatherers.
We also have --disable-full-page-screenshot
to exclude this logic for the FPS audit ... so a gatherer option called alwaysRun: true
would be more like alwaysRunUnlessToldOtherwise
:p Maybe runOnlyWhenRequested
or runOnlyIfNeeded: false
or supplementary: true
...
Is it an option for you to always include (via --only-audits
) a hidden audit that depends on your custom artifact?
from lighthouse.
Yeah that's a valid point, adding such new property might end up making things even more complex.
In regards to the hidden audit, yes, that's what I tried when I found out that gatherers are filtered.
At first, I didn't get why it was not working, then I realised I needed to include the gatherer in an audit. So I implemented a fake audit, like the one in the example below, but I felt like it was not the best way to do it and I was wondering whether could be feasible to, in a way, decouple gatherers from audits.
class MyAudit extends Audit {
static get meta() {
return {
id: 'my-audit',
title: 'My Audit',
failureTitle: 'Dummy failure title',
description: 'Dummy description',
requiredArtifacts: ['MyGatherer'],
};
}
static audit() {
return {
score: 1
};
}
}
Thanks for your feedback, happy to discuss this further but feel free to close the issue.
from lighthouse.
Related Issues (20)
- goodgame nem töltődik be
- View trace not available on programatically executed lighthouse HOT 3
- m channel monotiger kar da
- PSI API giving ERRORED_DOCUMENT_REQUEST error for some urls that worked recently HOT 10
- TypeError: Cannot read properties of undefined (reading 'score') HOT 1
- I don't know, it told me to report to the github repository HOT 2
- Chrome cannot update HOT 1
- Launch Lighthouse on any website in the globe using our customized web view, which renders the Chrome browser. Should be able to generate report before and after login. HOT 3
- Dev Tools Lighthouse score and Python Lighthouse score is not matching when running from PyCharm terminal HOT 1
- mostafa
- Rename meta viewport audit HOT 2
- CI uses `actions/checkout@v3`, which uses a `deprecated` version of `Node.js` HOT 1
- `aria-allowed-role` description is misleading HOT 3
- any
- Lighthouse CLI pass mulitple cookies via --extra-headers HOT 3
- Fence & Gate
- Responsive LCP image penalized for lazy-loading by lcp-lazy-loaded audit HOT 3
- Running lighthouse programmatically in CEF applications HOT 1
- PROTOCOL_TIMEOUT HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lighthouse.