lighthouse 12.8.2-dev.20250929 → 12.8.2-dev.20250930
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.
|
@@ -9,7 +9,7 @@ import {UIStrings} from '@paulirish/trace_engine/models/trace/insights/ImageDeli
|
|
|
9
9
|
|
|
10
10
|
import {Audit} from '../audit.js';
|
|
11
11
|
import * as i18n from '../../lib/i18n/i18n.js';
|
|
12
|
-
import {adaptInsightToAuditProduct} from './insight-audit.js';
|
|
12
|
+
import {adaptInsightToAuditProduct, makeNodeItemForNodeId} from './insight-audit.js';
|
|
13
13
|
import {TraceEngineResult} from '../../computed/trace-engine-result.js';
|
|
14
14
|
|
|
15
15
|
// eslint-disable-next-line max-len
|
|
@@ -49,6 +49,7 @@ class ImageDeliveryInsight extends Audit {
|
|
|
49
49
|
/** @type {LH.Audit.Details.Table['headings']} */
|
|
50
50
|
const headings = [
|
|
51
51
|
/* eslint-disable max-len */
|
|
52
|
+
{key: 'node', valueType: 'node', label: ''},
|
|
52
53
|
{key: 'url', valueType: 'url', label: str_(i18n.UIStrings.columnURL), subItemsHeading: {key: 'reason', valueType: 'text'}},
|
|
53
54
|
{key: 'totalBytes', valueType: 'bytes', label: str_(i18n.UIStrings.columnResourceSize)},
|
|
54
55
|
{key: 'wastedBytes', valueType: 'bytes', label: str_(i18n.UIStrings.columnWastedBytes), subItemsHeading: {key: 'wastedBytes', valueType: 'bytes'}},
|
|
@@ -57,6 +58,8 @@ class ImageDeliveryInsight extends Audit {
|
|
|
57
58
|
|
|
58
59
|
/** @type {LH.Audit.Details.Table['items']} */
|
|
59
60
|
const items = insight.optimizableImages.map(image => ({
|
|
61
|
+
node:
|
|
62
|
+
makeNodeItemForNodeId(artifacts.TraceElements, image.largestImagePaint.args.data.nodeId),
|
|
60
63
|
url: image.request.args.data.url,
|
|
61
64
|
totalBytes: image.request.args.data.decodedBodyLength,
|
|
62
65
|
wastedBytes: image.byteSavings,
|
package/package.json
CHANGED