lighthouse 12.2.0-dev.20240826 → 12.2.0-dev.20240827
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -59,12 +59,18 @@ class ResponsesAreCompressed extends ByteEfficiencyAudit {
|
|
|
59
59
|
const gzipSize = record.gzipSize;
|
|
60
60
|
const gzipSavings = originalSize - gzipSize;
|
|
61
61
|
|
|
62
|
-
//
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
62
|
+
// Not every resource is smaller when compressed.
|
|
63
|
+
if (record.transferSize < gzipSize) {
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// If savings is small, let's be generous and not surface the minor savings.
|
|
68
|
+
if (gzipSavings < IGNORE_THRESHOLD_IN_BYTES) {
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// Require at least 20kb of savings ... or some percentage of total resource size.
|
|
73
|
+
if (gzipSavings < 20_000 && 1 - gzipSize / originalSize < IGNORE_THRESHOLD_IN_PERCENT) {
|
|
68
74
|
return;
|
|
69
75
|
}
|
|
70
76
|
|
|
@@ -18,7 +18,7 @@ const UIStrings = {
|
|
|
18
18
|
/** Title of a Lighthouse audit that provides detail on the use of third party cookies. This descriptive title is shown to users when the page uses third party cookies. */
|
|
19
19
|
failureTitle: 'Uses third-party cookies',
|
|
20
20
|
/** Description of a Lighthouse audit that tells the user why they should not use third party cookies on their page. This is displayed after a user expands the section to see more. No character length limits. The last sentence starting with 'Learn' becomes link text to additional documentation. */
|
|
21
|
-
description: '
|
|
21
|
+
description: 'Chrome is moving towards a new experience that lets people make an informed choice with respect to third-party cookies. [Learn more about third-party cookies](https://developers.google.com/privacy-sandbox/cookies).',
|
|
22
22
|
/** [ICU Syntax] Label for the audit identifying the number of third-party cookies. */
|
|
23
23
|
displayValue: `{itemCount, plural,
|
|
24
24
|
=1 {1 cookie found}
|
package/package.json
CHANGED
|
@@ -1377,7 +1377,7 @@
|
|
|
1377
1377
|
"message": "Initial server response time was short"
|
|
1378
1378
|
},
|
|
1379
1379
|
"core/audits/third-party-cookies.js | description": {
|
|
1380
|
-
"message": "
|
|
1380
|
+
"message": "Chrome is moving towards a new experience that lets people make an informed choice with respect to third-party cookies. [Learn more about third-party cookies](https://developers.google.com/privacy-sandbox/cookies)."
|
|
1381
1381
|
},
|
|
1382
1382
|
"core/audits/third-party-cookies.js | displayValue": {
|
|
1383
1383
|
"message": "{itemCount, plural,\n =1 {1 cookie found}\n other {# cookies found}\n }"
|
|
@@ -1377,7 +1377,7 @@
|
|
|
1377
1377
|
"message": "Îńît́îál̂ śêŕv̂ér̂ ŕêśp̂ón̂śê t́îḿê ẃâś ŝh́ôŕt̂"
|
|
1378
1378
|
},
|
|
1379
1379
|
"core/audits/third-party-cookies.js | description": {
|
|
1380
|
-
"message": "
|
|
1380
|
+
"message": "Ĉh́r̂óm̂é îś m̂óv̂ín̂ǵ t̂óŵár̂d́ŝ á n̂éŵ éx̂ṕêŕîén̂ćê t́ĥát̂ ĺêt́ŝ ṕêóp̂ĺê ḿâḱê án̂ ín̂f́ôŕm̂éd̂ ćĥóîćê ẃît́ĥ ŕêśp̂éĉt́ t̂ó t̂h́îŕd̂-ṕâŕt̂ý ĉóôḱîéŝ. [Ĺêár̂ń m̂ór̂é âb́ôút̂ t́ĥír̂d́-p̂ár̂t́ŷ ćôók̂íêś](https://developers.google.com/privacy-sandbox/cookies)."
|
|
1381
1381
|
},
|
|
1382
1382
|
"core/audits/third-party-cookies.js | displayValue": {
|
|
1383
1383
|
"message": "{itemCount, plural,\n =1 {1 ĉóôḱîé f̂óûńd̂}\n other {# ćôók̂íêś f̂óûńd̂}\n }"
|