lighthouse 12.5.1 → 12.6.0
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.
- package/cli/run.js +1 -1
- package/cli/test/smokehouse/config/exclusions.js +2 -0
- package/cli/test/smokehouse/lib/concurrent-mapper.d.ts +3 -3
- package/core/audits/audit.d.ts +1 -1
- package/core/audits/audit.js +3 -2
- package/core/audits/bootup-time.d.ts +1 -1
- package/core/audits/bootup-time.js +3 -3
- package/core/audits/byte-efficiency/byte-efficiency-audit.js +1 -1
- package/core/audits/byte-efficiency/duplicated-javascript.js +1 -1
- package/core/audits/byte-efficiency/efficient-animated-content.js +1 -1
- package/core/audits/byte-efficiency/legacy-javascript.js +2 -3
- package/core/audits/byte-efficiency/modern-image-formats.js +1 -1
- package/core/audits/byte-efficiency/offscreen-images.js +4 -4
- package/core/audits/byte-efficiency/render-blocking-resources.js +4 -4
- package/core/audits/byte-efficiency/total-byte-weight.d.ts +1 -1
- package/core/audits/byte-efficiency/total-byte-weight.js +2 -2
- package/core/audits/byte-efficiency/unminified-css.js +1 -1
- package/core/audits/byte-efficiency/unminified-javascript.js +1 -1
- package/core/audits/byte-efficiency/unused-css-rules.js +2 -2
- package/core/audits/byte-efficiency/unused-javascript.js +1 -1
- package/core/audits/byte-efficiency/uses-long-cache-ttl.d.ts +1 -1
- package/core/audits/byte-efficiency/uses-long-cache-ttl.js +2 -2
- package/core/audits/byte-efficiency/uses-optimized-images.js +2 -2
- package/core/audits/byte-efficiency/uses-responsive-images.d.ts +1 -1
- package/core/audits/byte-efficiency/uses-responsive-images.js +1 -1
- package/core/audits/byte-efficiency/uses-text-compression.js +1 -1
- package/core/audits/clickjacking-mitigation.js +2 -2
- package/core/audits/critical-request-chains.js +3 -3
- package/core/audits/csp-xss.js +2 -2
- package/core/audits/diagnostics.js +3 -3
- package/core/audits/dobetterweb/charset.js +2 -2
- package/core/audits/dobetterweb/doctype.js +2 -2
- package/core/audits/dobetterweb/dom-size.d.ts +1 -1
- package/core/audits/dobetterweb/dom-size.js +3 -3
- package/core/audits/dobetterweb/uses-http2.js +2 -2
- package/core/audits/final-screenshot.js +2 -2
- package/core/audits/font-display.js +2 -2
- package/core/audits/has-hsts.js +2 -2
- package/core/audits/image-size-responsive.d.ts +3 -2
- package/core/audits/image-size-responsive.js +30 -4
- package/core/audits/insights/{use-cache-insight.d.ts → cache-insight.d.ts} +3 -3
- package/core/audits/insights/{use-cache-insight.js → cache-insight.js} +15 -13
- package/core/audits/insights/cls-culprits-insight.js +3 -3
- package/core/audits/insights/document-latency-insight.js +1 -1
- package/core/audits/insights/dom-size-insight.js +1 -1
- package/core/audits/insights/duplicated-javascript-insight.d.ts +13 -0
- package/core/audits/insights/duplicated-javascript-insight.js +36 -9
- package/core/audits/insights/font-display-insight.js +1 -1
- package/core/audits/insights/forced-reflow-insight.js +1 -1
- package/core/audits/insights/image-delivery-insight.js +1 -1
- package/core/audits/insights/insight-audit.d.ts +11 -9
- package/core/audits/insights/insight-audit.js +37 -35
- package/core/audits/insights/interaction-to-next-paint-insight.js +3 -6
- package/core/audits/insights/lcp-discovery-insight.js +6 -3
- package/core/audits/insights/lcp-phases-insight.js +3 -6
- package/core/audits/insights/legacy-javascript-insight.d.ts +23 -0
- package/core/audits/insights/legacy-javascript-insight.js +101 -0
- package/core/audits/insights/modern-http-insight.d.ts +11 -0
- package/core/audits/insights/modern-http-insight.js +53 -0
- package/core/audits/insights/network-dependency-tree-insight.d.ts +5 -0
- package/core/audits/insights/network-dependency-tree-insight.js +35 -13
- package/core/audits/insights/render-blocking-insight.js +1 -1
- package/core/audits/insights/slow-css-selector-insight.js +3 -1
- package/core/audits/insights/third-parties-insight.d.ts +3 -3
- package/core/audits/insights/third-parties-insight.js +28 -23
- package/core/audits/insights/viewport-insight.js +1 -1
- package/core/audits/is-on-https.js +2 -2
- package/core/audits/largest-contentful-paint-element.js +3 -3
- package/core/audits/layout-shifts.js +4 -4
- package/core/audits/lcp-lazy-loaded.js +1 -1
- package/core/audits/long-tasks.d.ts +1 -1
- package/core/audits/long-tasks.js +3 -3
- package/core/audits/main-thread-tasks.js +2 -2
- package/core/audits/mainthread-work-breakdown.d.ts +1 -1
- package/core/audits/mainthread-work-breakdown.js +2 -2
- package/core/audits/manual/manual-audit.d.ts +1 -1
- package/core/audits/metrics/cumulative-layout-shift.d.ts +1 -1
- package/core/audits/metrics/cumulative-layout-shift.js +2 -2
- package/core/audits/metrics/first-contentful-paint.js +3 -3
- package/core/audits/metrics/first-meaningful-paint.js +1 -1
- package/core/audits/metrics/interaction-to-next-paint.d.ts +1 -1
- package/core/audits/metrics/interaction-to-next-paint.js +2 -2
- package/core/audits/metrics/interactive.js +3 -3
- package/core/audits/metrics/largest-contentful-paint.js +3 -3
- package/core/audits/metrics/max-potential-fid.d.ts +1 -1
- package/core/audits/metrics/max-potential-fid.js +3 -3
- package/core/audits/metrics/speed-index.js +3 -3
- package/core/audits/metrics/total-blocking-time.js +3 -3
- package/core/audits/metrics.js +3 -3
- package/core/audits/network-requests.js +2 -2
- package/core/audits/network-rtt.js +2 -2
- package/core/audits/network-server-latency.js +2 -2
- package/core/audits/origin-isolation.js +2 -2
- package/core/audits/predictive-perf.js +3 -3
- package/core/audits/preload-fonts.js +2 -2
- package/core/audits/prioritize-lcp-image.js +3 -3
- package/core/audits/redirects.js +3 -3
- package/core/audits/resource-summary.js +2 -2
- package/core/audits/screenshot-thumbnails.js +2 -2
- package/core/audits/script-treemap-data.js +32 -2
- package/core/audits/seo/canonical.js +2 -2
- package/core/audits/seo/http-status-code.js +2 -2
- package/core/audits/seo/is-crawlable.js +2 -2
- package/core/audits/server-response-time.js +2 -2
- package/core/audits/third-party-cookies.js +1 -1
- package/core/audits/third-party-facades.js +2 -2
- package/core/audits/third-party-summary.js +2 -2
- package/core/audits/user-timings.d.ts +1 -1
- package/core/audits/user-timings.js +2 -2
- package/core/audits/uses-rel-preconnect.js +3 -3
- package/core/audits/uses-rel-preload.js +3 -3
- package/core/audits/valid-source-maps.js +2 -2
- package/core/audits/work-during-interaction.js +3 -3
- package/core/computed/critical-request-chains.d.ts +1 -1
- package/core/computed/document-urls.d.ts +4 -1
- package/core/computed/entity-classification.d.ts +1 -1
- package/core/computed/image-records.d.ts +1 -1
- package/core/computed/js-bundles.d.ts +1 -1
- package/core/computed/lcp-image-record.d.ts +1 -1
- package/core/computed/load-simulator.d.ts +1 -1
- package/core/computed/main-resource.d.ts +1 -1
- package/core/computed/main-thread-tasks.d.ts +1 -1
- package/core/computed/metrics/cumulative-layout-shift.d.ts +10 -1
- package/core/computed/metrics/first-contentful-paint-all-frames.d.ts +1 -1
- package/core/computed/metrics/first-contentful-paint.d.ts +1 -1
- package/core/computed/metrics/interactive.d.ts +1 -1
- package/core/computed/metrics/lantern-first-contentful-paint.d.ts +1 -1
- package/core/computed/metrics/lantern-interactive.d.ts +1 -1
- package/core/computed/metrics/lantern-largest-contentful-paint.d.ts +1 -1
- package/core/computed/metrics/lantern-max-potential-fid.d.ts +1 -1
- package/core/computed/metrics/lantern-speed-index.d.ts +1 -1
- package/core/computed/metrics/lantern-total-blocking-time.d.ts +1 -1
- package/core/computed/metrics/largest-contentful-paint-all-frames.d.ts +1 -1
- package/core/computed/metrics/largest-contentful-paint.d.ts +1 -1
- package/core/computed/metrics/lcp-breakdown.d.ts +5 -1
- package/core/computed/metrics/max-potential-fid.d.ts +1 -1
- package/core/computed/metrics/responsiveness.d.ts +1 -1
- package/core/computed/metrics/speed-index.d.ts +1 -1
- package/core/computed/metrics/time-to-first-byte.d.ts +1 -1
- package/core/computed/metrics/timing-summary.d.ts +4 -1
- package/core/computed/metrics/total-blocking-time.d.ts +1 -1
- package/core/computed/module-duplication.d.ts +5 -1
- package/core/computed/navigation-insights.d.ts +1 -1
- package/core/computed/network-analysis.d.ts +1 -1
- package/core/computed/network-records.d.ts +1 -1
- package/core/computed/page-dependency-graph.d.ts +1 -1
- package/core/computed/processed-navigation.d.ts +1 -1
- package/core/computed/processed-trace.d.ts +1 -1
- package/core/computed/resource-summary.d.ts +1 -1
- package/core/computed/screenshots.d.ts +4 -1
- package/core/computed/speedline.d.ts +1 -1
- package/core/computed/tbt-impact-tasks.d.ts +1 -1
- package/core/computed/trace-engine-result.d.ts +1 -1
- package/core/computed/unused-css.d.ts +1 -1
- package/core/computed/unused-javascript-summary.d.ts +1 -1
- package/core/computed/user-timings.d.ts +1 -1
- package/core/computed/viewport-meta.d.ts +1 -1
- package/core/config/default-config.js +11 -6
- package/core/config/experimental-config.js +3 -2
- package/core/gather/driver/network-monitor.d.ts +1 -1
- package/core/gather/driver/network.d.ts +1 -1
- package/core/gather/driver.d.ts +1 -1
- package/core/gather/gatherers/devtools-log.d.ts +1 -1
- package/core/gather/gatherers/dobetterweb/optimized-images.js +3 -10
- package/core/gather/gatherers/trace-elements.d.ts +3 -4
- package/core/gather/gatherers/trace-elements.js +6 -8
- package/core/gather/gatherers/trace.js +0 -3
- package/core/gather/navigation-runner.d.ts +1 -1
- package/core/gather/snapshot-runner.d.ts +1 -1
- package/core/gather/timespan-runner.d.ts +1 -1
- package/core/index.d.ts +6 -6
- package/core/lib/asset-saver.d.ts +1 -1
- package/core/lib/asset-saver.js +1 -1
- package/core/lib/bf-cache-strings.js +2 -0
- package/core/lib/deprecations-strings.d.ts +71 -76
- package/core/lib/deprecations-strings.js +22 -25
- package/core/lib/i18n/README.md +1 -1
- package/core/lib/i18n/i18n.d.ts +1 -1
- package/core/lib/i18n/i18n.js +4 -4
- package/core/lib/legacy-javascript/legacy-javascript.js +4 -11
- package/core/lib/legacy-javascript/package.json +14 -0
- package/core/lib/page-functions.d.ts +1 -1
- package/core/lib/stack-packs.js +1 -1
- package/core/lib/tracehouse/cpu-profile-model.d.ts +1 -1
- package/core/lib/tracehouse/main-thread-tasks.d.ts +3 -3
- package/core/lib/tracehouse/main-thread-tasks.js +8 -0
- package/core/lib/tracehouse/trace-processor.d.ts +1 -1
- package/core/lib/traces/metric-trace-events.d.ts +2 -2
- package/core/runner.js +2 -1
- package/core/scoring.d.ts +539 -3
- package/core/user-flow.d.ts +6 -6
- package/dist/report/bundle.esm.js +89 -19
- package/dist/report/flow.js +92 -22
- package/dist/report/standalone.js +89 -19
- package/flow-report/src/i18n/i18n.d.ts +6 -2
- package/package.json +17 -16
- package/readme.md +1 -1
- package/report/README.md +1 -1
- package/report/assets/styles.css +76 -9
- package/report/assets/templates.html +3 -1
- package/report/clients/standalone.js +6 -4
- package/report/renderer/category-renderer.d.ts +2 -2
- package/report/renderer/components.js +3 -9
- package/report/renderer/crc-details-renderer.d.ts +13 -31
- package/report/renderer/crc-details-renderer.js +49 -47
- package/report/renderer/details-renderer.d.ts +1 -1
- package/report/renderer/details-renderer.js +6 -0
- package/report/renderer/dom.js +7 -0
- package/report/renderer/features-util.d.ts +1 -1
- package/report/renderer/performance-category-renderer.d.ts +28 -2
- package/report/renderer/performance-category-renderer.js +121 -3
- package/report/renderer/report-utils.d.ts +3 -1
- package/report/renderer/report-utils.js +11 -4
- package/report/renderer/topbar-features.js +1 -9
- package/shared/localization/format.d.ts +1 -1
- package/shared/localization/locales/ar-XB.json +66 -6
- package/shared/localization/locales/ar.json +66 -6
- package/shared/localization/locales/bg.json +66 -6
- package/shared/localization/locales/ca.json +66 -6
- package/shared/localization/locales/cs.json +66 -6
- package/shared/localization/locales/da.json +66 -6
- package/shared/localization/locales/de.json +66 -6
- package/shared/localization/locales/el.json +66 -6
- package/shared/localization/locales/en-GB.json +66 -6
- package/shared/localization/locales/en-US.json +87 -36
- package/shared/localization/locales/en-XA.json +0 -6
- package/shared/localization/locales/en-XL.json +87 -36
- package/shared/localization/locales/es-419.json +66 -6
- package/shared/localization/locales/es.json +67 -7
- package/shared/localization/locales/fi.json +66 -6
- package/shared/localization/locales/fil.json +66 -6
- package/shared/localization/locales/fr.json +66 -6
- package/shared/localization/locales/he.json +66 -6
- package/shared/localization/locales/hi.json +66 -6
- package/shared/localization/locales/hr.json +66 -6
- package/shared/localization/locales/hu.json +66 -6
- package/shared/localization/locales/id.json +66 -6
- package/shared/localization/locales/it.json +67 -7
- package/shared/localization/locales/ja.json +66 -6
- package/shared/localization/locales/ko.json +66 -6
- package/shared/localization/locales/lt.json +66 -6
- package/shared/localization/locales/lv.json +66 -6
- package/shared/localization/locales/nl.json +66 -6
- package/shared/localization/locales/no.json +66 -6
- package/shared/localization/locales/pl.json +66 -6
- package/shared/localization/locales/pt-PT.json +66 -6
- package/shared/localization/locales/pt.json +67 -7
- package/shared/localization/locales/ro.json +66 -6
- package/shared/localization/locales/ru.json +66 -6
- package/shared/localization/locales/sk.json +66 -6
- package/shared/localization/locales/sl.json +66 -6
- package/shared/localization/locales/sr-Latn.json +66 -6
- package/shared/localization/locales/sr.json +66 -6
- package/shared/localization/locales/sv.json +66 -6
- package/shared/localization/locales/ta.json +69 -9
- package/shared/localization/locales/te.json +66 -6
- package/shared/localization/locales/th.json +66 -6
- package/shared/localization/locales/tr.json +66 -6
- package/shared/localization/locales/uk.json +66 -6
- package/shared/localization/locales/vi.json +66 -6
- package/shared/localization/locales/zh-HK.json +67 -7
- package/shared/localization/locales/zh-TW.json +67 -7
- package/shared/localization/locales/zh.json +66 -6
- package/tsconfig-base.json +1 -1
- package/tsconfig.json +1 -0
- package/types/artifacts.d.ts +0 -2
- package/types/internal/node.d.ts +0 -16
- package/types/lhr/audit-details.d.ts +33 -1
- package/types/lhr/treemap.d.ts +5 -1
|
@@ -60,7 +60,7 @@ class WorkDuringInteraction extends Audit {
|
|
|
60
60
|
scoreDisplayMode: Audit.SCORING_MODES.METRIC_SAVINGS,
|
|
61
61
|
supportedModes: ['timespan'],
|
|
62
62
|
guidanceLevel: 1,
|
|
63
|
-
requiredArtifacts: ['
|
|
63
|
+
requiredArtifacts: ['Trace', 'DevtoolsLog', 'TraceElements'],
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
66
|
|
|
@@ -231,7 +231,7 @@ class WorkDuringInteraction extends Audit {
|
|
|
231
231
|
};
|
|
232
232
|
}
|
|
233
233
|
|
|
234
|
-
const trace = artifacts.
|
|
234
|
+
const trace = artifacts.Trace;
|
|
235
235
|
const metricData = {trace, settings};
|
|
236
236
|
const interactionEvent = await Responsiveness.request(metricData, context);
|
|
237
237
|
// If no interaction, diagnostic audit is n/a.
|
|
@@ -248,7 +248,7 @@ class WorkDuringInteraction extends Audit {
|
|
|
248
248
|
const traceElementItem = WorkDuringInteraction.getTraceElementTable(artifacts.TraceElements);
|
|
249
249
|
if (traceElementItem) auditDetailsItems.push(traceElementItem);
|
|
250
250
|
|
|
251
|
-
const devtoolsLog = artifacts.
|
|
251
|
+
const devtoolsLog = artifacts.DevtoolsLog;
|
|
252
252
|
// Network records will usually be empty for timespans.
|
|
253
253
|
const networkRecords = await NetworkRecords.request(devtoolsLog, context);
|
|
254
254
|
const processedTrace = await ProcessedTrace.request(trace, context);
|
|
@@ -6,7 +6,7 @@ declare const CriticalRequestChainsComputed: typeof CriticalRequestChains & {
|
|
|
6
6
|
devtoolsLog: LH.DevtoolsLog;
|
|
7
7
|
trace: LH.Trace;
|
|
8
8
|
settings: LH.Audit.Context["settings"];
|
|
9
|
-
}, context: LH.Artifacts.ComputedContext) =>
|
|
9
|
+
}, context: LH.Artifacts.ComputedContext) => Promise<import("../index.js").Artifacts.CriticalRequestNode>;
|
|
10
10
|
};
|
|
11
11
|
declare class CriticalRequestChains {
|
|
12
12
|
/**
|
|
@@ -3,7 +3,10 @@ declare const DocumentUrlsComputed: typeof DocumentUrls & {
|
|
|
3
3
|
request: (dependencies: {
|
|
4
4
|
trace: LH.Trace;
|
|
5
5
|
devtoolsLog: LH.DevtoolsLog;
|
|
6
|
-
}, context: LH.Artifacts.ComputedContext) =>
|
|
6
|
+
}, context: LH.Artifacts.ComputedContext) => Promise<{
|
|
7
|
+
requestedUrl: string;
|
|
8
|
+
mainDocumentUrl: string;
|
|
9
|
+
}>;
|
|
7
10
|
};
|
|
8
11
|
/**
|
|
9
12
|
* @fileoverview Compute the navigation specific URLs `requestedUrl` and `mainDocumentUrl` in situations where
|
|
@@ -4,7 +4,7 @@ declare const EntityClassificationComputed: typeof EntityClassification & {
|
|
|
4
4
|
request: (dependencies: {
|
|
5
5
|
URL: LH.Artifacts["URL"];
|
|
6
6
|
devtoolsLog: LH.DevtoolsLog;
|
|
7
|
-
}, context: LH.Artifacts.ComputedContext) =>
|
|
7
|
+
}, context: LH.Artifacts.ComputedContext) => Promise<import("../index.js").Artifacts.EntityClassification>;
|
|
8
8
|
};
|
|
9
9
|
/** @typedef {Map<string, LH.Artifacts.Entity>} EntityCache */
|
|
10
10
|
declare class EntityClassification {
|
|
@@ -3,7 +3,7 @@ declare const ImageRecordsComputed: typeof ImageRecords & {
|
|
|
3
3
|
request: (dependencies: {
|
|
4
4
|
ImageElements: LH.Artifacts["ImageElements"];
|
|
5
5
|
networkRecords: LH.Artifacts.NetworkRequest[];
|
|
6
|
-
}, context: LH.Artifacts.ComputedContext) =>
|
|
6
|
+
}, context: LH.Artifacts.ComputedContext) => Promise<import("../index.js").Artifacts.ImageElementRecord[]>;
|
|
7
7
|
};
|
|
8
8
|
declare class ImageRecords {
|
|
9
9
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { JSBundlesComputed as JSBundles };
|
|
2
2
|
declare const JSBundlesComputed: typeof JSBundles & {
|
|
3
|
-
request: (dependencies: Pick<import("../index.js").Artifacts, "Scripts" | "SourceMaps">, context: LH.Artifacts.ComputedContext) =>
|
|
3
|
+
request: (dependencies: Pick<import("../index.js").Artifacts, "Scripts" | "SourceMaps">, context: LH.Artifacts.ComputedContext) => Promise<import("../index.js").Artifacts.Bundle[]>;
|
|
4
4
|
};
|
|
5
5
|
declare class JSBundles {
|
|
6
6
|
/**
|
|
@@ -3,7 +3,7 @@ declare const LCPImageRecordComputed: typeof LCPImageRecord & {
|
|
|
3
3
|
request: (dependencies: {
|
|
4
4
|
trace: LH.Trace;
|
|
5
5
|
devtoolsLog: LH.DevtoolsLog;
|
|
6
|
-
}, context: LH.Artifacts.ComputedContext) =>
|
|
6
|
+
}, context: LH.Artifacts.ComputedContext) => Promise<import("../lib/network-request.js").NetworkRequest | undefined>;
|
|
7
7
|
};
|
|
8
8
|
/**
|
|
9
9
|
* @fileoverview Match the LCP event with the paint event to get the request of the image actually painted.
|
|
@@ -3,7 +3,7 @@ declare const LoadSimulatorComputed: typeof LoadSimulator & {
|
|
|
3
3
|
request: (dependencies: {
|
|
4
4
|
devtoolsLog: LH.DevtoolsLog;
|
|
5
5
|
settings: LH.Audit.Context["settings"];
|
|
6
|
-
}, context: LH.Artifacts.ComputedContext) =>
|
|
6
|
+
}, context: LH.Artifacts.ComputedContext) => Promise<import("../../types/gatherer.js").default.Simulation.Simulator>;
|
|
7
7
|
};
|
|
8
8
|
declare class LoadSimulator {
|
|
9
9
|
/**
|
|
@@ -3,7 +3,7 @@ declare const MainResourceComputed: typeof MainResource & {
|
|
|
3
3
|
request: (dependencies: {
|
|
4
4
|
URL: LH.Artifacts["URL"];
|
|
5
5
|
devtoolsLog: LH.DevtoolsLog;
|
|
6
|
-
}, context: LH.Artifacts.ComputedContext) =>
|
|
6
|
+
}, context: LH.Artifacts.ComputedContext) => Promise<import("../lib/network-request.js").NetworkRequest>;
|
|
7
7
|
};
|
|
8
8
|
/**
|
|
9
9
|
* @fileoverview This artifact identifies the main resource on the page. Current solution assumes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { MainThreadTasksComputed as MainThreadTasks };
|
|
2
2
|
declare const MainThreadTasksComputed: typeof MainThreadTasks & {
|
|
3
|
-
request: (dependencies: import("../index.js").Trace, context: LH.Artifacts.ComputedContext) =>
|
|
3
|
+
request: (dependencies: import("../index.js").Trace, context: LH.Artifacts.ComputedContext) => Promise<import("../lib/tracehouse/main-thread-tasks.js").TaskNode[]>;
|
|
4
4
|
};
|
|
5
5
|
declare class MainThreadTasks {
|
|
6
6
|
/**
|
|
@@ -7,7 +7,16 @@ export type LayoutShiftEvent = {
|
|
|
7
7
|
event: LH.TraceEvent;
|
|
8
8
|
};
|
|
9
9
|
declare const CumulativeLayoutShiftComputed: typeof CumulativeLayoutShift & {
|
|
10
|
-
request: (dependencies: import("../../index.js").Trace, context: LH.Artifacts.ComputedContext) =>
|
|
10
|
+
request: (dependencies: import("../../index.js").Trace, context: LH.Artifacts.ComputedContext) => Promise<{
|
|
11
|
+
cumulativeLayoutShift: number;
|
|
12
|
+
cumulativeLayoutShiftMainFrame: number;
|
|
13
|
+
impactByNodeId: Map<number, number>;
|
|
14
|
+
newEngineResult?: {
|
|
15
|
+
cumulativeLayoutShift: number;
|
|
16
|
+
cumulativeLayoutShiftMainFrame: number;
|
|
17
|
+
};
|
|
18
|
+
newEngineResultDiffered: boolean;
|
|
19
|
+
}>;
|
|
11
20
|
};
|
|
12
21
|
declare class CumulativeLayoutShift {
|
|
13
22
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { FirstContentfulPaintAllFramesComputed as FirstContentfulPaintAllFrames };
|
|
2
2
|
declare const FirstContentfulPaintAllFramesComputed: typeof FirstContentfulPaintAllFrames & {
|
|
3
|
-
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) =>
|
|
3
|
+
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) => Promise<import("../../index.js").Artifacts.Metric | import("../../index.js").Artifacts.LanternMetric>;
|
|
4
4
|
};
|
|
5
5
|
declare class FirstContentfulPaintAllFrames extends NavigationMetric {
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { FirstContentfulPaintComputed as FirstContentfulPaint };
|
|
2
2
|
declare const FirstContentfulPaintComputed: typeof FirstContentfulPaint & {
|
|
3
|
-
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) =>
|
|
3
|
+
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) => Promise<import("../../index.js").Artifacts.Metric | import("../../index.js").Artifacts.LanternMetric>;
|
|
4
4
|
};
|
|
5
5
|
declare class FirstContentfulPaint extends NavigationMetric {
|
|
6
6
|
/**
|
|
@@ -10,7 +10,7 @@ export type TimePeriod = {
|
|
|
10
10
|
end: number;
|
|
11
11
|
};
|
|
12
12
|
declare const InteractiveComputed: typeof Interactive & {
|
|
13
|
-
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) =>
|
|
13
|
+
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) => Promise<import("../../index.js").Artifacts.Metric | import("../../index.js").Artifacts.LanternMetric>;
|
|
14
14
|
};
|
|
15
15
|
/**
|
|
16
16
|
* @fileoverview Computes "Time To Interactive", the time at which the page has loaded critical
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { LanternFirstContentfulPaintComputed as LanternFirstContentfulPaint };
|
|
2
2
|
declare const LanternFirstContentfulPaintComputed: typeof LanternFirstContentfulPaint & {
|
|
3
|
-
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) =>
|
|
3
|
+
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) => Promise<import("../../index.js").Artifacts.LanternMetric>;
|
|
4
4
|
};
|
|
5
5
|
declare class LanternFirstContentfulPaint extends Lantern.Metrics.FirstContentfulPaint {
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { LanternInteractiveComputed as LanternInteractive };
|
|
2
2
|
declare const LanternInteractiveComputed: typeof LanternInteractive & {
|
|
3
|
-
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) =>
|
|
3
|
+
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) => Promise<import("../../index.js").Artifacts.LanternMetric>;
|
|
4
4
|
};
|
|
5
5
|
declare class LanternInteractive extends Lantern.Metrics.Interactive {
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { LanternLargestContentfulPaintComputed as LanternLargestContentfulPaint };
|
|
2
2
|
declare const LanternLargestContentfulPaintComputed: typeof LanternLargestContentfulPaint & {
|
|
3
|
-
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) =>
|
|
3
|
+
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) => Promise<import("../../index.js").Artifacts.LanternMetric>;
|
|
4
4
|
};
|
|
5
5
|
declare class LanternLargestContentfulPaint extends Lantern.Metrics.LargestContentfulPaint {
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { LanternMaxPotentialFIDComputed as LanternMaxPotentialFID };
|
|
2
2
|
declare const LanternMaxPotentialFIDComputed: typeof LanternMaxPotentialFID & {
|
|
3
|
-
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) =>
|
|
3
|
+
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) => Promise<import("../../index.js").Artifacts.LanternMetric>;
|
|
4
4
|
};
|
|
5
5
|
declare class LanternMaxPotentialFID extends Lantern.Metrics.MaxPotentialFID {
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { LanternSpeedIndexComputed as LanternSpeedIndex };
|
|
2
2
|
declare const LanternSpeedIndexComputed: typeof LanternSpeedIndex & {
|
|
3
|
-
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) =>
|
|
3
|
+
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) => Promise<import("../../index.js").Artifacts.LanternMetric>;
|
|
4
4
|
};
|
|
5
5
|
declare class LanternSpeedIndex extends Lantern.Metrics.SpeedIndex {
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { LanternTotalBlockingTimeComputed as LanternTotalBlockingTime };
|
|
2
2
|
declare const LanternTotalBlockingTimeComputed: typeof LanternTotalBlockingTime & {
|
|
3
|
-
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) =>
|
|
3
|
+
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) => Promise<import("../../index.js").Artifacts.LanternMetric>;
|
|
4
4
|
};
|
|
5
5
|
declare class LanternTotalBlockingTime extends Lantern.Metrics.TotalBlockingTime {
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { LargestContentfulPaintAllFramesComputed as LargestContentfulPaintAllFrames };
|
|
2
2
|
declare const LargestContentfulPaintAllFramesComputed: typeof LargestContentfulPaintAllFrames & {
|
|
3
|
-
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) =>
|
|
3
|
+
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) => Promise<import("../../index.js").Artifacts.Metric | import("../../index.js").Artifacts.LanternMetric>;
|
|
4
4
|
};
|
|
5
5
|
declare class LargestContentfulPaintAllFrames extends NavigationMetric {
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { LargestContentfulPaintComputed as LargestContentfulPaint };
|
|
2
2
|
declare const LargestContentfulPaintComputed: typeof LargestContentfulPaint & {
|
|
3
|
-
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) =>
|
|
3
|
+
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) => Promise<import("../../index.js").Artifacts.Metric | import("../../index.js").Artifacts.LanternMetric>;
|
|
4
4
|
};
|
|
5
5
|
declare class LargestContentfulPaint extends NavigationMetric {
|
|
6
6
|
/**
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
export { LCPBreakdownComputed as LCPBreakdown };
|
|
2
2
|
declare const LCPBreakdownComputed: typeof LCPBreakdown & {
|
|
3
|
-
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) =>
|
|
3
|
+
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) => Promise<{
|
|
4
|
+
ttfb: number;
|
|
5
|
+
loadStart?: number;
|
|
6
|
+
loadEnd?: number;
|
|
7
|
+
}>;
|
|
4
8
|
};
|
|
5
9
|
declare class LCPBreakdown {
|
|
6
10
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { MaxPotentialFIDComputed as MaxPotentialFID };
|
|
2
2
|
declare const MaxPotentialFIDComputed: typeof MaxPotentialFID & {
|
|
3
|
-
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) =>
|
|
3
|
+
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) => Promise<import("../../index.js").Artifacts.Metric | import("../../index.js").Artifacts.LanternMetric>;
|
|
4
4
|
};
|
|
5
5
|
declare class MaxPotentialFID extends NavigationMetric {
|
|
6
6
|
/**
|
|
@@ -42,7 +42,7 @@ declare const ResponsivenessComputed: typeof Responsiveness & {
|
|
|
42
42
|
request: (dependencies: {
|
|
43
43
|
trace: LH.Trace;
|
|
44
44
|
settings: LH.Audit.Context["settings"];
|
|
45
|
-
}, context: LH.Artifacts.ComputedContext) =>
|
|
45
|
+
}, context: LH.Artifacts.ComputedContext) => Promise<EventTimingEvent | null>;
|
|
46
46
|
};
|
|
47
47
|
declare class Responsiveness {
|
|
48
48
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { SpeedIndexComputed as SpeedIndex };
|
|
2
2
|
declare const SpeedIndexComputed: typeof SpeedIndex & {
|
|
3
|
-
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) =>
|
|
3
|
+
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) => Promise<import("../../index.js").Artifacts.Metric | import("../../index.js").Artifacts.LanternMetric>;
|
|
4
4
|
};
|
|
5
5
|
declare class SpeedIndex extends NavigationMetric {
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { TimeToFirstByteComputed as TimeToFirstByte };
|
|
2
2
|
declare const TimeToFirstByteComputed: typeof TimeToFirstByte & {
|
|
3
|
-
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) =>
|
|
3
|
+
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) => Promise<import("../../index.js").Artifacts.Metric | import("../../index.js").Artifacts.LanternMetric>;
|
|
4
4
|
};
|
|
5
5
|
declare class TimeToFirstByte extends NavigationMetric {
|
|
6
6
|
/**
|
|
@@ -7,7 +7,10 @@ declare const TimingSummaryComputed: typeof TimingSummary & {
|
|
|
7
7
|
settings: LH.Util.ImmutableObject<LH.Config.Settings>;
|
|
8
8
|
URL: LH.Artifacts["URL"];
|
|
9
9
|
SourceMaps: LH.Artifacts["SourceMaps"];
|
|
10
|
-
}, context: LH.Artifacts.ComputedContext) =>
|
|
10
|
+
}, context: LH.Artifacts.ComputedContext) => Promise<{
|
|
11
|
+
metrics: LH.Artifacts.TimingSummary;
|
|
12
|
+
debugInfo: Record<string, boolean>;
|
|
13
|
+
}>;
|
|
11
14
|
};
|
|
12
15
|
declare class TimingSummary {
|
|
13
16
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { TotalBlockingTimeComputed as TotalBlockingTime };
|
|
2
2
|
declare const TotalBlockingTimeComputed: typeof TotalBlockingTime & {
|
|
3
|
-
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) =>
|
|
3
|
+
request: (dependencies: import("../../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) => Promise<import("../../index.js").Artifacts.Metric | import("../../index.js").Artifacts.LanternMetric>;
|
|
4
4
|
};
|
|
5
5
|
/**
|
|
6
6
|
* @fileoverview This audit determines Total Blocking Time.
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
export { ModuleDuplicationComputed as ModuleDuplication };
|
|
2
2
|
declare const ModuleDuplicationComputed: typeof ModuleDuplication & {
|
|
3
|
-
request: (dependencies: Pick<import("../index.js").Artifacts, "Scripts" | "SourceMaps">, context: LH.Artifacts.ComputedContext) =>
|
|
3
|
+
request: (dependencies: Pick<import("../index.js").Artifacts, "Scripts" | "SourceMaps">, context: LH.Artifacts.ComputedContext) => Promise<Map<string, {
|
|
4
|
+
scriptId: string;
|
|
5
|
+
scriptUrl: string;
|
|
6
|
+
resourceSize: number;
|
|
7
|
+
}[]>>;
|
|
4
8
|
};
|
|
5
9
|
declare class ModuleDuplication {
|
|
6
10
|
/**
|
|
@@ -4,7 +4,7 @@ declare const NavigationInsightsComputed: typeof NavigationInsights & {
|
|
|
4
4
|
trace: LH.Trace;
|
|
5
5
|
settings: LH.Audit.Context["settings"];
|
|
6
6
|
SourceMaps: LH.Artifacts["SourceMaps"];
|
|
7
|
-
}, context: LH.Artifacts.ComputedContext) =>
|
|
7
|
+
}, context: LH.Artifacts.ComputedContext) => Promise<import("@paulirish/trace_engine/models/trace/insights/types.js").InsightSet>;
|
|
8
8
|
};
|
|
9
9
|
/**
|
|
10
10
|
* @fileoverview Gets insights from the shared trace engine for the navigation audited by Lighthouse.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { NetworkAnalysisComputed as NetworkAnalysis };
|
|
2
2
|
declare const NetworkAnalysisComputed: typeof NetworkAnalysis & {
|
|
3
|
-
request: (dependencies: import("../index.js").DevtoolsLog, context: LH.Artifacts.ComputedContext) =>
|
|
3
|
+
request: (dependencies: import("../index.js").DevtoolsLog, context: LH.Artifacts.ComputedContext) => Promise<import("../index.js").Artifacts.NetworkAnalysis>;
|
|
4
4
|
};
|
|
5
5
|
declare class NetworkAnalysis {
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { NetworkRecordsComputed as NetworkRecords };
|
|
2
2
|
declare const NetworkRecordsComputed: typeof NetworkRecords & {
|
|
3
|
-
request: (dependencies: LH.DevtoolsLog, context: LH.Artifacts.ComputedContext) =>
|
|
3
|
+
request: (dependencies: LH.DevtoolsLog, context: LH.Artifacts.ComputedContext) => Promise<import("../lib/network-request.js").NetworkRequest[]>;
|
|
4
4
|
};
|
|
5
5
|
declare class NetworkRecords {
|
|
6
6
|
/**
|
|
@@ -7,7 +7,7 @@ declare const PageDependencyGraphComputed: typeof PageDependencyGraph & {
|
|
|
7
7
|
URL: LH.Artifacts["URL"];
|
|
8
8
|
SourceMaps: LH.Artifacts["SourceMaps"];
|
|
9
9
|
fromTrace: boolean;
|
|
10
|
-
}, context: LH.Artifacts.ComputedContext) =>
|
|
10
|
+
}, context: LH.Artifacts.ComputedContext) => Promise<import("../../types/gatherer.js").default.Simulation.GraphNode>;
|
|
11
11
|
};
|
|
12
12
|
declare class PageDependencyGraph {
|
|
13
13
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { ProcessedNavigationComputed as ProcessedNavigation };
|
|
2
2
|
declare const ProcessedNavigationComputed: typeof ProcessedNavigation & {
|
|
3
|
-
request: (dependencies: import("../index.js").Trace | import("../index.js").Artifacts.ProcessedTrace, context: LH.Artifacts.ComputedContext) =>
|
|
3
|
+
request: (dependencies: import("../index.js").Trace | import("../index.js").Artifacts.ProcessedTrace, context: LH.Artifacts.ComputedContext) => Promise<import("../index.js").Artifacts.ProcessedNavigation>;
|
|
4
4
|
};
|
|
5
5
|
declare class ProcessedNavigation {
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { ProcessedTraceComputed as ProcessedTrace };
|
|
2
2
|
declare const ProcessedTraceComputed: typeof ProcessedTrace & {
|
|
3
|
-
request: (dependencies: import("../index.js").Trace, context: LH.Artifacts.ComputedContext) =>
|
|
3
|
+
request: (dependencies: import("../index.js").Trace, context: LH.Artifacts.ComputedContext) => Promise<import("../index.js").Artifacts.ProcessedTrace>;
|
|
4
4
|
};
|
|
5
5
|
declare class ProcessedTrace {
|
|
6
6
|
/**
|
|
@@ -9,7 +9,7 @@ declare const ResourceSummaryComputed: typeof ResourceSummary & {
|
|
|
9
9
|
request: (dependencies: {
|
|
10
10
|
URL: LH.Artifacts["URL"];
|
|
11
11
|
devtoolsLog: LH.DevtoolsLog;
|
|
12
|
-
}, context: LH.Artifacts.ComputedContext) =>
|
|
12
|
+
}, context: LH.Artifacts.ComputedContext) => Promise<Record<ResourceType, ResourceEntry>>;
|
|
13
13
|
};
|
|
14
14
|
/** @typedef {{count: number, resourceSize: number, transferSize: number}} ResourceEntry */
|
|
15
15
|
/** @typedef {'stylesheet'|'image'|'media'|'font'|'script'|'document'|'other'|'third-party'|'total'} ResourceType */
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export { ScreenshotsComputed as Screenshots };
|
|
2
2
|
declare const ScreenshotsComputed: typeof Screenshots & {
|
|
3
|
-
request: (dependencies: import("../index.js").Trace, context: LH.Artifacts.ComputedContext) =>
|
|
3
|
+
request: (dependencies: import("../index.js").Trace, context: LH.Artifacts.ComputedContext) => Promise<{
|
|
4
|
+
timestamp: number;
|
|
5
|
+
datauri: string;
|
|
6
|
+
}[]>;
|
|
4
7
|
};
|
|
5
8
|
declare class Screenshots {
|
|
6
9
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { SpeedlineComputed as Speedline };
|
|
2
2
|
declare const SpeedlineComputed: typeof Speedline & {
|
|
3
|
-
request: (dependencies: import("../index.js").Trace, context: LH.Artifacts.ComputedContext) =>
|
|
3
|
+
request: (dependencies: import("../index.js").Trace, context: LH.Artifacts.ComputedContext) => Promise<import("../index.js").Artifacts.Speedline>;
|
|
4
4
|
};
|
|
5
5
|
declare class Speedline {
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { TBTImpactTasksComputed as TBTImpactTasks };
|
|
2
2
|
declare const TBTImpactTasksComputed: typeof TBTImpactTasks & {
|
|
3
|
-
request: (dependencies: import("../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) =>
|
|
3
|
+
request: (dependencies: import("../index.js").Artifacts.MetricComputationDataInput, context: LH.Artifacts.ComputedContext) => Promise<import("../index.js").Artifacts.TBTImpactTask[]>;
|
|
4
4
|
};
|
|
5
5
|
declare class TBTImpactTasks {
|
|
6
6
|
/**
|
|
@@ -4,7 +4,7 @@ declare const TraceEngineResultComputed: typeof TraceEngineResult & {
|
|
|
4
4
|
trace: LH.Trace;
|
|
5
5
|
settings: LH.Audit.Context["settings"];
|
|
6
6
|
SourceMaps: LH.Artifacts["SourceMaps"];
|
|
7
|
-
}, context: LH.Artifacts.ComputedContext) =>
|
|
7
|
+
}, context: LH.Artifacts.ComputedContext) => Promise<LH.Artifacts.TraceEngineResult>;
|
|
8
8
|
};
|
|
9
9
|
/**
|
|
10
10
|
* @fileoverview Processes trace with the shared trace engine.
|
|
@@ -8,7 +8,7 @@ declare const UnusedCSSComputed: typeof UnusedCSS & {
|
|
|
8
8
|
Stylesheets: LH.Artifacts["Stylesheets"];
|
|
9
9
|
CSSUsage: LH.Artifacts["CSSUsage"];
|
|
10
10
|
devtoolsLog: LH.DevtoolsLog;
|
|
11
|
-
}, context: LH.Artifacts.ComputedContext) =>
|
|
11
|
+
}, context: LH.Artifacts.ComputedContext) => Promise<import("../../types/audit.js").default.ByteEfficiencyItem[]>;
|
|
12
12
|
};
|
|
13
13
|
/** @typedef {LH.Artifacts.CSSStyleSheetInfo & {networkRecord: LH.Artifacts.NetworkRequest, usedRules: Array<LH.Crdp.CSS.RuleUsage>}} StyleSheetInfo */
|
|
14
14
|
declare class UnusedCSS {
|
|
@@ -20,7 +20,7 @@ export type Summary = {
|
|
|
20
20
|
sourcesWastedBytes?: Record<string, number> | undefined;
|
|
21
21
|
};
|
|
22
22
|
declare const UnusedJavascriptSummaryComputed: typeof UnusedJavascriptSummary & {
|
|
23
|
-
request: (dependencies: ComputeInput, context: LH.Artifacts.ComputedContext) =>
|
|
23
|
+
request: (dependencies: ComputeInput, context: LH.Artifacts.ComputedContext) => Promise<Summary>;
|
|
24
24
|
};
|
|
25
25
|
/**
|
|
26
26
|
* @typedef WasteData
|
|
@@ -14,7 +14,7 @@ export type MeasureEvent = {
|
|
|
14
14
|
duration: number;
|
|
15
15
|
};
|
|
16
16
|
declare const UserTimingsComputed: typeof UserTimings & {
|
|
17
|
-
request: (dependencies: import("../index.js").Trace, context: LH.Artifacts.ComputedContext) =>
|
|
17
|
+
request: (dependencies: import("../index.js").Trace, context: LH.Artifacts.ComputedContext) => Promise<(MarkEvent | MeasureEvent)[]>;
|
|
18
18
|
};
|
|
19
19
|
/** @typedef {{name: string, isMark: true, args: LH.TraceEvent['args'], startTime: number}} MarkEvent */
|
|
20
20
|
/** @typedef {{name: string, isMark: false, args: LH.TraceEvent['args'], startTime: number, endTime: number, duration: number}} MeasureEvent */
|
|
@@ -25,7 +25,7 @@ declare const ViewportMetaComputed: typeof ViewportMeta & {
|
|
|
25
25
|
httpEquiv?: string;
|
|
26
26
|
charset?: string;
|
|
27
27
|
node: import("../index.js").Artifacts.NodeDetails;
|
|
28
|
-
}[], context: LH.Artifacts.ComputedContext) =>
|
|
28
|
+
}[], context: LH.Artifacts.ComputedContext) => Promise<ViewportMetaResult>;
|
|
29
29
|
};
|
|
30
30
|
declare class ViewportMeta {
|
|
31
31
|
/**
|
|
@@ -16,7 +16,9 @@ const UIStrings = {
|
|
|
16
16
|
/** Title of the speed metrics section of the Performance category. Within this section are various speed metrics which quantify the pageload performance into values presented in seconds and milliseconds. */
|
|
17
17
|
metricGroupTitle: 'Metrics',
|
|
18
18
|
/** Title of the insights section of the Performance category. Within this section are various insights to give developers tips on how to improve the performance of their page. */
|
|
19
|
-
|
|
19
|
+
insightsGroupTitle: 'Insights',
|
|
20
|
+
/** Description of the insights section of the Performance category. Within this section are various insights to give developers tips on how to improve the performance of their page. */
|
|
21
|
+
insightsGroupDescription: 'These insights are also available in the Chrome DevTools Performance Panel - [record a trace](https://developer.chrome.com/docs/devtools/performance/reference) to view more detailed information.',
|
|
20
22
|
/** Title of an opportunity sub-section of the Performance category. Within this section are audits with imperative titles that suggest actions the user can take to improve the time of the first initial render of the webpage. */
|
|
21
23
|
firstPaintImprovementsGroupTitle: 'First Paint Improvements',
|
|
22
24
|
/** Description of an opportunity sub-section of the Performance category. Within this section are audits with imperative titles that suggest actions the user can take to improve the time of the first initial render of the webpage. */
|
|
@@ -309,6 +311,7 @@ const defaultConfig = {
|
|
|
309
311
|
'seo/manual/structured-data',
|
|
310
312
|
'work-during-interaction',
|
|
311
313
|
'bf-cache',
|
|
314
|
+
'insights/cache-insight',
|
|
312
315
|
'insights/cls-culprits-insight',
|
|
313
316
|
'insights/document-latency-insight',
|
|
314
317
|
'insights/dom-size-insight',
|
|
@@ -319,11 +322,11 @@ const defaultConfig = {
|
|
|
319
322
|
'insights/interaction-to-next-paint-insight',
|
|
320
323
|
'insights/lcp-discovery-insight',
|
|
321
324
|
'insights/lcp-phases-insight',
|
|
325
|
+
'insights/legacy-javascript-insight',
|
|
326
|
+
'insights/modern-http-insight',
|
|
322
327
|
'insights/network-dependency-tree-insight',
|
|
323
328
|
'insights/render-blocking-insight',
|
|
324
|
-
'insights/slow-css-selector-insight',
|
|
325
329
|
'insights/third-parties-insight',
|
|
326
|
-
'insights/use-cache-insight',
|
|
327
330
|
'insights/viewport-insight',
|
|
328
331
|
],
|
|
329
332
|
groups: {
|
|
@@ -331,7 +334,8 @@ const defaultConfig = {
|
|
|
331
334
|
title: str_(UIStrings.metricGroupTitle),
|
|
332
335
|
},
|
|
333
336
|
'insights': {
|
|
334
|
-
title: str_(UIStrings.
|
|
337
|
+
title: str_(UIStrings.insightsGroupTitle),
|
|
338
|
+
description: str_(UIStrings.insightsGroupDescription),
|
|
335
339
|
},
|
|
336
340
|
'diagnostics': {
|
|
337
341
|
title: str_(UIStrings.diagnosticsGroupTitle),
|
|
@@ -409,6 +413,7 @@ const defaultConfig = {
|
|
|
409
413
|
{id: 'interaction-to-next-paint', weight: 0, group: 'metrics', acronym: 'INP'},
|
|
410
414
|
|
|
411
415
|
// Insight audits.
|
|
416
|
+
{id: 'cache-insight', weight: 0, group: 'hidden'},
|
|
412
417
|
{id: 'cls-culprits-insight', weight: 0, group: 'hidden'},
|
|
413
418
|
{id: 'document-latency-insight', weight: 0, group: 'hidden'},
|
|
414
419
|
{id: 'dom-size-insight', weight: 0, group: 'hidden'},
|
|
@@ -419,11 +424,11 @@ const defaultConfig = {
|
|
|
419
424
|
{id: 'interaction-to-next-paint-insight', weight: 0, group: 'hidden'},
|
|
420
425
|
{id: 'lcp-discovery-insight', weight: 0, group: 'hidden'},
|
|
421
426
|
{id: 'lcp-phases-insight', weight: 0, group: 'hidden'},
|
|
427
|
+
{id: 'legacy-javascript-insight', weight: 0, group: 'hidden'},
|
|
428
|
+
{id: 'modern-http-insight', weight: 0, group: 'hidden'},
|
|
422
429
|
{id: 'network-dependency-tree-insight', weight: 0, group: 'hidden'},
|
|
423
430
|
{id: 'render-blocking-insight', weight: 0, group: 'hidden'},
|
|
424
|
-
{id: 'slow-css-selector-insight', weight: 0, group: 'hidden'},
|
|
425
431
|
{id: 'third-parties-insight', weight: 0, group: 'hidden'},
|
|
426
|
-
{id: 'use-cache-insight', weight: 0, group: 'hidden'},
|
|
427
432
|
{id: 'viewport-insight', weight: 0, group: 'hidden'},
|
|
428
433
|
|
|
429
434
|
// These are our "invisible" metrics. Not displayed, but still in the LHR.
|
|
@@ -27,6 +27,7 @@ const config = {
|
|
|
27
27
|
|
|
28
28
|
// TODO: Remove this when insights aren't hidden by default
|
|
29
29
|
// Insight audits.
|
|
30
|
+
{id: 'cache-insight', weight: 0, group: 'insights'},
|
|
30
31
|
{id: 'cls-culprits-insight', weight: 0, group: 'insights'},
|
|
31
32
|
{id: 'document-latency-insight', weight: 0, group: 'insights'},
|
|
32
33
|
{id: 'dom-size-insight', weight: 0, group: 'insights'},
|
|
@@ -37,11 +38,11 @@ const config = {
|
|
|
37
38
|
{id: 'interaction-to-next-paint-insight', weight: 0, group: 'insights'},
|
|
38
39
|
{id: 'lcp-discovery-insight', weight: 0, group: 'insights'},
|
|
39
40
|
{id: 'lcp-phases-insight', weight: 0, group: 'insights'},
|
|
41
|
+
{id: 'legacy-javascript-insight', weight: 0, group: 'insights'},
|
|
42
|
+
{id: 'modern-http-insight', weight: 0, group: 'insights'},
|
|
40
43
|
{id: 'network-dependency-tree-insight', weight: 0, group: 'insights'},
|
|
41
44
|
{id: 'render-blocking-insight', weight: 0, group: 'insights'},
|
|
42
|
-
{id: 'slow-css-selector-insight', weight: 0, group: 'insights'},
|
|
43
45
|
{id: 'third-parties-insight', weight: 0, group: 'insights'},
|
|
44
|
-
{id: 'use-cache-insight', weight: 0, group: 'insights'},
|
|
45
46
|
{id: 'viewport-insight', weight: 0, group: 'insights'},
|
|
46
47
|
],
|
|
47
48
|
},
|
|
@@ -71,7 +71,7 @@ export class NetworkMonitor extends NetworkMonitor_base {
|
|
|
71
71
|
* @param {(request: NetworkRequest) => boolean} [requestFilter]
|
|
72
72
|
* @return {boolean}
|
|
73
73
|
*/
|
|
74
|
-
_isIdlePeriod(allowedRequests: number, requestFilter?: (
|
|
74
|
+
_isIdlePeriod(allowedRequests: number, requestFilter?: (request: NetworkRequest) => boolean): boolean;
|
|
75
75
|
/**
|
|
76
76
|
* Emits the appropriate network status event.
|
|
77
77
|
*/
|
|
@@ -6,5 +6,5 @@
|
|
|
6
6
|
* @param {number} [timeout]
|
|
7
7
|
* @return {Promise<string>}
|
|
8
8
|
*/
|
|
9
|
-
export function fetchResponseBodyFromCache(session: LH.Gatherer.ProtocolSession, requestId: string, timeout?: number
|
|
9
|
+
export function fetchResponseBodyFromCache(session: LH.Gatherer.ProtocolSession, requestId: string, timeout?: number): Promise<string>;
|
|
10
10
|
//# sourceMappingURL=network.d.ts.map
|
package/core/gather/driver.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export class Driver implements LH.Gatherer.Driver {
|
|
|
15
15
|
_fetcher: Fetcher | undefined;
|
|
16
16
|
defaultSession: import("../../types/gatherer.js").default.ProtocolSession;
|
|
17
17
|
/** @return {LH.Gatherer.Driver['executionContext']} */
|
|
18
|
-
get executionContext():
|
|
18
|
+
get executionContext(): LH.Gatherer.Driver["executionContext"];
|
|
19
19
|
get fetcher(): any;
|
|
20
20
|
get targetManager(): any;
|
|
21
21
|
get networkMonitor(): any;
|