Lighthouse: "Show 3rd-party resources" checkbox should be hidden when all resources are 3rd party.

Created on 15 May 2019  路  5Comments  路  Source: GoogleChrome/lighthouse

Feature request summary
Similar to how the checkbox is not shown when nothing is 3rd-party, it shouldn't be shown when everything is 3rd-party.

This is specifically applicable to our plugin as we have several audits that will only display 3rd party resources. In that situation it seems to make no sense to provide the user a way to clear the table.

I'd be happy to implement this myself.

Most helpful comment

sgtm

This is specifically applicable to our plugin as we have several audits that will only display 3rd party resources. In that situation it seems to make no sense to provide the user a way to clear the table.

We probably shouldn't have hardcoded the exceptions :)

All 5 comments

Makes perfect sense to me

I'd be happy to implement this myself.

馃憤 sounds great!

sgtm

This is specifically applicable to our plugin as we have several audits that will only display 3rd party resources. In that situation it seems to make no sense to provide the user a way to clear the table.

We probably shouldn't have hardcoded the exceptions :)

We probably shouldn't have hardcoded the exceptions :)

Haha missed that. What if the exceptions were part of the config file?

as you noted, there's already a check for not adding it if there's no third-party URLs, it seems completely reasonable and nicely simple to add a check right next to there for when a table is all third-party URLs.

(and if uses-rel-preconnect just turns out to be a specific case of this as the comment above it implies, we could remove the thirdPartyFilterAuditExclusions, but I don't think that's a pressing concern)

Agreed, will just stick with this for now.

Was this page helpful?
0 / 5 - 0 ratings