lighthouse 9.5.0-dev.20220907 → 9.5.0-dev.20220907-2
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/core/audits/bootup-time.js +2 -2
- package/core/audits/byte-efficiency/byte-efficiency-audit.js +7 -6
- package/core/audits/byte-efficiency/duplicated-javascript.js +1 -1
- package/core/audits/byte-efficiency/legacy-javascript.js +2 -2
- package/core/audits/byte-efficiency/offscreen-images.js +2 -2
- package/core/audits/byte-efficiency/render-blocking-resources.js +5 -5
- package/core/audits/byte-efficiency/total-byte-weight.js +1 -1
- package/core/audits/byte-efficiency/unminified-css.js +1 -1
- package/core/audits/byte-efficiency/unused-css-rules.js +1 -1
- package/core/audits/byte-efficiency/unused-javascript.js +4 -4
- package/core/audits/byte-efficiency/uses-long-cache-ttl.js +1 -1
- package/core/audits/byte-efficiency/uses-responsive-images.js +1 -1
- package/core/audits/critical-request-chains.js +1 -1
- package/core/audits/csp-xss.js +1 -1
- package/core/audits/deprecations.js +2 -2
- package/core/audits/diagnostics.js +7 -7
- package/core/audits/dobetterweb/charset.js +1 -1
- package/core/audits/dobetterweb/uses-http2.js +6 -6
- package/core/audits/errors-in-console.js +2 -2
- package/core/audits/final-screenshot.js +2 -2
- package/core/audits/font-display.js +1 -1
- package/core/audits/installable-manifest.js +1 -1
- package/core/audits/is-on-https.js +1 -1
- package/core/audits/long-tasks.js +4 -4
- package/core/audits/main-thread-tasks.js +1 -1
- package/core/audits/mainthread-work-breakdown.js +1 -1
- package/core/audits/maskable-icon.js +1 -1
- package/core/audits/metrics/cumulative-layout-shift.js +1 -1
- package/core/audits/metrics/experimental-interaction-to-next-paint.js +1 -1
- package/core/audits/metrics/first-contentful-paint-3g.js +1 -1
- package/core/audits/metrics/first-contentful-paint.js +1 -1
- package/core/audits/metrics/first-meaningful-paint.js +1 -1
- package/core/audits/metrics/interactive.js +1 -1
- package/core/audits/metrics/largest-contentful-paint.js +1 -1
- package/core/audits/metrics/max-potential-fid.js +1 -1
- package/core/audits/metrics/speed-index.js +1 -1
- package/core/audits/metrics/total-blocking-time.js +1 -1
- package/core/audits/metrics.js +2 -2
- package/core/audits/network-requests.js +2 -2
- package/core/audits/network-rtt.js +3 -3
- package/core/audits/network-server-latency.js +3 -3
- package/core/audits/no-unload-listeners.js +2 -2
- package/core/audits/performance-budget.js +2 -2
- package/core/audits/predictive-perf.js +8 -8
- package/core/audits/preload-fonts.js +1 -1
- package/core/audits/preload-lcp-image.js +4 -4
- package/core/audits/redirects.js +4 -4
- package/core/audits/resource-summary.js +1 -1
- package/core/audits/screenshot-thumbnails.js +1 -1
- package/core/audits/script-treemap-data.js +5 -5
- package/core/audits/seo/canonical.js +1 -1
- package/core/audits/seo/font-size.js +2 -2
- package/core/audits/seo/http-status-code.js +1 -1
- package/core/audits/seo/is-crawlable.js +1 -1
- package/core/audits/seo/tap-targets.js +2 -2
- package/core/audits/server-response-time.js +1 -1
- package/core/audits/splash-screen.js +1 -1
- package/core/audits/themed-omnibox.js +1 -1
- package/core/audits/third-party-facades.js +3 -3
- package/core/audits/third-party-summary.js +2 -2
- package/core/audits/timing-budget.js +2 -2
- package/core/audits/user-timings.js +1 -1
- package/core/audits/uses-rel-preconnect.js +9 -8
- package/core/audits/uses-rel-preload.js +4 -4
- package/core/audits/viewport.js +2 -2
- package/core/audits/violation-audit.js +2 -2
- package/core/audits/work-during-interaction.js +4 -4
- package/core/computed/critical-request-chains.js +5 -3
- package/core/computed/image-records.js +3 -1
- package/core/computed/js-bundles.js +2 -1
- package/core/computed/load-simulator.js +3 -5
- package/core/computed/main-resource.js +3 -2
- package/core/computed/main-thread-tasks.js +3 -2
- package/core/computed/manifest-values.js +3 -1
- package/core/computed/metrics/cumulative-layout-shift.js +3 -2
- package/core/computed/metrics/first-contentful-paint-all-frames.js +3 -2
- package/core/computed/metrics/first-contentful-paint.js +4 -3
- package/core/computed/metrics/first-meaningful-paint.js +4 -3
- package/core/computed/metrics/interactive.js +4 -3
- package/core/computed/metrics/lantern-first-contentful-paint.js +3 -2
- package/core/computed/metrics/lantern-first-meaningful-paint.js +4 -3
- package/core/computed/metrics/lantern-interactive.js +4 -3
- package/core/computed/metrics/lantern-largest-contentful-paint.js +4 -3
- package/core/computed/metrics/lantern-max-potential-fid.js +5 -4
- package/core/computed/metrics/lantern-metric.js +6 -6
- package/core/computed/metrics/lantern-speed-index.js +5 -4
- package/core/computed/metrics/lantern-total-blocking-time.js +5 -4
- package/core/computed/metrics/largest-contentful-paint-all-frames.js +3 -2
- package/core/computed/metrics/largest-contentful-paint.js +4 -3
- package/core/computed/metrics/max-potential-fid.js +4 -3
- package/core/computed/metrics/metric.js +3 -3
- package/core/computed/metrics/navigation-metric.js +4 -3
- package/core/computed/metrics/responsiveness.js +3 -2
- package/core/computed/metrics/speed-index.js +5 -4
- package/core/computed/metrics/timing-summary.js +15 -14
- package/core/computed/metrics/total-blocking-time.js +5 -4
- package/core/computed/module-duplication.js +5 -3
- package/core/computed/network-analysis.js +3 -2
- package/core/computed/network-records.js +2 -1
- package/core/computed/page-dependency-graph.js +13 -11
- package/core/computed/processed-navigation.js +2 -1
- package/core/computed/processed-trace.js +2 -1
- package/core/computed/resource-summary.js +4 -2
- package/core/computed/screenshots.js +2 -1
- package/core/computed/speedline.js +3 -2
- package/core/computed/unused-css.js +3 -2
- package/core/computed/unused-javascript-summary.js +2 -1
- package/core/computed/user-timings.js +3 -2
- package/core/computed/viewport-meta.js +2 -1
- package/core/fraggle-rock/gather/navigation-runner.js +1 -1
- package/core/gather/gather-runner.js +1 -1
- package/core/gather/gatherers/dobetterweb/optimized-images.js +1 -1
- package/core/gather/gatherers/dobetterweb/response-compression.js +1 -1
- package/core/gather/gatherers/dobetterweb/tags-blocking-first-paint.js +1 -1
- package/core/gather/gatherers/inspector-issues.js +1 -1
- package/core/gather/gatherers/link-elements.js +1 -1
- package/core/gather/gatherers/main-document-content.js +1 -1
- package/core/gather/gatherers/script-elements.js +1 -1
- package/core/gather/gatherers/trace-elements.js +4 -4
- package/core/index.js +1 -1
- package/core/lib/asset-saver.js +4 -4
- package/dist/report/flow.js +11 -11
- package/lol.report.json +5856 -0
- package/package.json +1 -1
- package/shared/localization/locales/en-US.ctc.json +8059 -0
- package/shared/localization/locales/en-XL.ctc.json +8036 -0
- package/changelog.md +0 -5902
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
import NetworkRecords from '../../../computed/network-records.js';
|
|
20
|
+
import {NetworkRecords} from '../../../computed/network-records.js';
|
|
21
21
|
import DevtoolsLog from '../devtools-log.js';
|
|
22
22
|
import FRGatherer from '../../../fraggle-rock/gather/base-gatherer.js';
|
|
23
23
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
import FRGatherer from '../../fraggle-rock/gather/base-gatherer.js';
|
|
13
|
-
import NetworkRecords from '../../computed/network-records.js';
|
|
13
|
+
import {NetworkRecords} from '../../computed/network-records.js';
|
|
14
14
|
import DevtoolsLog from './devtools-log.js';
|
|
15
15
|
|
|
16
16
|
class InspectorIssues extends FRGatherer {
|
|
@@ -9,7 +9,7 @@ import LinkHeader from 'http-link-header';
|
|
|
9
9
|
import FRGatherer from '../../fraggle-rock/gather/base-gatherer.js';
|
|
10
10
|
import {pageFunctions} from '../../lib/page-functions.js';
|
|
11
11
|
import DevtoolsLog from './devtools-log.js';
|
|
12
|
-
import MainResource from '../../computed/main-resource.js';
|
|
12
|
+
import {MainResource} from '../../computed/main-resource.js';
|
|
13
13
|
|
|
14
14
|
/* globals HTMLLinkElement getNodeDetails */
|
|
15
15
|
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import FRGatherer from '../../fraggle-rock/gather/base-gatherer.js';
|
|
8
8
|
import DevtoolsLog from './devtools-log.js';
|
|
9
9
|
import {fetchResponseBodyFromCache} from '../driver/network.js';
|
|
10
|
-
import MainResource from '../../computed/main-resource.js';
|
|
10
|
+
import {MainResource} from '../../computed/main-resource.js';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Collects the content of the main html document.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import FRGatherer from '../../fraggle-rock/gather/base-gatherer.js';
|
|
8
|
-
import NetworkRecords from '../../computed/network-records.js';
|
|
8
|
+
import {NetworkRecords} from '../../computed/network-records.js';
|
|
9
9
|
import {NetworkRequest} from '../../lib/network-request.js';
|
|
10
10
|
import {pageFunctions} from '../../lib/page-functions.js';
|
|
11
11
|
import DevtoolsLog from './devtools-log.js';
|
|
@@ -18,10 +18,10 @@ import {pageFunctions} from '../../lib/page-functions.js';
|
|
|
18
18
|
import * as RectHelpers from '../../lib/rect-helpers.js';
|
|
19
19
|
import {Sentry} from '../../lib/sentry.js';
|
|
20
20
|
import Trace from './trace.js';
|
|
21
|
-
import ProcessedTrace from '../../computed/processed-trace.js';
|
|
22
|
-
import ProcessedNavigation from '../../computed/processed-navigation.js';
|
|
21
|
+
import {ProcessedTrace} from '../../computed/processed-trace.js';
|
|
22
|
+
import {ProcessedNavigation} from '../../computed/processed-navigation.js';
|
|
23
23
|
import {LighthouseError} from '../../lib/lh-error.js';
|
|
24
|
-
import
|
|
24
|
+
import {Responsiveness} from '../../computed/metrics/responsiveness.js';
|
|
25
25
|
|
|
26
26
|
/** @typedef {{nodeId: number, score?: number, animations?: {name?: string, failureReasonsMask?: number, unsupportedProperties?: string[]}[], type?: string}} TraceElementData */
|
|
27
27
|
|
|
@@ -150,7 +150,7 @@ class TraceElements extends FRGatherer {
|
|
|
150
150
|
static async getResponsivenessElement(trace, context) {
|
|
151
151
|
const {settings} = context;
|
|
152
152
|
try {
|
|
153
|
-
const responsivenessEvent = await
|
|
153
|
+
const responsivenessEvent = await Responsiveness.request({trace, settings}, context);
|
|
154
154
|
if (!responsivenessEvent || responsivenessEvent.name === 'FallbackTiming') return;
|
|
155
155
|
return {nodeId: responsivenessEvent.args.data.nodeId};
|
|
156
156
|
} catch {
|
package/core/index.js
CHANGED
|
@@ -110,7 +110,7 @@ const traceCategories = Driver.traceCategories;
|
|
|
110
110
|
export default lighthouse;
|
|
111
111
|
export {Audit} from './audits/audit.js';
|
|
112
112
|
export {default as Gatherer} from './fraggle-rock/gather/base-gatherer.js';
|
|
113
|
-
export {
|
|
113
|
+
export {NetworkRecords} from './computed/network-records.js';
|
|
114
114
|
export {
|
|
115
115
|
legacyNavigation,
|
|
116
116
|
generateConfig,
|
package/core/lib/asset-saver.js
CHANGED
|
@@ -14,8 +14,8 @@ import log from 'lighthouse-logger';
|
|
|
14
14
|
import {Simulator} from './dependency-graph/simulator/simulator.js';
|
|
15
15
|
import lanternTraceSaver from './lantern-trace-saver.js';
|
|
16
16
|
import {MetricTraceEvents} from './traces/metric-trace-events.js';
|
|
17
|
-
import
|
|
18
|
-
import
|
|
17
|
+
import {NetworkAnalysis} from '../computed/network-analysis.js';
|
|
18
|
+
import {LoadSimulator} from '../computed/load-simulator.js';
|
|
19
19
|
import {LighthouseError} from '../lib/lh-error.js';
|
|
20
20
|
|
|
21
21
|
const {promisify} = util;
|
|
@@ -310,8 +310,8 @@ async function saveLanternNetworkData(devtoolsLog, outputPath) {
|
|
|
310
310
|
/** @type {LH.Audit.Context} */
|
|
311
311
|
// @ts-expect-error - the full audit context isn't needed for analysis.
|
|
312
312
|
const context = {computedCache: new Map()};
|
|
313
|
-
const networkAnalysis = await
|
|
314
|
-
const lanternData =
|
|
313
|
+
const networkAnalysis = await NetworkAnalysis.request(devtoolsLog, context);
|
|
314
|
+
const lanternData = LoadSimulator.convertAnalysisToSaveableLanternData(networkAnalysis);
|
|
315
315
|
|
|
316
316
|
fs.writeFileSync(outputPath, JSON.stringify(lanternData));
|
|
317
317
|
}
|