lighthouse 9.5.0-dev.20230118 → 9.5.0-dev.20230119
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/bin.d.ts +5 -0
- package/cli/cli-flags.d.ts +258 -0
- package/cli/commands/commands.d.ts +4 -0
- package/cli/commands/list-audits.d.ts +2 -0
- package/cli/commands/list-locales.d.ts +2 -0
- package/cli/commands/list-trace-categories.d.ts +2 -0
- package/cli/index.d.ts +3 -0
- package/cli/printer.d.ts +28 -0
- package/cli/run.d.ts +24 -0
- package/cli/sentry-prompt.d.ts +5 -0
- package/cli/test/smokehouse/config/exclusions.d.ts +12 -0
- package/cli/test/smokehouse/core-tests.d.ts +4 -0
- package/cli/test/smokehouse/frontends/back-compat-util.d.ts +16 -0
- package/cli/test/smokehouse/frontends/lib.d.ts +8 -0
- package/cli/test/smokehouse/frontends/node.d.ts +2 -0
- package/cli/test/smokehouse/frontends/smokehouse-bin.d.ts +3 -0
- package/cli/test/smokehouse/lib/child-process-error.d.ts +21 -0
- package/cli/test/smokehouse/lib/concurrent-mapper.d.ts +78 -0
- package/cli/test/smokehouse/lib/local-console.d.ts +33 -0
- package/cli/test/smokehouse/lighthouse-runners/bundle.d.ts +16 -0
- package/cli/test/smokehouse/lighthouse-runners/cli.d.ts +18 -0
- package/cli/test/smokehouse/lighthouse-runners/devtools.d.ts +23 -0
- package/cli/test/smokehouse/report-assert-test.d.ts +2 -0
- package/cli/test/smokehouse/report-assert.d.ts +50 -0
- package/cli/test/smokehouse/smokehouse.d.ts +35 -0
- package/cli/test/smokehouse/version-check-test.d.ts +2 -0
- package/cli/test/smokehouse/version-check.d.ts +15 -0
- package/core/audits/accessibility/accesskeys.d.ts +10 -0
- package/core/audits/accessibility/aria-allowed-attr.d.ts +10 -0
- package/core/audits/accessibility/aria-command-name.d.ts +10 -0
- package/core/audits/accessibility/aria-hidden-body.d.ts +10 -0
- package/core/audits/accessibility/aria-hidden-focus.d.ts +10 -0
- package/core/audits/accessibility/aria-input-field-name.d.ts +10 -0
- package/core/audits/accessibility/aria-meter-name.d.ts +10 -0
- package/core/audits/accessibility/aria-progressbar-name.d.ts +10 -0
- package/core/audits/accessibility/aria-required-attr.d.ts +10 -0
- package/core/audits/accessibility/aria-required-children.d.ts +10 -0
- package/core/audits/accessibility/aria-required-parent.d.ts +10 -0
- package/core/audits/accessibility/aria-roles.d.ts +10 -0
- package/core/audits/accessibility/aria-toggle-field-name.d.ts +10 -0
- package/core/audits/accessibility/aria-tooltip-name.d.ts +10 -0
- package/core/audits/accessibility/aria-treeitem-name.d.ts +10 -0
- package/core/audits/accessibility/aria-valid-attr-value.d.ts +10 -0
- package/core/audits/accessibility/aria-valid-attr.d.ts +10 -0
- package/core/audits/accessibility/axe-audit.d.ts +17 -0
- package/core/audits/accessibility/button-name.d.ts +10 -0
- package/core/audits/accessibility/bypass.d.ts +10 -0
- package/core/audits/accessibility/color-contrast.d.ts +10 -0
- package/core/audits/accessibility/definition-list.d.ts +10 -0
- package/core/audits/accessibility/dlitem.d.ts +10 -0
- package/core/audits/accessibility/document-title.d.ts +10 -0
- package/core/audits/accessibility/duplicate-id-active.d.ts +10 -0
- package/core/audits/accessibility/duplicate-id-aria.d.ts +10 -0
- package/core/audits/accessibility/form-field-multiple-labels.d.ts +10 -0
- package/core/audits/accessibility/frame-title.d.ts +10 -0
- package/core/audits/accessibility/heading-order.d.ts +10 -0
- package/core/audits/accessibility/html-has-lang.d.ts +10 -0
- package/core/audits/accessibility/html-lang-valid.d.ts +10 -0
- package/core/audits/accessibility/image-alt.d.ts +10 -0
- package/core/audits/accessibility/input-image-alt.d.ts +10 -0
- package/core/audits/accessibility/label.d.ts +10 -0
- package/core/audits/accessibility/link-name.d.ts +10 -0
- package/core/audits/accessibility/list.d.ts +10 -0
- package/core/audits/accessibility/listitem.d.ts +10 -0
- package/core/audits/accessibility/manual/custom-controls-labels.d.ts +8 -0
- package/core/audits/accessibility/manual/custom-controls-roles.d.ts +8 -0
- package/core/audits/accessibility/manual/focus-traps.d.ts +8 -0
- package/core/audits/accessibility/manual/focusable-controls.d.ts +8 -0
- package/core/audits/accessibility/manual/interactive-element-affordance.d.ts +8 -0
- package/core/audits/accessibility/manual/logical-tab-order.d.ts +8 -0
- package/core/audits/accessibility/manual/managed-focus.d.ts +8 -0
- package/core/audits/accessibility/manual/offscreen-content-hidden.d.ts +9 -0
- package/core/audits/accessibility/manual/use-landmarks.d.ts +8 -0
- package/core/audits/accessibility/manual/visual-order-follows-dom.d.ts +8 -0
- package/core/audits/accessibility/meta-refresh.d.ts +10 -0
- package/core/audits/accessibility/meta-viewport.d.ts +10 -0
- package/core/audits/accessibility/object-alt.d.ts +10 -0
- package/core/audits/accessibility/tabindex.d.ts +10 -0
- package/core/audits/accessibility/td-headers-attr.d.ts +10 -0
- package/core/audits/accessibility/th-has-data-cells.d.ts +10 -0
- package/core/audits/accessibility/valid-lang.d.ts +10 -0
- package/core/audits/accessibility/video-caption.d.ts +10 -0
- package/core/audits/audit.d.ts +150 -0
- package/core/audits/audit.js +1 -0
- package/core/audits/autocomplete.d.ts +36 -0
- package/core/audits/bf-cache.d.ts +21 -0
- package/core/audits/bootup-time.d.ts +26 -0
- package/core/audits/byte-efficiency/byte-efficiency-audit.d.ts +82 -0
- package/core/audits/byte-efficiency/duplicated-javascript.d.ts +52 -0
- package/core/audits/byte-efficiency/efficient-animated-content.d.ts +23 -0
- package/core/audits/byte-efficiency/legacy-javascript.d.ts +99 -0
- package/core/audits/byte-efficiency/modern-image-formats.d.ts +38 -0
- package/core/audits/byte-efficiency/offscreen-images.d.ts +75 -0
- package/core/audits/byte-efficiency/render-blocking-resources.d.ts +55 -0
- package/core/audits/byte-efficiency/total-byte-weight.d.ts +21 -0
- package/core/audits/byte-efficiency/unminified-css.d.ts +36 -0
- package/core/audits/byte-efficiency/unminified-javascript.d.ts +37 -0
- package/core/audits/byte-efficiency/unused-css-rules.d.ts +16 -0
- package/core/audits/byte-efficiency/unused-javascript.d.ts +27 -0
- package/core/audits/byte-efficiency/uses-long-cache-ttl.d.ts +61 -0
- package/core/audits/byte-efficiency/uses-optimized-images.d.ts +33 -0
- package/core/audits/byte-efficiency/uses-responsive-images-snapshot.d.ts +16 -0
- package/core/audits/byte-efficiency/uses-responsive-images.d.ts +45 -0
- package/core/audits/byte-efficiency/uses-text-compression.d.ts +14 -0
- package/core/audits/content-width.d.ts +17 -0
- package/core/audits/critical-request-chains.d.ts +44 -0
- package/core/audits/csp-xss.d.ts +51 -0
- package/core/audits/deprecations.d.ts +19 -0
- package/core/audits/diagnostics.d.ts +11 -0
- package/core/audits/dobetterweb/charset.d.ts +19 -0
- package/core/audits/dobetterweb/doctype.d.ts +21 -0
- package/core/audits/dobetterweb/dom-size.d.ts +26 -0
- package/core/audits/dobetterweb/geolocation-on-start.d.ts +16 -0
- package/core/audits/dobetterweb/inspector-issues.d.ts +45 -0
- package/core/audits/dobetterweb/js-libraries.d.ts +15 -0
- package/core/audits/dobetterweb/no-document-write.d.ts +16 -0
- package/core/audits/dobetterweb/notification-on-start.d.ts +16 -0
- package/core/audits/dobetterweb/password-inputs-can-be-pasted-into.d.ts +15 -0
- package/core/audits/dobetterweb/uses-http2.d.ts +69 -0
- package/core/audits/dobetterweb/uses-passive-event-listeners.d.ts +16 -0
- package/core/audits/errors-in-console.d.ts +31 -0
- package/core/audits/final-screenshot.d.ts +11 -0
- package/core/audits/font-display.d.ts +32 -0
- package/core/audits/image-aspect-ratio.d.ts +30 -0
- package/core/audits/image-size-responsive.d.ts +28 -0
- package/core/audits/installable-manifest.d.ts +118 -0
- package/core/audits/is-on-https.d.ts +23 -0
- package/core/audits/largest-contentful-paint-element.d.ts +14 -0
- package/core/audits/layout-shift-elements.d.ts +15 -0
- package/core/audits/lcp-lazy-loaded.d.ts +21 -0
- package/core/audits/long-tasks.d.ts +16 -0
- package/core/audits/main-thread-tasks.d.ts +11 -0
- package/core/audits/mainthread-work-breakdown.d.ts +28 -0
- package/core/audits/manual/manual-audit.d.ts +13 -0
- package/core/audits/manual/pwa-cross-browser.d.ts +12 -0
- package/core/audits/manual/pwa-each-page-has-url.d.ts +12 -0
- package/core/audits/manual/pwa-page-transitions.d.ts +12 -0
- package/core/audits/maskable-icon.d.ts +25 -0
- package/core/audits/metrics/cumulative-layout-shift.d.ts +21 -0
- package/core/audits/metrics/experimental-interaction-to-next-paint.d.ts +21 -0
- package/core/audits/metrics/first-contentful-paint-3g.d.ts +15 -0
- package/core/audits/metrics/first-contentful-paint.d.ts +25 -0
- package/core/audits/metrics/first-meaningful-paint.d.ts +28 -0
- package/core/audits/metrics/interactive.d.ts +31 -0
- package/core/audits/metrics/largest-contentful-paint.d.ts +25 -0
- package/core/audits/metrics/max-potential-fid.d.ts +23 -0
- package/core/audits/metrics/speed-index.d.ts +27 -0
- package/core/audits/metrics/total-blocking-time.d.ts +32 -0
- package/core/audits/metrics.d.ts +11 -0
- package/core/audits/multi-check-audit.d.ts +28 -0
- package/core/audits/network-requests.d.ts +11 -0
- package/core/audits/network-rtt.d.ts +15 -0
- package/core/audits/network-server-latency.d.ts +15 -0
- package/core/audits/no-unload-listeners.d.ts +16 -0
- package/core/audits/non-composited-animations.d.ts +21 -0
- package/core/audits/oopif-iframe-test-audit.d.ts +14 -0
- package/core/audits/performance-budget.d.ts +39 -0
- package/core/audits/predictive-perf.d.ts +11 -0
- package/core/audits/preload-fonts.d.ts +29 -0
- package/core/audits/preload-lcp-image.d.ts +67 -0
- package/core/audits/redirects.d.ts +33 -0
- package/core/audits/resource-summary.d.ts +16 -0
- package/core/audits/screenshot-thumbnails.d.ts +32 -0
- package/core/audits/script-elements-test-audit.d.ts +14 -0
- package/core/audits/script-treemap-data.d.ts +42 -0
- package/core/audits/seo/canonical.d.ts +51 -0
- package/core/audits/seo/crawlable-anchors.d.ts +16 -0
- package/core/audits/seo/font-size.d.ts +24 -0
- package/core/audits/seo/hreflang.d.ts +28 -0
- package/core/audits/seo/http-status-code.d.ts +16 -0
- package/core/audits/seo/is-crawlable.d.ts +38 -0
- package/core/audits/seo/link-text.d.ts +16 -0
- package/core/audits/seo/manual/structured-data.d.ts +12 -0
- package/core/audits/seo/meta-description.d.ts +16 -0
- package/core/audits/seo/plugins.d.ts +15 -0
- package/core/audits/seo/robots-txt.d.ts +18 -0
- package/core/audits/seo/tap-targets.d.ts +50 -0
- package/core/audits/server-response-time.d.ts +21 -0
- package/core/audits/service-worker.d.ts +46 -0
- package/core/audits/splash-screen.d.ts +37 -0
- package/core/audits/themed-omnibox.d.ts +42 -0
- package/core/audits/third-party-facades.d.ts +41 -0
- package/core/audits/third-party-summary.d.ts +58 -0
- package/core/audits/timing-budget.d.ts +43 -0
- package/core/audits/unsized-images.d.ts +39 -0
- package/core/audits/user-timings.d.ts +43 -0
- package/core/audits/uses-rel-preconnect.d.ts +37 -0
- package/core/audits/uses-rel-preload.d.ts +61 -0
- package/core/audits/valid-source-maps.d.ts +27 -0
- package/core/audits/viewport.d.ts +17 -0
- package/core/audits/violation-audit.d.ts +14 -0
- package/core/audits/work-during-interaction.d.ts +82 -0
- package/core/computed/computed-artifact.d.ts +15 -0
- package/core/computed/critical-request-chains.d.ts +40 -0
- package/core/computed/image-records.d.ts +24 -0
- package/core/computed/js-bundles.d.ts +13 -0
- package/core/computed/load-simulator.d.ts +28 -0
- package/core/computed/main-resource.d.ts +25 -0
- package/core/computed/main-thread-tasks.d.ts +15 -0
- package/core/computed/manifest-values.d.ts +24 -0
- package/core/computed/metrics/cumulative-layout-shift.d.ts +53 -0
- package/core/computed/metrics/first-contentful-paint-all-frames.d.ts +19 -0
- package/core/computed/metrics/first-contentful-paint.d.ts +15 -0
- package/core/computed/metrics/first-meaningful-paint.d.ts +15 -0
- package/core/computed/metrics/interactive.d.ts +61 -0
- package/core/computed/metrics/lantern-first-contentful-paint.d.ts +48 -0
- package/core/computed/metrics/lantern-first-meaningful-paint.d.ts +12 -0
- package/core/computed/metrics/lantern-interactive.d.ts +31 -0
- package/core/computed/metrics/lantern-largest-contentful-paint.d.ts +25 -0
- package/core/computed/metrics/lantern-max-potential-fid.d.ts +30 -0
- package/core/computed/metrics/lantern-metric.d.ts +78 -0
- package/core/computed/metrics/lantern-speed-index.d.ts +38 -0
- package/core/computed/metrics/lantern-total-blocking-time.d.ts +31 -0
- package/core/computed/metrics/largest-contentful-paint-all-frames.d.ts +20 -0
- package/core/computed/metrics/largest-contentful-paint.d.ts +15 -0
- package/core/computed/metrics/max-potential-fid.d.ts +15 -0
- package/core/computed/metrics/metric.d.ts +38 -0
- package/core/computed/metrics/navigation-metric.d.ts +16 -0
- package/core/computed/metrics/responsiveness.d.ts +87 -0
- package/core/computed/metrics/speed-index.d.ts +10 -0
- package/core/computed/metrics/tbt-utils.d.ts +18 -0
- package/core/computed/metrics/timing-summary.d.ts +46 -0
- package/core/computed/metrics/total-blocking-time.d.ts +23 -0
- package/core/computed/module-duplication.d.ts +37 -0
- package/core/computed/network-analysis.d.ts +20 -0
- package/core/computed/network-records.d.ts +15 -0
- package/core/computed/network-records.js +1 -0
- package/core/computed/page-dependency-graph.d.ts +88 -0
- package/core/computed/processed-navigation.d.ts +15 -0
- package/core/computed/processed-trace.d.ts +14 -0
- package/core/computed/resource-summary.d.ts +44 -0
- package/core/computed/screenshots.d.ts +20 -0
- package/core/computed/speedline.d.ts +15 -0
- package/core/computed/unused-css.d.ts +62 -0
- package/core/computed/unused-javascript-summary.d.ts +71 -0
- package/core/computed/user-timings.d.ts +31 -0
- package/core/computed/viewport-meta.d.ts +35 -0
- package/core/config/budget.d.ts +74 -0
- package/core/config/config-helpers.d.ts +94 -0
- package/core/config/config-plugin.d.ts +46 -0
- package/core/config/config.d.ts +28 -0
- package/core/config/constants.d.ts +86 -0
- package/core/config/default-config.d.ts +5 -0
- package/core/config/default-config.js +1 -0
- package/core/config/desktop-config.d.ts +5 -0
- package/core/config/desktop-config.js +1 -0
- package/core/config/experimental-config.d.ts +13 -0
- package/core/config/filters.d.ts +83 -0
- package/core/config/full-config.d.ts +9 -0
- package/core/config/lr-desktop-config.d.ts +4 -0
- package/core/config/lr-mobile-config.d.ts +9 -0
- package/core/config/metrics-to-audits.d.ts +19 -0
- package/core/config/perf-config.d.ts +9 -0
- package/core/config/validation.d.ts +77 -0
- package/core/gather/base-artifacts.d.ts +16 -0
- package/core/gather/base-gatherer.d.ts +72 -0
- package/core/gather/base-gatherer.js +2 -0
- package/core/gather/driver/dom.d.ts +20 -0
- package/core/gather/driver/environment.d.ts +35 -0
- package/core/gather/driver/execution-context.d.ts +101 -0
- package/core/gather/driver/execution-context.js +1 -7
- package/core/gather/driver/navigation.d.ts +33 -0
- package/core/gather/driver/network-monitor.d.ts +82 -0
- package/core/gather/driver/network.d.ts +10 -0
- package/core/gather/driver/prepare.d.ts +46 -0
- package/core/gather/driver/service-workers.d.ts +16 -0
- package/core/gather/driver/storage.d.ts +24 -0
- package/core/gather/driver/target-manager.d.ts +61 -0
- package/core/gather/driver/wait-for-condition.d.ts +116 -0
- package/core/gather/driver/wait-for-condition.js +3 -2
- package/core/gather/driver.d.ts +30 -0
- package/core/gather/fetcher.d.ts +63 -0
- package/core/gather/fetcher.js +2 -0
- package/core/gather/gatherers/accessibility.d.ts +23 -0
- package/core/gather/gatherers/anchor-elements.d.ts +10 -0
- package/core/gather/gatherers/bf-cache-failures.d.ts +43 -0
- package/core/gather/gatherers/cache-contents.d.ts +11 -0
- package/core/gather/gatherers/console-messages.d.ts +39 -0
- package/core/gather/gatherers/css-usage.d.ts +39 -0
- package/core/gather/gatherers/devtools-log-compat.d.ts +13 -0
- package/core/gather/gatherers/devtools-log.d.ts +48 -0
- package/core/gather/gatherers/dobetterweb/doctype.d.ts +10 -0
- package/core/gather/gatherers/dobetterweb/domstats.d.ts +10 -0
- package/core/gather/gatherers/dobetterweb/optimized-images.d.ts +61 -0
- package/core/gather/gatherers/dobetterweb/password-inputs-with-prevented-paste.d.ts +10 -0
- package/core/gather/gatherers/dobetterweb/response-compression.d.ts +30 -0
- package/core/gather/gatherers/dobetterweb/tags-blocking-first-paint.d.ts +53 -0
- package/core/gather/gatherers/full-page-screenshot.d.ts +35 -0
- package/core/gather/gatherers/gatherer.d.ts +46 -0
- package/core/gather/gatherers/global-listeners.d.ts +27 -0
- package/core/gather/gatherers/iframe-elements.d.ts +11 -0
- package/core/gather/gatherers/image-elements.d.ts +35 -0
- package/core/gather/gatherers/inputs.d.ts +10 -0
- package/core/gather/gatherers/inspector-issues.d.ts +38 -0
- package/core/gather/gatherers/installability-errors.d.ts +17 -0
- package/core/gather/gatherers/js-usage.d.ts +22 -0
- package/core/gather/gatherers/link-elements.d.ts +39 -0
- package/core/gather/gatherers/main-document-content.d.ts +27 -0
- package/core/gather/gatherers/meta-elements.d.ts +10 -0
- package/core/gather/gatherers/network-user-agent.d.ts +18 -0
- package/core/gather/gatherers/script-elements.d.ts +26 -0
- package/core/gather/gatherers/scripts.d.ts +27 -0
- package/core/gather/gatherers/seo/embedded-content.d.ts +10 -0
- package/core/gather/gatherers/seo/font-size.d.ts +131 -0
- package/core/gather/gatherers/seo/robots-txt.d.ts +10 -0
- package/core/gather/gatherers/seo/tap-targets.d.ts +21 -0
- package/core/gather/gatherers/service-worker.d.ts +16 -0
- package/core/gather/gatherers/source-maps.d.ts +50 -0
- package/core/gather/gatherers/stacks.d.ts +38 -0
- package/core/gather/gatherers/trace-compat.d.ts +13 -0
- package/core/gather/gatherers/trace-elements.d.ts +83 -0
- package/core/gather/gatherers/trace.d.ts +23 -0
- package/core/gather/gatherers/viewport-dimensions.d.ts +10 -0
- package/core/gather/gatherers/web-app-manifest.d.ts +32 -0
- package/core/gather/navigation-runner.d.ts +92 -0
- package/core/gather/runner-helpers.d.ts +39 -0
- package/core/gather/session.d.ts +50 -0
- package/core/gather/snapshot-runner.d.ts +10 -0
- package/core/gather/timespan-runner.d.ts +12 -0
- package/core/index.d.cts +4 -0
- package/core/index.d.ts +88 -0
- package/core/index.js +2 -0
- package/core/legacy/config/config.d.ts +107 -0
- package/core/legacy/config/legacy-default-config.d.ts +4 -0
- package/core/legacy/gather/connections/connection.d.ts +75 -0
- package/core/legacy/gather/connections/connection.js +1 -0
- package/core/legacy/gather/connections/cri.d.ts +27 -0
- package/core/legacy/gather/connections/raw.d.ts +20 -0
- package/core/legacy/gather/driver.d.ts +214 -0
- package/core/legacy/gather/driver.js +1 -0
- package/core/legacy/gather/gather-runner.d.ts +166 -0
- package/core/lib/arbitrary-equality-map.d.ts +47 -0
- package/core/lib/asset-saver.d.ts +101 -0
- package/core/lib/axe.d.ts +2 -0
- package/core/lib/bf-cache-strings.d.ts +121 -0
- package/core/lib/cdt/Common.d.ts +3 -0
- package/core/lib/cdt/Platform.d.ts +26 -0
- package/core/lib/cdt/SDK.d.ts +2 -0
- package/core/lib/cdt/generated/ParsedURL.d.ts +28 -0
- package/core/lib/cdt/generated/SourceMap.d.ts +100 -0
- package/core/lib/csp-evaluator.d.ts +41 -0
- package/core/lib/dependency-graph/base-node.d.ts +161 -0
- package/core/lib/dependency-graph/cpu-node.d.ts +34 -0
- package/core/lib/dependency-graph/cpu-node.js +1 -0
- package/core/lib/dependency-graph/network-node.d.ts +43 -0
- package/core/lib/dependency-graph/network-node.js +1 -0
- package/core/lib/dependency-graph/simulator/connection-pool.d.ts +58 -0
- package/core/lib/dependency-graph/simulator/connection-pool.js +1 -0
- package/core/lib/dependency-graph/simulator/dns-cache.d.ts +42 -0
- package/core/lib/dependency-graph/simulator/dns-cache.js +2 -0
- package/core/lib/dependency-graph/simulator/network-analyzer.d.ts +166 -0
- package/core/lib/dependency-graph/simulator/simulator-timing-map.d.ts +153 -0
- package/core/lib/dependency-graph/simulator/simulator-timing-map.js +2 -2
- package/core/lib/dependency-graph/simulator/simulator.d.ts +154 -0
- package/core/lib/dependency-graph/simulator/simulator.js +3 -2
- package/core/lib/dependency-graph/simulator/tcp-connection.d.ts +89 -0
- package/core/lib/deprecations-strings.d.ts +66 -0
- package/core/lib/emulation.d.ts +43 -0
- package/core/lib/i18n/i18n.d.ts +81 -0
- package/core/lib/icons.d.ts +22 -0
- package/core/lib/lantern-trace-saver.d.ts +20 -0
- package/core/lib/lh-env.d.ts +2 -0
- package/core/lib/lh-error.d.ts +328 -0
- package/core/lib/lh-trace-processor.d.ts +5 -0
- package/core/lib/manifest-parser.d.ts +186 -0
- package/core/lib/median-run.d.ts +17 -0
- package/core/lib/minification-estimator.d.ts +9 -0
- package/core/lib/minify-devtoolslog.d.ts +6 -0
- package/core/lib/minify-trace.d.ts +6 -0
- package/core/lib/navigation-error.d.ts +39 -0
- package/core/lib/network-recorder.d.ts +115 -0
- package/core/lib/network-request.d.ts +245 -0
- package/core/lib/network-request.js +1 -0
- package/core/lib/page-functions.d.ts +149 -0
- package/core/lib/proto-preprocessor.d.ts +13 -0
- package/core/lib/rect-helpers.d.ts +100 -0
- package/core/lib/script-helpers.d.ts +17 -0
- package/core/lib/sentry.d.ts +32 -0
- package/core/lib/stack-packs.d.ts +16 -0
- package/core/lib/statistics.d.ts +28 -0
- package/core/lib/tappable-rects.d.ts +8 -0
- package/core/lib/third-party-web.d.ts +32 -0
- package/core/lib/timing-trace-saver.d.ts +21 -0
- package/core/lib/tracehouse/cpu-profile-model.d.ts +228 -0
- package/core/lib/tracehouse/main-thread-tasks.d.ts +162 -0
- package/core/lib/tracehouse/main-thread-tasks.js +1 -0
- package/core/lib/tracehouse/task-groups.d.ts +66 -0
- package/core/lib/tracehouse/task-summary.d.ts +18 -0
- package/core/lib/tracehouse/trace-processor.d.ts +275 -0
- package/core/lib/traces/metric-trace-events.d.ts +65 -0
- package/core/lib/url-utils.d.ts +100 -0
- package/core/runner.d.ts +109 -0
- package/core/scoring.d.ts +26 -0
- package/core/user-flow.d.ts +106 -0
- package/core/user-flow.js +1 -0
- package/core/util.d.cts +230 -0
- package/eslint-local-rules.d.cts +6 -0
- package/esm-utils.d.ts +14 -0
- package/flow-report/api.d.ts +7 -0
- package/flow-report/clients/standalone.d.ts +7 -0
- package/flow-report/src/app.d.ts +11 -0
- package/flow-report/src/common.d.ts +20 -0
- package/flow-report/src/header.d.ts +10 -0
- package/flow-report/src/help-dialog.d.ts +10 -0
- package/flow-report/src/i18n/i18n.d.ts +209 -0
- package/flow-report/src/i18n/localized-strings.d.ts +9 -0
- package/flow-report/src/i18n/ui-strings.d.ts +48 -0
- package/flow-report/src/icons.d.ts +18 -0
- package/flow-report/src/sidebar/flow.d.ts +8 -0
- package/flow-report/src/sidebar/sidebar.d.ts +17 -0
- package/flow-report/src/summary/category.d.ts +19 -0
- package/flow-report/src/summary/summary.d.ts +18 -0
- package/flow-report/src/topbar.d.ts +15 -0
- package/flow-report/src/util.d.ts +30 -0
- package/flow-report/src/wrappers/category-score.d.ts +12 -0
- package/flow-report/src/wrappers/markdown.d.ts +10 -0
- package/flow-report/src/wrappers/report.d.ts +10 -0
- package/flow-report/src/wrappers/styles.d.ts +8 -0
- package/flow-report/test/app-test.d.ts +7 -0
- package/flow-report/test/common-test.d.ts +7 -0
- package/flow-report/test/flow-report-pptr-test.d.ts +7 -0
- package/flow-report/test/header-test.d.ts +7 -0
- package/flow-report/test/sample-flow.d.ts +7 -0
- package/flow-report/test/setup/env-setup.d.ts +11 -0
- package/flow-report/test/sidebar/flow-test.d.ts +7 -0
- package/flow-report/test/sidebar/sidebar-test.d.ts +7 -0
- package/flow-report/test/summary/category-test.d.ts +7 -0
- package/flow-report/test/summary/summary-test.d.ts +7 -0
- package/flow-report/test/topbar-test.d.ts +7 -0
- package/flow-report/test/util-test.d.ts +7 -0
- package/flow-report/test/wrappers/category-score-test.d.ts +7 -0
- package/flow-report/test/wrappers/markdown-test.d.ts +7 -0
- package/flow-report/tsconfig.json +1 -1
- package/package.json +5 -2
- package/report/clients/bundle.d.ts +6 -0
- package/report/clients/standalone.d.ts +2 -0
- package/report/generator/file-namer.d.ts +35 -0
- package/report/generator/flow-report-assets.d.ts +9 -0
- package/report/generator/report-assets.d.ts +8 -0
- package/report/generator/report-generator.d.ts +59 -0
- package/report/renderer/api.d.ts +31 -0
- package/report/renderer/category-renderer.d.ts +176 -0
- package/report/renderer/components.d.ts +10 -0
- package/report/renderer/crc-details-renderer.d.ts +73 -0
- package/report/renderer/details-renderer.d.ts +141 -0
- package/report/renderer/dom.d.ts +125 -0
- package/report/renderer/drop-down-menu.d.ts +70 -0
- package/report/renderer/element-screenshot-renderer.d.ts +79 -0
- package/report/renderer/features-util.d.ts +13 -0
- package/report/renderer/i18n.d.ts +106 -0
- package/report/renderer/logger.d.ts +47 -0
- package/report/renderer/open-tab.d.ts +19 -0
- package/report/renderer/performance-category-renderer.d.ts +56 -0
- package/report/renderer/pwa-category-renderer.d.ts +55 -0
- package/report/renderer/report-renderer.d.ts +57 -0
- package/report/renderer/report-ui-features.d.ts +71 -0
- package/report/renderer/snippet-renderer.d.ts +85 -0
- package/report/renderer/swap-locale-feature.d.ts +31 -0
- package/report/renderer/text-encoding.d.ts +26 -0
- package/report/renderer/topbar-features.d.ts +82 -0
- package/report/renderer/util.d.ts +230 -0
- package/report/test-assets/faux-psi.d.ts +34 -0
- package/report/types/augment-dom.d.ts +1 -1
- package/root.d.ts +3 -0
- package/shared/localization/format.d.ts +106 -0
- package/shared/localization/i18n-module.d.ts +4 -0
- package/shared/localization/locales.d.ts +7 -0
- package/shared/localization/swap-flow-locale.d.ts +6 -0
- package/shared/localization/swap-locale.d.ts +39 -0
- package/shared/type-verifiers.d.ts +23 -0
- package/third-party/axe/valid-langs.d.ts +9 -0
- package/types/artifacts.d.ts +40 -38
- package/types/audit.d.ts +6 -6
- package/types/config.d.ts +3 -3
- package/types/externs.d.ts +7 -3
- package/types/gatherer.d.ts +27 -21
- package/types/{cssstyle/index.d.ts → internal/cssstyle.d.ts} +0 -0
- package/types/{enquirer.d.ts → internal/enquirer.d.ts} +0 -0
- package/types/{es-main.d.ts → internal/es-main.d.ts} +0 -0
- package/types/internal/global.d.ts +15 -0
- package/types/{http-link-header/index.d.ts → internal/http-link-header.d.ts} +0 -0
- package/types/{jsonlint-mod.d.ts → internal/jsonlint-mod.d.ts} +0 -0
- package/types/{lighthouse-logger/index.d.ts → internal/lighthouse-logger.d.ts} +0 -0
- package/types/{lookup-closest-locale/index.d.ts → internal/lookup-closest-locale.d.ts} +3 -1
- package/types/{metaviewport-parser/index.d.ts → internal/metaviewport-parser.d.ts} +0 -0
- package/types/{node-fetch.d.ts → internal/node-fetch.d.ts} +0 -0
- package/types/{node.d.ts → internal/node.d.ts} +0 -0
- package/types/{parse-cache-control/index.d.ts → internal/parse-cache-control.d.ts} +0 -0
- package/types/{pretty-json-stringify/index.d.ts → internal/pretty-json-stringify.d.ts} +0 -0
- package/types/{query-selector.d.ts → internal/query-selector.d.ts} +1 -1
- package/types/{rollup-plugin-postprocess.d.ts → internal/rollup-plugin-postprocess.d.ts} +0 -0
- package/types/{smokehouse.d.ts → internal/smokehouse.d.ts} +3 -3
- package/types/{test.d.ts → internal/test.d.ts} +0 -0
- package/types/lh.d.ts +81 -0
- package/types/lh.js +13 -0
- package/types/lhr/audit-details.d.ts +2 -2
- package/types/lhr/audit-result.d.ts +2 -2
- package/types/lhr/flow-result.d.ts +1 -1
- package/types/lhr/lhr.d.ts +2 -2
- package/types/lhr/settings.d.ts +1 -1
- package/types/lhr/treemap.d.ts +2 -2
- package/types/protocol.d.ts +8 -3
- package/types/puppeteer.d.ts +11 -6
- package/types/user-flow.d.ts +14 -5
- package/types/global-lh.d.ts +0 -85
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export default TDHeadersAttr;
|
|
2
|
+
declare class TDHeadersAttr extends AxeAudit {
|
|
3
|
+
}
|
|
4
|
+
export namespace UIStrings {
|
|
5
|
+
const title: string;
|
|
6
|
+
const failureTitle: string;
|
|
7
|
+
const description: string;
|
|
8
|
+
}
|
|
9
|
+
import AxeAudit from "./axe-audit.js";
|
|
10
|
+
//# sourceMappingURL=td-headers-attr.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export default THHasDataCells;
|
|
2
|
+
declare class THHasDataCells extends AxeAudit {
|
|
3
|
+
}
|
|
4
|
+
export namespace UIStrings {
|
|
5
|
+
const title: string;
|
|
6
|
+
const failureTitle: string;
|
|
7
|
+
const description: string;
|
|
8
|
+
}
|
|
9
|
+
import AxeAudit from "./axe-audit.js";
|
|
10
|
+
//# sourceMappingURL=th-has-data-cells.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export default ValidLang;
|
|
2
|
+
declare class ValidLang extends AxeAudit {
|
|
3
|
+
}
|
|
4
|
+
export namespace UIStrings {
|
|
5
|
+
const title: string;
|
|
6
|
+
const failureTitle: string;
|
|
7
|
+
const description: string;
|
|
8
|
+
}
|
|
9
|
+
import AxeAudit from "./axe-audit.js";
|
|
10
|
+
//# sourceMappingURL=valid-lang.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export default VideoCaption;
|
|
2
|
+
declare class VideoCaption extends AxeAudit {
|
|
3
|
+
}
|
|
4
|
+
export namespace UIStrings {
|
|
5
|
+
const title: string;
|
|
6
|
+
const failureTitle: string;
|
|
7
|
+
const description: string;
|
|
8
|
+
}
|
|
9
|
+
import AxeAudit from "./axe-audit.js";
|
|
10
|
+
//# sourceMappingURL=video-caption.d.ts.map
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
export class Audit {
|
|
2
|
+
/**
|
|
3
|
+
* @return {string}
|
|
4
|
+
*/
|
|
5
|
+
static get DEFAULT_PASS(): string;
|
|
6
|
+
/**
|
|
7
|
+
* @return {LH.Audit.ScoreDisplayModes}
|
|
8
|
+
*/
|
|
9
|
+
static get SCORING_MODES(): import("../../types/lhr/audit-result.js").ScoreDisplayModes;
|
|
10
|
+
/**
|
|
11
|
+
* @return {LH.Audit.Meta}
|
|
12
|
+
*/
|
|
13
|
+
static get meta(): LH.Audit.Meta;
|
|
14
|
+
/**
|
|
15
|
+
* @return {Object}
|
|
16
|
+
*/
|
|
17
|
+
static get defaultOptions(): Object;
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @param {LH.Artifacts} artifacts
|
|
21
|
+
* @param {LH.Audit.Context} context
|
|
22
|
+
* @return {LH.Audit.Product|Promise<LH.Audit.Product>}
|
|
23
|
+
*/
|
|
24
|
+
static audit(artifacts: LH.Artifacts, context: LH.Audit.Context): LH.Audit.Product | Promise<LH.Audit.Product>;
|
|
25
|
+
/**
|
|
26
|
+
* Computes a score between 0 and 1 based on the measured `value`. Score is determined by
|
|
27
|
+
* considering a log-normal distribution governed by two control points (the 10th
|
|
28
|
+
* percentile value and the median value) and represents the percentage of sites that are
|
|
29
|
+
* greater than `value`.
|
|
30
|
+
*
|
|
31
|
+
* Score characteristics:
|
|
32
|
+
* - within [0, 1]
|
|
33
|
+
* - rounded to two digits
|
|
34
|
+
* - value must meet or beat a controlPoint value to meet or exceed its percentile score:
|
|
35
|
+
* - value > median will give a score < 0.5; value ≤ median will give a score ≥ 0.5.
|
|
36
|
+
* - value > p10 will give a score < 0.9; value ≤ p10 will give a score ≥ 0.9.
|
|
37
|
+
* - values < p10 will get a slight boost so a score of 1 is achievable by a
|
|
38
|
+
* `value` other than those close to 0. Scores of > ~0.99524 end up rounded to 1.
|
|
39
|
+
* @param {{median: number, p10: number}} controlPoints
|
|
40
|
+
* @param {number} value
|
|
41
|
+
* @return {number}
|
|
42
|
+
*/
|
|
43
|
+
static computeLogNormalScore(controlPoints: {
|
|
44
|
+
median: number;
|
|
45
|
+
p10: number;
|
|
46
|
+
}, value: number): number;
|
|
47
|
+
/**
|
|
48
|
+
* This catches typos in the `key` property of a heading definition of table/opportunity details.
|
|
49
|
+
* Throws an error if any of keys referenced by headings don't exist in at least one of the items.
|
|
50
|
+
*
|
|
51
|
+
* @param {LH.Audit.Details.Table['headings']|LH.Audit.Details.Opportunity['headings']} headings
|
|
52
|
+
* @param {LH.Audit.Details.Opportunity['items']|LH.Audit.Details.Table['items']} items
|
|
53
|
+
*/
|
|
54
|
+
static assertHeadingKeysExist(headings: LH.Audit.Details.Table['headings'] | LH.Audit.Details.Opportunity['headings'], items: LH.Audit.Details.Opportunity['items'] | LH.Audit.Details.Table['items']): void;
|
|
55
|
+
/**
|
|
56
|
+
* @param {LH.Audit.Details.Table['headings']} headings
|
|
57
|
+
* @param {LH.Audit.Details.Table['items']} results
|
|
58
|
+
* @param {LH.Audit.Details.Table['summary']=} summary
|
|
59
|
+
* @return {LH.Audit.Details.Table}
|
|
60
|
+
*/
|
|
61
|
+
static makeTableDetails(headings: LH.Audit.Details.Table['headings'], results: LH.Audit.Details.Table['items'], summary?: LH.Audit.Details.Table['summary'] | undefined): LH.Audit.Details.Table;
|
|
62
|
+
/**
|
|
63
|
+
* @param {LH.Audit.Details.List['items']} items
|
|
64
|
+
* @return {LH.Audit.Details.List}
|
|
65
|
+
*/
|
|
66
|
+
static makeListDetails(items: LH.Audit.Details.List['items']): LH.Audit.Details.List;
|
|
67
|
+
/** @typedef {{
|
|
68
|
+
* content: string;
|
|
69
|
+
* title: string;
|
|
70
|
+
* lineMessages: LH.Audit.Details.SnippetValue['lineMessages'];
|
|
71
|
+
* generalMessages: LH.Audit.Details.SnippetValue['generalMessages'];
|
|
72
|
+
* node?: LH.Audit.Details.NodeValue;
|
|
73
|
+
* maxLineLength?: number;
|
|
74
|
+
* maxLinesAroundMessage?: number;
|
|
75
|
+
* }} SnippetInfo */
|
|
76
|
+
/**
|
|
77
|
+
* @param {SnippetInfo} snippetInfo
|
|
78
|
+
* @return {LH.Audit.Details.SnippetValue}
|
|
79
|
+
*/
|
|
80
|
+
static makeSnippetDetails({ content, title, lineMessages, generalMessages, node, maxLineLength, maxLinesAroundMessage, }: {
|
|
81
|
+
content: string;
|
|
82
|
+
title: string;
|
|
83
|
+
lineMessages: LH.Audit.Details.SnippetValue['lineMessages'];
|
|
84
|
+
generalMessages: LH.Audit.Details.SnippetValue['generalMessages'];
|
|
85
|
+
node?: LH.Audit.Details.NodeValue | undefined;
|
|
86
|
+
maxLineLength?: number | undefined;
|
|
87
|
+
maxLinesAroundMessage?: number | undefined;
|
|
88
|
+
}): LH.Audit.Details.SnippetValue;
|
|
89
|
+
/**
|
|
90
|
+
* @param {string} content
|
|
91
|
+
* @param {number} maxLineLength
|
|
92
|
+
* @return {LH.Audit.Details.SnippetValue['lines']}
|
|
93
|
+
*/
|
|
94
|
+
static _makeSnippetLinesArray(content: string, maxLineLength: number): LH.Audit.Details.SnippetValue['lines'];
|
|
95
|
+
/**
|
|
96
|
+
* @param {LH.Audit.Details.Opportunity['headings']} headings
|
|
97
|
+
* @param {LH.Audit.Details.Opportunity['items']} items
|
|
98
|
+
* @param {number} overallSavingsMs
|
|
99
|
+
* @param {number=} overallSavingsBytes
|
|
100
|
+
* @return {LH.Audit.Details.Opportunity}
|
|
101
|
+
*/
|
|
102
|
+
static makeOpportunityDetails(headings: LH.Audit.Details.Opportunity['headings'], items: LH.Audit.Details.Opportunity['items'], overallSavingsMs: number, overallSavingsBytes?: number | undefined): LH.Audit.Details.Opportunity;
|
|
103
|
+
/**
|
|
104
|
+
* @param {LH.Artifacts.NodeDetails} node
|
|
105
|
+
* @return {LH.Audit.Details.NodeValue}
|
|
106
|
+
*/
|
|
107
|
+
static makeNodeItem(node: LH.Artifacts.NodeDetails): LH.Audit.Details.NodeValue;
|
|
108
|
+
/**
|
|
109
|
+
* @param {LH.Artifacts.Bundle} bundle
|
|
110
|
+
* @param {number} generatedLine
|
|
111
|
+
* @param {number} generatedColumn
|
|
112
|
+
* @return {LH.Audit.Details.SourceLocationValue['original']}
|
|
113
|
+
*/
|
|
114
|
+
static _findOriginalLocation(bundle: LH.Artifacts.Bundle, generatedLine: number, generatedColumn: number): LH.Audit.Details.SourceLocationValue['original'];
|
|
115
|
+
/**
|
|
116
|
+
* @param {string} url
|
|
117
|
+
* @param {number} line 0-indexed
|
|
118
|
+
* @param {number} column 0-indexed
|
|
119
|
+
* @param {LH.Artifacts.Bundle=} bundle
|
|
120
|
+
* @return {LH.Audit.Details.SourceLocationValue}
|
|
121
|
+
*/
|
|
122
|
+
static makeSourceLocation(url: string, line: number, column: number, bundle?: LH.Artifacts.Bundle | undefined): LH.Audit.Details.SourceLocationValue;
|
|
123
|
+
/**
|
|
124
|
+
* @param {LH.Artifacts.ConsoleMessage} entry
|
|
125
|
+
* @param {LH.Artifacts.Bundle=} bundle
|
|
126
|
+
* @return {LH.Audit.Details.SourceLocationValue | undefined}
|
|
127
|
+
*/
|
|
128
|
+
static makeSourceLocationFromConsoleMessage(entry: LH.Artifacts.ConsoleMessage, bundle?: LH.Artifacts.Bundle | undefined): LH.Audit.Details.SourceLocationValue | undefined;
|
|
129
|
+
/**
|
|
130
|
+
* @param {number|null} score
|
|
131
|
+
* @param {LH.Audit.ScoreDisplayMode} scoreDisplayMode
|
|
132
|
+
* @param {string} auditId
|
|
133
|
+
* @return {number|null}
|
|
134
|
+
*/
|
|
135
|
+
static _normalizeAuditScore(score: number | null, scoreDisplayMode: LH.Audit.ScoreDisplayMode, auditId: string): number | null;
|
|
136
|
+
/**
|
|
137
|
+
* @param {typeof Audit} audit
|
|
138
|
+
* @param {string | LH.IcuMessage} errorMessage
|
|
139
|
+
* @return {LH.RawIcu<LH.Audit.Result>}
|
|
140
|
+
*/
|
|
141
|
+
static generateErrorAuditResult(audit: typeof Audit, errorMessage: string | LH.IcuMessage): LH.RawIcu<LH.Audit.Result>;
|
|
142
|
+
/**
|
|
143
|
+
* @param {typeof Audit} audit
|
|
144
|
+
* @param {LH.Audit.Product} product
|
|
145
|
+
* @return {LH.RawIcu<LH.Audit.Result>}
|
|
146
|
+
*/
|
|
147
|
+
static generateAuditResult(audit: typeof Audit, product: LH.Audit.Product): LH.RawIcu<LH.Audit.Result>;
|
|
148
|
+
}
|
|
149
|
+
import * as LH from "../../types/lh.js";
|
|
150
|
+
//# sourceMappingURL=audit.d.ts.map
|
package/core/audits/audit.js
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
+
import * as LH from '../../types/lh.js';
|
|
7
8
|
import {isUnderTest} from '../lib/lh-env.js';
|
|
8
9
|
import * as statistics from '../lib/statistics.js';
|
|
9
10
|
import {Util} from '../util.cjs';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export default AutocompleteAudit;
|
|
2
|
+
/**
|
|
3
|
+
* The autocomplete attribute can have multiple tokens in it. All tokens should be valid and in the correct order.
|
|
4
|
+
* For example, cc-namez is an invalid token. tel mobile shipping section-foo are valid tokens, but out of order. The spec defines correct ordering, but in short, correct order is:
|
|
5
|
+
*
|
|
6
|
+
* [section-*] [shipping|billing] [home|work|mobile|fax|pager] <autofill field name>
|
|
7
|
+
*
|
|
8
|
+
* If either of these invalid situations, the autocomplete property will be an empty string. */
|
|
9
|
+
declare class AutocompleteAudit extends Audit {
|
|
10
|
+
/**
|
|
11
|
+
* @param {LH.Artifacts.InputElement} input
|
|
12
|
+
* @return {{hasValidTokens: boolean, isValidOrder?: boolean}}
|
|
13
|
+
*/
|
|
14
|
+
static checkAttributeValidity(input: LH.Artifacts.InputElement): {
|
|
15
|
+
hasValidTokens: boolean;
|
|
16
|
+
isValidOrder?: boolean;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* @param {LH.Artifacts} artifacts
|
|
20
|
+
* @return {LH.Audit.Product}
|
|
21
|
+
*/
|
|
22
|
+
static audit(artifacts: LH.Artifacts): LH.Audit.Product;
|
|
23
|
+
}
|
|
24
|
+
export namespace UIStrings {
|
|
25
|
+
const title: string;
|
|
26
|
+
const failureTitle: string;
|
|
27
|
+
const description: string;
|
|
28
|
+
const columnSuggestions: string;
|
|
29
|
+
const columnCurrent: string;
|
|
30
|
+
const warningInvalid: string;
|
|
31
|
+
const warningOrder: string;
|
|
32
|
+
const reviewOrder: string;
|
|
33
|
+
const manualReview: string;
|
|
34
|
+
}
|
|
35
|
+
import { Audit } from "./audit.js";
|
|
36
|
+
//# sourceMappingURL=autocomplete.d.ts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export default BFCache;
|
|
2
|
+
declare class BFCache extends Audit {
|
|
3
|
+
/**
|
|
4
|
+
* @param {LH.Artifacts} artifacts
|
|
5
|
+
* @return {Promise<LH.Audit.Product>}
|
|
6
|
+
*/
|
|
7
|
+
static audit(artifacts: LH.Artifacts): Promise<LH.Audit.Product>;
|
|
8
|
+
}
|
|
9
|
+
export namespace UIStrings {
|
|
10
|
+
const title: string;
|
|
11
|
+
const failureTitle: string;
|
|
12
|
+
const description: string;
|
|
13
|
+
const actionableFailureType: string;
|
|
14
|
+
const notActionableFailureType: string;
|
|
15
|
+
const supportPendingFailureType: string;
|
|
16
|
+
const failureReasonColumn: string;
|
|
17
|
+
const failureTypeColumn: string;
|
|
18
|
+
const displayValue: string;
|
|
19
|
+
}
|
|
20
|
+
import { Audit } from "./audit.js";
|
|
21
|
+
//# sourceMappingURL=bf-cache.d.ts.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export default BootupTime;
|
|
2
|
+
declare class BootupTime extends Audit {
|
|
3
|
+
/**
|
|
4
|
+
* @return {LH.Audit.ScoreOptions & {thresholdInMs: number}}
|
|
5
|
+
*/
|
|
6
|
+
static get defaultOptions(): import("../../types/audit.js").default.ScoreOptions & {
|
|
7
|
+
thresholdInMs: number;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* @param {LH.Artifacts} artifacts
|
|
11
|
+
* @param {LH.Audit.Context} context
|
|
12
|
+
* @return {Promise<LH.Audit.Product>}
|
|
13
|
+
*/
|
|
14
|
+
static audit(artifacts: LH.Artifacts, context: LH.Audit.Context): Promise<LH.Audit.Product>;
|
|
15
|
+
}
|
|
16
|
+
export namespace UIStrings {
|
|
17
|
+
const title: string;
|
|
18
|
+
const failureTitle: string;
|
|
19
|
+
const description: string;
|
|
20
|
+
const columnTotal: string;
|
|
21
|
+
const columnScriptEval: string;
|
|
22
|
+
const columnScriptParse: string;
|
|
23
|
+
const chromeExtensionsWarning: string;
|
|
24
|
+
}
|
|
25
|
+
import { Audit } from "./audit.js";
|
|
26
|
+
//# sourceMappingURL=bootup-time.d.ts.map
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
export type Simulator = import('../../lib/dependency-graph/simulator/simulator').Simulator;
|
|
2
|
+
export type Node = import('../../lib/dependency-graph/base-node.js').Node;
|
|
3
|
+
export type ByteEfficiencyProduct = {
|
|
4
|
+
items: Array<LH.Audit.ByteEfficiencyItem>;
|
|
5
|
+
wastedBytesByUrl?: Map<string, number> | undefined;
|
|
6
|
+
headings: LH.Audit.Details.Opportunity['headings'];
|
|
7
|
+
displayValue?: import("../../index.js").IcuMessage | undefined;
|
|
8
|
+
explanation?: import("../../index.js").IcuMessage | undefined;
|
|
9
|
+
warnings?: (string | import("../../index.js").IcuMessage)[] | undefined;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* @typedef {object} ByteEfficiencyProduct
|
|
13
|
+
* @property {Array<LH.Audit.ByteEfficiencyItem>} items
|
|
14
|
+
* @property {Map<string, number>=} wastedBytesByUrl
|
|
15
|
+
* @property {LH.Audit.Details.Opportunity['headings']} headings
|
|
16
|
+
* @property {LH.IcuMessage} [displayValue]
|
|
17
|
+
* @property {LH.IcuMessage} [explanation]
|
|
18
|
+
* @property {Array<string | LH.IcuMessage>} [warnings]
|
|
19
|
+
*/
|
|
20
|
+
/**
|
|
21
|
+
* @overview Used as the base for all byte efficiency audits. Computes total bytes
|
|
22
|
+
* and estimated time saved. Subclass and override `audit_` to return results.
|
|
23
|
+
*/
|
|
24
|
+
export class ByteEfficiencyAudit extends Audit {
|
|
25
|
+
/**
|
|
26
|
+
* Creates a score based on the wastedMs value using linear interpolation between control points.
|
|
27
|
+
*
|
|
28
|
+
* @param {number} wastedMs
|
|
29
|
+
* @return {number}
|
|
30
|
+
*/
|
|
31
|
+
static scoreForWastedMs(wastedMs: number): number;
|
|
32
|
+
/**
|
|
33
|
+
* Estimates the number of bytes this network record would have consumed on the network based on the
|
|
34
|
+
* uncompressed size (totalBytes). Uses the actual transfer size from the network record if applicable.
|
|
35
|
+
*
|
|
36
|
+
* @param {LH.Artifacts.NetworkRequest|undefined} networkRecord
|
|
37
|
+
* @param {number} totalBytes Uncompressed size of the resource
|
|
38
|
+
* @param {LH.Crdp.Network.ResourceType=} resourceType
|
|
39
|
+
* @return {number}
|
|
40
|
+
*/
|
|
41
|
+
static estimateTransferSize(networkRecord: LH.Artifacts.NetworkRequest | undefined, totalBytes: number, resourceType?: LH.Crdp.Network.ResourceType | undefined): number;
|
|
42
|
+
/**
|
|
43
|
+
* @param {LH.Artifacts} artifacts
|
|
44
|
+
* @param {LH.Audit.Context} context
|
|
45
|
+
* @return {Promise<LH.Audit.Product>}
|
|
46
|
+
*/
|
|
47
|
+
static audit(artifacts: LH.Artifacts, context: LH.Audit.Context): Promise<LH.Audit.Product>;
|
|
48
|
+
/**
|
|
49
|
+
* Computes the estimated effect of all the byte savings on the maximum of the following:
|
|
50
|
+
*
|
|
51
|
+
* - end time of the last long task in the provided graph
|
|
52
|
+
* - (if includeLoad is true or not provided) end time of the last node in the graph
|
|
53
|
+
*
|
|
54
|
+
* @param {Array<LH.Audit.ByteEfficiencyItem>} results The array of byte savings results per resource
|
|
55
|
+
* @param {Node} graph
|
|
56
|
+
* @param {Simulator} simulator
|
|
57
|
+
* @param {{includeLoad?: boolean, label?: string, providedWastedBytesByUrl?: Map<string, number>}=} options
|
|
58
|
+
* @return {number}
|
|
59
|
+
*/
|
|
60
|
+
static computeWasteWithTTIGraph(results: Array<LH.Audit.ByteEfficiencyItem>, graph: Node, simulator: Simulator, options?: {
|
|
61
|
+
includeLoad?: boolean;
|
|
62
|
+
label?: string;
|
|
63
|
+
providedWastedBytesByUrl?: Map<string, number>;
|
|
64
|
+
} | undefined): number;
|
|
65
|
+
/**
|
|
66
|
+
* @param {ByteEfficiencyProduct} result
|
|
67
|
+
* @param {Node|null} graph
|
|
68
|
+
* @param {Simulator} simulator
|
|
69
|
+
* @param {LH.Artifacts['GatherContext']} gatherContext
|
|
70
|
+
* @return {LH.Audit.Product}
|
|
71
|
+
*/
|
|
72
|
+
static createAuditProduct(result: ByteEfficiencyProduct, graph: Node | null, simulator: Simulator, gatherContext: LH.Artifacts['GatherContext']): LH.Audit.Product;
|
|
73
|
+
/**
|
|
74
|
+
* @param {LH.Artifacts} artifacts
|
|
75
|
+
* @param {Array<LH.Artifacts.NetworkRequest>} networkRecords
|
|
76
|
+
* @param {LH.Audit.Context} context
|
|
77
|
+
* @return {ByteEfficiencyProduct|Promise<ByteEfficiencyProduct>}
|
|
78
|
+
*/
|
|
79
|
+
static audit_(artifacts: LH.Artifacts, networkRecords: Array<LH.Artifacts.NetworkRequest>, context: LH.Audit.Context): ByteEfficiencyProduct | Promise<ByteEfficiencyProduct>;
|
|
80
|
+
}
|
|
81
|
+
import { Audit } from "../audit.js";
|
|
82
|
+
//# sourceMappingURL=byte-efficiency-audit.d.ts.map
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export default DuplicatedJavascript;
|
|
2
|
+
export type ByteEfficiencyProduct = import('./byte-efficiency-audit.js').ByteEfficiencyProduct;
|
|
3
|
+
export type Item = LH.Audit.ByteEfficiencyItem & {
|
|
4
|
+
source: string;
|
|
5
|
+
subItems: {
|
|
6
|
+
type: 'subitems';
|
|
7
|
+
items: SubItem[];
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export type SubItem = {
|
|
11
|
+
url: string;
|
|
12
|
+
sourceTransferBytes?: number;
|
|
13
|
+
};
|
|
14
|
+
declare class DuplicatedJavascript extends ByteEfficiencyAudit {
|
|
15
|
+
/**
|
|
16
|
+
* @param {string} source
|
|
17
|
+
*/
|
|
18
|
+
static _getNodeModuleName(source: string): string;
|
|
19
|
+
/**
|
|
20
|
+
* @param {LH.Artifacts} artifacts
|
|
21
|
+
* @param {LH.Audit.Context} context
|
|
22
|
+
*/
|
|
23
|
+
static _getDuplicationGroupedByNodeModules(artifacts: LH.Artifacts, context: LH.Audit.Context): Promise<Map<string, {
|
|
24
|
+
scriptId: string;
|
|
25
|
+
scriptUrl: string;
|
|
26
|
+
resourceSize: number;
|
|
27
|
+
}[]>>;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @param {LH.Artifacts.NetworkRequest|undefined} networkRecord
|
|
31
|
+
* @param {number} contentLength
|
|
32
|
+
*/
|
|
33
|
+
static _estimateTransferRatio(networkRecord: LH.Artifacts.NetworkRequest | undefined, contentLength: number): number;
|
|
34
|
+
/**
|
|
35
|
+
* This audit highlights JavaScript modules that appear to be duplicated across all resources,
|
|
36
|
+
* either within the same bundle or between different bundles. Each details item returned is
|
|
37
|
+
* a module with subItems for each resource that includes it. The wastedBytes for the details
|
|
38
|
+
* item is the number of bytes occupied by the sum of all but the largest copy of the module.
|
|
39
|
+
* wastedBytesByUrl attributes the cost of the bytes to a specific resource, for use by lantern.
|
|
40
|
+
* @param {LH.Artifacts} artifacts
|
|
41
|
+
* @param {Array<LH.Artifacts.NetworkRequest>} networkRecords
|
|
42
|
+
* @param {LH.Audit.Context} context
|
|
43
|
+
* @return {Promise<ByteEfficiencyProduct>}
|
|
44
|
+
*/
|
|
45
|
+
static audit_(artifacts: LH.Artifacts, networkRecords: Array<LH.Artifacts.NetworkRequest>, context: LH.Audit.Context): Promise<ByteEfficiencyProduct>;
|
|
46
|
+
}
|
|
47
|
+
export namespace UIStrings {
|
|
48
|
+
const title: string;
|
|
49
|
+
const description: string;
|
|
50
|
+
}
|
|
51
|
+
import { ByteEfficiencyAudit } from "./byte-efficiency-audit.js";
|
|
52
|
+
//# sourceMappingURL=duplicated-javascript.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export default EfficientAnimatedContent;
|
|
2
|
+
declare class EfficientAnimatedContent extends ByteEfficiencyAudit {
|
|
3
|
+
/**
|
|
4
|
+
* Calculate rough savings percentage based on 1000 real gifs transcoded to video
|
|
5
|
+
* @param {number} bytes
|
|
6
|
+
* @return {number} rough savings percentage
|
|
7
|
+
* @see https://github.com/GoogleChrome/lighthouse/issues/4696#issuecomment-380296510 bytes
|
|
8
|
+
*/
|
|
9
|
+
static getPercentSavings(bytes: number): number;
|
|
10
|
+
/**
|
|
11
|
+
* @param {LH.Artifacts} artifacts
|
|
12
|
+
* @param {Array<LH.Artifacts.NetworkRequest>} networkRecords
|
|
13
|
+
* @return {import('./byte-efficiency-audit.js').ByteEfficiencyProduct}
|
|
14
|
+
*/
|
|
15
|
+
static audit_(artifacts: LH.Artifacts, networkRecords: Array<LH.Artifacts.NetworkRequest>): import('./byte-efficiency-audit.js').ByteEfficiencyProduct;
|
|
16
|
+
}
|
|
17
|
+
export namespace UIStrings {
|
|
18
|
+
const title: string;
|
|
19
|
+
const description: string;
|
|
20
|
+
}
|
|
21
|
+
import { ByteEfficiencyAudit } from "./byte-efficiency-audit.js";
|
|
22
|
+
import { NetworkRequest } from "../../lib/network-request.js";
|
|
23
|
+
//# sourceMappingURL=efficient-animated-content.d.ts.map
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
export default LegacyJavascript;
|
|
2
|
+
export type Pattern = {
|
|
3
|
+
name: string;
|
|
4
|
+
expression: string;
|
|
5
|
+
estimateBytes?: ((result: PatternMatchResult) => number) | undefined;
|
|
6
|
+
};
|
|
7
|
+
export type PatternMatchResult = {
|
|
8
|
+
name: string;
|
|
9
|
+
line: number;
|
|
10
|
+
column: number;
|
|
11
|
+
count: number;
|
|
12
|
+
};
|
|
13
|
+
export type ByteEfficiencyProduct = import('./byte-efficiency-audit.js').ByteEfficiencyProduct;
|
|
14
|
+
export type Item = LH.Audit.ByteEfficiencyItem & {
|
|
15
|
+
subItems: {
|
|
16
|
+
type: 'subitems';
|
|
17
|
+
items: SubItem[];
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export type SubItem = {
|
|
21
|
+
signal: string;
|
|
22
|
+
location: LH.Audit.Details.SourceLocationValue;
|
|
23
|
+
};
|
|
24
|
+
declare class LegacyJavascript extends ByteEfficiencyAudit {
|
|
25
|
+
/**
|
|
26
|
+
* @param {string?} object
|
|
27
|
+
* @param {string} property
|
|
28
|
+
*/
|
|
29
|
+
static buildPolyfillExpression(object: string | null, property: string): string;
|
|
30
|
+
static getPolyfillData(): {
|
|
31
|
+
name: string;
|
|
32
|
+
coreJs2Module: string;
|
|
33
|
+
coreJs3Module: string;
|
|
34
|
+
}[];
|
|
35
|
+
/**
|
|
36
|
+
* @return {Pattern[]}
|
|
37
|
+
*/
|
|
38
|
+
static getPolyfillPatterns(): Pattern[];
|
|
39
|
+
/**
|
|
40
|
+
* @return {Pattern[]}
|
|
41
|
+
*/
|
|
42
|
+
static getTransformPatterns(): Pattern[];
|
|
43
|
+
/**
|
|
44
|
+
* Returns a collection of match results grouped by script url.
|
|
45
|
+
*
|
|
46
|
+
* @param {CodePatternMatcher} matcher
|
|
47
|
+
* @param {LH.Artifacts['Scripts']} scripts
|
|
48
|
+
* @param {LH.Artifacts.NetworkRequest[]} networkRecords
|
|
49
|
+
* @param {LH.Artifacts.Bundle[]} bundles
|
|
50
|
+
* @return {Map<LH.Artifacts.Script, PatternMatchResult[]>}
|
|
51
|
+
*/
|
|
52
|
+
static detectAcrossScripts(matcher: CodePatternMatcher, scripts: LH.Artifacts['Scripts'], networkRecords: LH.Artifacts.NetworkRequest[], bundles: LH.Artifacts.Bundle[]): Map<LH.Artifacts.Script, PatternMatchResult[]>;
|
|
53
|
+
/**
|
|
54
|
+
* @param {PatternMatchResult[]} matches
|
|
55
|
+
* @return {number}
|
|
56
|
+
*/
|
|
57
|
+
static estimateWastedBytes(matches: PatternMatchResult[]): number;
|
|
58
|
+
/**
|
|
59
|
+
* Utility function to estimate transfer size and cache calculation.
|
|
60
|
+
*
|
|
61
|
+
* Note: duplicated-javascript does this exact thing. In the future, consider
|
|
62
|
+
* making a generic estimator on ByteEfficienyAudit.
|
|
63
|
+
* @param {Map<string, number>} transferRatioByUrl
|
|
64
|
+
* @param {string} url
|
|
65
|
+
* @param {LH.Artifacts} artifacts
|
|
66
|
+
* @param {Array<LH.Artifacts.NetworkRequest>} networkRecords
|
|
67
|
+
*/
|
|
68
|
+
static estimateTransferRatioForScript(transferRatioByUrl: Map<string, number>, url: string, artifacts: LH.Artifacts, networkRecords: Array<LH.Artifacts.NetworkRequest>): Promise<number>;
|
|
69
|
+
/**
|
|
70
|
+
* @param {LH.Artifacts} artifacts
|
|
71
|
+
* @param {Array<LH.Artifacts.NetworkRequest>} networkRecords
|
|
72
|
+
* @param {LH.Audit.Context} context
|
|
73
|
+
* @return {Promise<ByteEfficiencyProduct>}
|
|
74
|
+
*/
|
|
75
|
+
static audit_(artifacts: LH.Artifacts, networkRecords: Array<LH.Artifacts.NetworkRequest>, context: LH.Audit.Context): Promise<ByteEfficiencyProduct>;
|
|
76
|
+
}
|
|
77
|
+
export namespace UIStrings {
|
|
78
|
+
const title: string;
|
|
79
|
+
const description: string;
|
|
80
|
+
}
|
|
81
|
+
import { ByteEfficiencyAudit } from "./byte-efficiency-audit.js";
|
|
82
|
+
/**
|
|
83
|
+
* Takes a list of patterns (consisting of a name identifier and a RegExp expression string)
|
|
84
|
+
* and returns match results with line / column information for a given code input.
|
|
85
|
+
*/
|
|
86
|
+
declare class CodePatternMatcher {
|
|
87
|
+
/**
|
|
88
|
+
* @param {Pattern[]} patterns
|
|
89
|
+
*/
|
|
90
|
+
constructor(patterns: Pattern[]);
|
|
91
|
+
re: RegExp;
|
|
92
|
+
patterns: Pattern[];
|
|
93
|
+
/**
|
|
94
|
+
* @param {string} code
|
|
95
|
+
* @return {PatternMatchResult[]}
|
|
96
|
+
*/
|
|
97
|
+
match(code: string): PatternMatchResult[];
|
|
98
|
+
}
|
|
99
|
+
//# sourceMappingURL=legacy-javascript.d.ts.map
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export default ModernImageFormats;
|
|
2
|
+
declare class ModernImageFormats extends ByteEfficiencyAudit {
|
|
3
|
+
/**
|
|
4
|
+
* @param {{naturalWidth: number, naturalHeight: number}} imageElement
|
|
5
|
+
* @return {number}
|
|
6
|
+
*/
|
|
7
|
+
static estimateWebPSizeFromDimensions(imageElement: {
|
|
8
|
+
naturalWidth: number;
|
|
9
|
+
naturalHeight: number;
|
|
10
|
+
}): number;
|
|
11
|
+
/**
|
|
12
|
+
* @param {{naturalWidth: number, naturalHeight: number}} imageElement
|
|
13
|
+
* @return {number}
|
|
14
|
+
*/
|
|
15
|
+
static estimateAvifSizeFromDimensions(imageElement: {
|
|
16
|
+
naturalWidth: number;
|
|
17
|
+
naturalHeight: number;
|
|
18
|
+
}): number;
|
|
19
|
+
/**
|
|
20
|
+
* @param {{jpegSize: number | undefined, webpSize: number | undefined}} otherFormatSizes
|
|
21
|
+
* @return {number|undefined}
|
|
22
|
+
*/
|
|
23
|
+
static estimateAvifSizeFromWebPAndJpegEstimates(otherFormatSizes: {
|
|
24
|
+
jpegSize: number | undefined;
|
|
25
|
+
webpSize: number | undefined;
|
|
26
|
+
}): number | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* @param {LH.Artifacts} artifacts
|
|
29
|
+
* @return {import('./byte-efficiency-audit.js').ByteEfficiencyProduct}
|
|
30
|
+
*/
|
|
31
|
+
static audit_(artifacts: LH.Artifacts): import('./byte-efficiency-audit.js').ByteEfficiencyProduct;
|
|
32
|
+
}
|
|
33
|
+
export namespace UIStrings {
|
|
34
|
+
const title: string;
|
|
35
|
+
const description: string;
|
|
36
|
+
}
|
|
37
|
+
import { ByteEfficiencyAudit } from "./byte-efficiency-audit.js";
|
|
38
|
+
//# sourceMappingURL=modern-image-formats.d.ts.map
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
export default OffscreenImages;
|
|
2
|
+
export type WasteResult = {
|
|
3
|
+
node: LH.Audit.Details.NodeValue;
|
|
4
|
+
url: string;
|
|
5
|
+
requestStartTime: number;
|
|
6
|
+
totalBytes: number;
|
|
7
|
+
wastedBytes: number;
|
|
8
|
+
wastedPercent: number;
|
|
9
|
+
};
|
|
10
|
+
/** @typedef {{node: LH.Audit.Details.NodeValue, url: string, requestStartTime: number, totalBytes: number, wastedBytes: number, wastedPercent: number}} WasteResult */
|
|
11
|
+
declare class OffscreenImages extends ByteEfficiencyAudit {
|
|
12
|
+
/**
|
|
13
|
+
* @param {{top: number, bottom: number, left: number, right: number}} imageRect
|
|
14
|
+
* @param {{innerWidth: number, innerHeight: number}} viewportDimensions
|
|
15
|
+
* @return {number}
|
|
16
|
+
*/
|
|
17
|
+
static computeVisiblePixels(imageRect: {
|
|
18
|
+
top: number;
|
|
19
|
+
bottom: number;
|
|
20
|
+
left: number;
|
|
21
|
+
right: number;
|
|
22
|
+
}, viewportDimensions: {
|
|
23
|
+
innerWidth: number;
|
|
24
|
+
innerHeight: number;
|
|
25
|
+
}): number;
|
|
26
|
+
/**
|
|
27
|
+
* @param {LH.Artifacts.ImageElement} image
|
|
28
|
+
* @param {{innerWidth: number, innerHeight: number}} viewportDimensions
|
|
29
|
+
* @param {Array<LH.Artifacts.NetworkRequest>} networkRecords
|
|
30
|
+
* @return {null|Error|WasteResult}
|
|
31
|
+
*/
|
|
32
|
+
static computeWaste(image: LH.Artifacts.ImageElement, viewportDimensions: {
|
|
33
|
+
innerWidth: number;
|
|
34
|
+
innerHeight: number;
|
|
35
|
+
}, networkRecords: Array<LH.Artifacts.NetworkRequest>): null | Error | WasteResult;
|
|
36
|
+
/**
|
|
37
|
+
* Filters out image requests that were requested after the last long task based on lantern timings.
|
|
38
|
+
*
|
|
39
|
+
* @param {WasteResult[]} images
|
|
40
|
+
* @param {LH.Artifacts.LanternMetric} lanternMetricData
|
|
41
|
+
*/
|
|
42
|
+
static filterLanternResults(images: WasteResult[], lanternMetricData: LH.Artifacts.LanternMetric): WasteResult[];
|
|
43
|
+
/**
|
|
44
|
+
* Filters out image requests that were requested after TTI.
|
|
45
|
+
*
|
|
46
|
+
* @param {WasteResult[]} images
|
|
47
|
+
* @param {number} interactiveTimestamp
|
|
48
|
+
*/
|
|
49
|
+
static filterObservedResults(images: WasteResult[], interactiveTimestamp: number): WasteResult[];
|
|
50
|
+
/**
|
|
51
|
+
* The default byte efficiency audit will report max(TTI, load), since lazy-loading offscreen
|
|
52
|
+
* images won't reduce the overall time and the wasted bytes are really only "wasted" for TTI,
|
|
53
|
+
* override the function to just look at TTI savings.
|
|
54
|
+
*
|
|
55
|
+
* @param {Array<LH.Audit.ByteEfficiencyItem>} results
|
|
56
|
+
* @param {LH.Gatherer.Simulation.GraphNode} graph
|
|
57
|
+
* @param {LH.Gatherer.Simulation.Simulator} simulator
|
|
58
|
+
* @return {number}
|
|
59
|
+
*/
|
|
60
|
+
static computeWasteWithTTIGraph(results: Array<LH.Audit.ByteEfficiencyItem>, graph: LH.Gatherer.Simulation.GraphNode, simulator: LH.Gatherer.Simulation.Simulator): number;
|
|
61
|
+
/**
|
|
62
|
+
* @param {LH.Artifacts} artifacts
|
|
63
|
+
* @param {Array<LH.Artifacts.NetworkRequest>} networkRecords
|
|
64
|
+
* @param {LH.Audit.Context} context
|
|
65
|
+
* @return {Promise<import('./byte-efficiency-audit.js').ByteEfficiencyProduct>}
|
|
66
|
+
*/
|
|
67
|
+
static audit_(artifacts: LH.Artifacts, networkRecords: Array<LH.Artifacts.NetworkRequest>, context: LH.Audit.Context): Promise<import('./byte-efficiency-audit.js').ByteEfficiencyProduct>;
|
|
68
|
+
}
|
|
69
|
+
export namespace UIStrings {
|
|
70
|
+
const title: string;
|
|
71
|
+
const description: string;
|
|
72
|
+
}
|
|
73
|
+
import { ByteEfficiencyAudit } from "./byte-efficiency-audit.js";
|
|
74
|
+
import { NetworkRequest } from "../../lib/network-request.js";
|
|
75
|
+
//# sourceMappingURL=offscreen-images.d.ts.map
|