lighthouse 10.3.0-dev.20230613 → 10.3.0-dev.20230616

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.
@@ -125,6 +125,7 @@ class NonCompositedAnimations extends Audit {
125
125
  return {
126
126
  score: 1,
127
127
  notApplicable: true,
128
+ metricSavings: {CLS: 0},
128
129
  };
129
130
  }
130
131
 
@@ -195,6 +196,12 @@ class NonCompositedAnimations extends Audit {
195
196
  return {
196
197
  score: results.length === 0 ? 1 : 0,
197
198
  notApplicable: results.length === 0,
199
+ metricSavings: {
200
+ // We do not have enough information to accurately predict the impact of individual animations on CLS.
201
+ // It is also not worth the effort since only a small percentage of sites have their CLS affected by non-composited animations.
202
+ // https://github.com/GoogleChrome/lighthouse/pull/15099#issuecomment-1558107906
203
+ CLS: 0,
204
+ },
198
205
  details,
199
206
  displayValue,
200
207
  };
@@ -46,15 +46,26 @@ class Viewport extends Audit {
46
46
  static async audit(artifacts, context) {
47
47
  const viewportMeta = await ViewportMeta.request(artifacts.MetaElements, context);
48
48
 
49
+ let inpSavings = 300;
49
50
  if (!viewportMeta.hasViewportTag) {
50
51
  return {
51
52
  score: 0,
52
53
  explanation: str_(UIStrings.explanationNoTag),
54
+ metricSavings: {
55
+ INP: inpSavings,
56
+ },
53
57
  };
54
58
  }
55
59
 
60
+ if (viewportMeta.isMobileOptimized) {
61
+ inpSavings = 0;
62
+ }
63
+
56
64
  return {
57
65
  score: Number(viewportMeta.isMobileOptimized),
66
+ metricSavings: {
67
+ INP: inpSavings,
68
+ },
58
69
  warnings: viewportMeta.parserWarnings,
59
70
  };
60
71
  }
@@ -224,7 +224,11 @@ class WorkDuringInteraction extends Audit {
224
224
  const {settings} = context;
225
225
  // TODO: responsiveness isn't yet supported by lantern.
226
226
  if (settings.throttlingMethod === 'simulate') {
227
- return {score: null, notApplicable: true};
227
+ return {
228
+ score: null,
229
+ notApplicable: true,
230
+ metricSavings: {INP: 0},
231
+ };
228
232
  }
229
233
 
230
234
  const trace = artifacts.traces[WorkDuringInteraction.DEFAULT_PASS];
@@ -232,7 +236,11 @@ class WorkDuringInteraction extends Audit {
232
236
  const interactionEvent = await Responsiveness.request(metricData, context);
233
237
  // If no interaction, diagnostic audit is n/a.
234
238
  if (interactionEvent === null) {
235
- return {score: null, notApplicable: true};
239
+ return {
240
+ score: null,
241
+ notApplicable: true,
242
+ metricSavings: {INP: 0},
243
+ };
236
244
  }
237
245
  // TODO: remove workaround once 103.0.5052.0 is sufficiently released.
238
246
  if (interactionEvent.name === 'FallbackTiming') {
@@ -271,6 +279,9 @@ class WorkDuringInteraction extends Audit {
271
279
  type: 'list',
272
280
  items: auditDetailsItems,
273
281
  },
282
+ metricSavings: {
283
+ INP: duration,
284
+ },
274
285
  };
275
286
  }
276
287
  }
@@ -23,6 +23,10 @@ const stackPacksToInclude = [
23
23
  packId: 'wordpress',
24
24
  requiredStacks: ['js:wordpress'],
25
25
  },
26
+ {
27
+ packId: 'wix',
28
+ requiredStacks: ['js:wix'],
29
+ },
26
30
  {
27
31
  packId: 'wp-rocket',
28
32
  requiredStacks: ['js:wp-rocket'],
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lighthouse",
3
3
  "type": "module",
4
- "version": "10.3.0-dev.20230613",
4
+ "version": "10.3.0-dev.20230616",
5
5
  "description": "Automated auditing, performance metrics, and best practices for the web.",
6
6
  "main": "./core/index.js",
7
7
  "bin": {
@@ -198,7 +198,7 @@
198
198
  "jpeg-js": "^0.4.4",
199
199
  "js-library-detector": "^6.6.0",
200
200
  "lighthouse-logger": "^1.4.1",
201
- "lighthouse-stack-packs": "1.10.0",
201
+ "lighthouse-stack-packs": "1.11.0",
202
202
  "lodash": "^4.17.21",
203
203
  "lookup-closest-locale": "6.2.0",
204
204
  "metaviewport-parser": "0.3.0",
@@ -3062,6 +3062,21 @@
3062
3062
  "node_modules/lighthouse-stack-packs/packs/react.js | user-timings": {
3063
3063
  "message": "Use the React DevTools Profiler, which makes use of the Profiler API, to measure the rendering performance of your components. [Learn more.](https://reactjs.org/blog/2018/09/10/introducing-the-react-profiler.html)"
3064
3064
  },
3065
+ "node_modules/lighthouse-stack-packs/packs/wix.js | efficient-animated-content": {
3066
+ "message": "Place videos inside `VideoBoxes`, customize them using `Video Masks` or add `Transparent Videos`. [Learn more](https://support.wix.com/en/article/wix-video-about-wix-video)."
3067
+ },
3068
+ "node_modules/lighthouse-stack-packs/packs/wix.js | modern-image-formats": {
3069
+ "message": "Upload images using `Wix Media Manager` to ensure they are automatically served as WebP. Find [more ways to optimize](https://support.wix.com/en/article/site-performance-optimizing-your-media) your site's media."
3070
+ },
3071
+ "node_modules/lighthouse-stack-packs/packs/wix.js | render-blocking-resources": {
3072
+ "message": "When [adding third-party code](https://support.wix.com/en/article/site-performance-using-third-party-code-on-your-site) in the `Custom Code` tab of your site's dashboard, make sure it's deferred or loaded at the end of the code body. Where possible, use Wix’s [integrations](https://support.wix.com/en/article/about-marketing-integrations) to embed marketing tools on your site. "
3073
+ },
3074
+ "node_modules/lighthouse-stack-packs/packs/wix.js | server-response-time": {
3075
+ "message": "Wix utilizes CDNs and caching to serve responses as fast as possible for most visitors. Consider [manually enabling caching](https://support.wix.com/en/article/site-performance-caching-pages-to-optimize-loading-speed) for your site, especially if using `Velo`."
3076
+ },
3077
+ "node_modules/lighthouse-stack-packs/packs/wix.js | unused-javascript": {
3078
+ "message": "Review any third-party code you've added to your site in the `Custom Code` tab of your site's dashboard and only keep the services that are necessary to your site. [Find out more](https://support.wix.com/en/article/site-performance-removing-unused-javascript)."
3079
+ },
3065
3080
  "node_modules/lighthouse-stack-packs/packs/wordpress.js | efficient-animated-content": {
3066
3081
  "message": "Consider uploading your GIF to a service which will make it available to embed as an HTML5 video."
3067
3082
  },
@@ -3062,6 +3062,21 @@
3062
3062
  "node_modules/lighthouse-stack-packs/packs/react.js | user-timings": {
3063
3063
  "message": "Ûśê t́ĥé R̂éâćt̂ D́êv́T̂óôĺŝ Ṕr̂óf̂íl̂ér̂, ẃĥíĉh́ m̂ák̂éŝ úŝé ôf́ t̂h́ê Ṕr̂óf̂íl̂ér̂ ÁP̂Í, t̂ó m̂éâśûŕê t́ĥé r̂én̂d́êŕîńĝ ṕêŕf̂ór̂ḿâńĉé ôf́ ŷóûŕ ĉóm̂ṕôńêńt̂ś. [L̂éâŕn̂ ḿôŕê.](https://reactjs.org/blog/2018/09/10/introducing-the-react-profiler.html)"
3064
3064
  },
3065
+ "node_modules/lighthouse-stack-packs/packs/wix.js | efficient-animated-content": {
3066
+ "message": "P̂ĺâćê v́îd́êóŝ ín̂śîd́ê `VideoBoxes`, ćûśt̂óm̂íẑé t̂h́êḿ ûśîńĝ `Video Masks` ór̂ ád̂d́ `Transparent Videos`. [L̂éâŕn̂ ḿôŕê](https://support.wix.com/en/article/wix-video-about-wix-video)."
3067
+ },
3068
+ "node_modules/lighthouse-stack-packs/packs/wix.js | modern-image-formats": {
3069
+ "message": "Ûṕl̂óâd́ îḿâǵêś ûśîńĝ `Wix Media Manager` t́ô én̂śûŕê t́ĥéŷ ár̂é âút̂óm̂át̂íĉál̂ĺŷ śêŕv̂éd̂ áŝ Ẃêb́P̂. F́îńd̂ [ḿôŕê ẃâýŝ t́ô óp̂t́îḿîźê](https://support.wix.com/en/article/site-performance-optimizing-your-media) ýôúr̂ śît́ê'ś m̂éd̂íâ."
3070
+ },
3071
+ "node_modules/lighthouse-stack-packs/packs/wix.js | render-blocking-resources": {
3072
+ "message": "Ŵh́êń [âd́d̂ín̂ǵ t̂h́îŕd̂-ṕâŕt̂ý ĉód̂é](https://support.wix.com/en/article/site-performance-using-third-party-code-on-your-site) îń t̂h́ê `Custom Code` t́âb́ ôf́ ŷóûŕ ŝít̂é'ŝ d́âśĥb́ôár̂d́, m̂ák̂é ŝúr̂é ît́'ŝ d́êf́êŕr̂éd̂ ór̂ ĺôád̂éd̂ át̂ t́ĥé êńd̂ óf̂ t́ĥé ĉód̂é b̂ód̂ý. Ŵh́êŕê ṕôśŝíb̂ĺê, úŝé Ŵíx̂’ś [îńt̂éĝŕât́îón̂ś](https://support.wix.com/en/article/about-marketing-integrations) t̂ó êḿb̂éd̂ ḿâŕk̂ét̂ín̂ǵ t̂óôĺŝ ón̂ ýôúr̂ śît́ê. "
3073
+ },
3074
+ "node_modules/lighthouse-stack-packs/packs/wix.js | server-response-time": {
3075
+ "message": "Ŵíx̂ út̂íl̂íẑéŝ ĆD̂Ńŝ án̂d́ ĉáĉh́îńĝ t́ô śêŕv̂é r̂éŝṕôńŝéŝ áŝ f́âśt̂ áŝ ṕôśŝíb̂ĺê f́ôŕ m̂óŝt́ v̂íŝít̂ór̂ś. Ĉón̂śîd́êŕ [m̂án̂úâĺl̂ý êńâb́l̂ín̂ǵ ĉáĉh́îńĝ](https://support.wix.com/en/article/site-performance-caching-pages-to-optimize-loading-speed) f́ôŕ ŷóûŕ ŝít̂é, êśp̂éĉíâĺl̂ý îf́ ûśîńĝ `Velo`."
3076
+ },
3077
+ "node_modules/lighthouse-stack-packs/packs/wix.js | unused-javascript": {
3078
+ "message": "R̂év̂íêẃ âńŷ t́ĥír̂d́-p̂ár̂t́ŷ ćôd́ê ýôú'v̂é âd́d̂éd̂ t́ô ýôúr̂ śît́ê ín̂ t́ĥé `Custom Code` t̂áb̂ óf̂ ýôúr̂ śît́ê'ś d̂áŝh́b̂óâŕd̂ án̂d́ ôńl̂ý k̂éêṕ t̂h́ê śêŕv̂íĉéŝ t́ĥát̂ ár̂é n̂éĉéŝśâŕŷ t́ô ýôúr̂ śît́ê. [F́îńd̂ óût́ m̂ór̂é](https://support.wix.com/en/article/site-performance-removing-unused-javascript)."
3079
+ },
3065
3080
  "node_modules/lighthouse-stack-packs/packs/wordpress.js | efficient-animated-content": {
3066
3081
  "message": "Ĉón̂śîd́êŕ ûṕl̂óâd́îńĝ ýôúr̂ ǴÎF́ t̂ó â śêŕv̂íĉé ŵh́îćĥ ẃîĺl̂ ḿâḱê ít̂ áv̂áîĺâb́l̂é t̂ó êḿb̂éd̂ áŝ án̂ H́T̂ḾL̂5 v́îd́êó."
3067
3082
  },