You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: front_end/models/trace/insights/ImageDelivery.ts
+26-20Lines changed: 26 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -27,28 +27,24 @@ export const UIStrings = {
27
27
'Reducing the download time of images can improve the perceived load time of the page and LCP. [Learn more about optimizing image size](https://developer.chrome.com/docs/lighthouse/performance/uses-optimized-images/)',
28
28
/**
29
29
* @description Message displayed in a chip explaining that an image file size is large for the # of pixels it has and recommends possible adjustments to improve the image size.
30
-
* @example {50 MB} PH1
31
30
*/
32
-
useCompression: 'Increasing the image compression factor could improve this image\'s download size. (Est {PH1})',
31
+
useCompression: 'Increasing the image compression factor could improve this image\'s download size.',
33
32
/**
34
33
* @description Message displayed in a chip explaining that an image file size is large for the # of pixels it has and recommends possible adjustments to improve the image size.
35
-
* @example {50 MB} PH1
36
34
*/
37
35
useModernFormat:
38
-
'Using a modern image format (WebP, AVIF) or increasing the image compression could improve this image\'s download size. (Est {PH1})',
36
+
'Using a modern image format (WebP, AVIF) or increasing the image compression could improve this image\'s download size.',
39
37
/**
40
38
* @description Message displayed in a chip advising the user to use video formats instead of GIFs because videos generally have smaller file sizes.
41
-
* @example {50 MB} PH1
42
39
*/
43
-
useVideoFormat: 'Using video formats instead of GIFs can improve the download size of animated content. (Est {PH1})',
40
+
useVideoFormat: 'Using video formats instead of GIFs can improve the download size of animated content.',
44
41
/**
45
42
* @description Message displayed in a chip explaining that an image was displayed on the page with dimensions much smaller than the image file dimensions.
46
-
* @example {50 MB} PH1
47
-
* @example {1000x500} PH2
48
-
* @example {100x50} PH3
43
+
* @example {1000x500} PH1
44
+
* @example {100x50} PH2
49
45
*/
50
46
useResponsiveSize:
51
-
'This image file is larger than it needs to be ({PH2}) for its displayed dimensions ({PH3}). Use responsive images to reduce the image download size. (Est {PH1})',
47
+
'This image file is larger than it needs to be ({PH1}) for its displayed dimensions ({PH2}). Use responsive images to reduce the image download size.',
52
48
/**
53
49
* @description Column header for a table column containing network requests for images which can improve their file size (e.g. use a different format, increase compression, etc).
54
50
*/
@@ -62,6 +58,12 @@ export const UIStrings = {
62
58
* @description Text status indicating that no potential optimizations were found for any image file
63
59
*/
64
60
noOptimizableImages: 'No optimizable images',
61
+
/**
62
+
* @description Text describing the estimated number of bytes that an image file optimization can save. This text is appended to another block of text describing the image optimization in more detail. "Est" means "Estimated".
63
+
* @example {Use the correct image dimensions to reduce the image file size.} PH1
0 commit comments