You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: proto/lighthouse-result.proto
+119-32
Original file line number
Diff line number
Diff line change
@@ -128,7 +128,7 @@ message LighthouseResult {
128
128
map<string, CategoryGroup> category_groups=11;
129
129
130
130
// Message containing the configuration settings for the LH run
131
-
// Next ID: 10
131
+
// Next ID: 30
132
132
messageConfigSettings {
133
133
// The possible form factors an audit can be run in.
134
134
// This enum served the emulated_form_factor field, but in v7, that field
@@ -189,20 +189,93 @@ message LighthouseResult {
189
189
stringthrottling_method=8;
190
190
191
191
messageScreenEmulation {
192
-
// Overriding width value in pixels (minimum 0, maximum 10000000). 0 disables the override.
192
+
// Overriding width value in pixels (minimum 0, maximum 10000000).
193
+
// 0 disables the override.
193
194
doublewidth=1;
194
-
// Overriding height value in pixels (minimum 0, maximum 10000000). 0 disables the override.
195
+
// Overriding height value in pixels (minimum 0, maximum 10000000).
196
+
// 0 disables the override.
195
197
doubleheight=2;
196
198
// Overriding device scale factor value. 0 disables the override.
197
199
doubledeviceScaleFactor=3;
198
-
// Whether to emulate mobile device. This includes viewport meta tag, overlay scrollbars, text autosizing and more.
200
+
// Whether to emulate mobile device. This includes viewport meta tag,
201
+
// overlay scrollbars, text autosizing and more.
199
202
boolmobile=4;
200
-
// Whether screen emulation is disabled. If true, the other emulation settings are ignored.
203
+
// Whether screen emulation is disabled. If true, the other emulation
204
+
// settings are ignored.
201
205
booldisabled=5;
202
206
}
203
207
204
-
// Screen emulation properties (width, height, dpr, mobile viewport) to apply or an object of `{disabled: true}` if Lighthouse should avoid applying screen emulation. If either emulation is applied outside of Lighthouse, or it's being run on a mobile device, it typically should be set to disabled. For desktop, we recommend applying consistent desktop screen emulation.
208
+
// Screen emulation properties (width, height, dpr, mobile viewport) to
209
+
// apply or an object of `{disabled: true}` if Lighthouse should avoid
210
+
// applying screen emulation. If either emulation is applied outside of
211
+
// Lighthouse, or it's being run on a mobile device, it typically should be
212
+
// set to disabled. For desktop, we recommend applying consistent desktop
213
+
// screen emulation.
205
214
ScreenEmulationscreen_emulation=9;
215
+
216
+
// The type(s) of report output to be produced: 'json' | 'html' | 'csv'
217
+
stringoutput=10;
218
+
219
+
// The maximum amount of time to wait for a page content render, in ms. If
220
+
// no content is rendered within this limit, the run is aborted with an
221
+
// error.
222
+
int64max_wait_for_fcp=11;
223
+
// The maximum amount of time to wait for a page to load, in ms.
224
+
int64max_wait_for_load=12;
225
+
// The number of milliseconds to wait after FCP until the page should be
226
+
// considered loaded.
227
+
int64pause_after_fcp_ms=13;
228
+
// The number of milliseconds to wait after the load event until the page
229
+
// should be considered loaded.
230
+
int64pause_after_load_ms=14;
231
+
// The number of milliseconds to wait between high priority network requests
232
+
// or 3 simultaneous requests before the page should be considered loaded.
233
+
int64network_quiet_threshold_ms=15;
234
+
// The number of milliseconds to wait between long tasks until the page
235
+
// should be considered loaded.
236
+
int64cpu_quiet_threshold_ms=16;
237
+
238
+
// User Agent string to apply, `false` to not change the host's UA string,
239
+
// or `true` to use Lighthouse's default UA string.
240
+
stringemulated_user_agent=17;
241
+
// Flag indicating the run should only audit.
242
+
boolaudit_mode=18;
243
+
// Flag indicating the run should only gather.
244
+
boolgather_mode=19;
245
+
// Flag indicating that the browser storage should not be reset for the
246
+
// audit.
247
+
booldisable_storage_reset=20;
248
+
// Flag indicating that Lighthouse should pause after page load to wait for
249
+
// the user's permission to continue the audit.
250
+
booldebug_navigation=21;
251
+
// If set to true, gatherers should avoid any behavior that may be
252
+
// destructive to the page state. (e.g. extra navigations, resizing the
253
+
// viewport)
254
+
booluse_passive_gathering=22;
255
+
// Disables collection of the full page screenshot, which can be rather
256
+
// large and possibly leave the page in an undesirable state.
257
+
booldisable_full_page_screenshot=23;
258
+
// If set to true, will skip the initial navigation to about:blank.
259
+
boolskip_about_blank=24;
260
+
// The URL to use for the "blank" neutral page in between navigations.
261
+
// Defaults to `about:blank`.
262
+
stringblank_page=25;
263
+
264
+
// List of URL patterns to block.
265
+
repeatedstringblocked_url_patterns=26;
266
+
267
+
// Comma-delimited list of trace categories to include.
268
+
stringadditional_trace_categories=27;
269
+
270
+
// If present, the run should only conduct this list of audits.
271
+
repeatedstringonly_audits=28;
272
+
// If present, the run should skip this list of audits.
273
+
repeatedstringskip_audits=29;
274
+
275
+
// Additional fields we haven't explicitly typed for proto:
276
+
// budgets
277
+
// extra_headers
278
+
// precomputed_lantern_data
206
279
}
207
280
208
281
// The settings that were used to run this audit
@@ -248,7 +321,8 @@ message LighthouseResult {
248
321
// URL displayed on the page after Lighthouse finishes.
249
322
stringfinal_displayed_url=18;
250
323
251
-
// Screenshot data of the full page, along with node rects relevant to the audit results.
324
+
// Screenshot data of the full page, along with node rects relevant to the
325
+
// audit results.
252
326
google.protobuf.Valuefull_page_screenshot=19;
253
327
254
328
// Entity classification data.
@@ -281,7 +355,7 @@ message LhrCategory {
281
355
// This value is nullable, so is a `Value` type
282
356
google.protobuf.Valuescore=4;
283
357
284
-
// An description for manual audits within this category.
358
+
// A description for manual audits within this category.
285
359
stringmanual_description=5;
286
360
287
361
// A Category's reference to an AuditResult, with a weight for category
@@ -390,19 +464,24 @@ message AuditResult {
390
464
391
465
// Message containing the audit's MetricSavings.
392
466
messageMetricSavings {
393
-
// Optional numeric value representing the audit's savings for the LCP metric.
467
+
// Optional numeric value representing the audit's savings for the LCP
468
+
// metric.
394
469
optionalgoogle.protobuf.DoubleValueLCP=1;
395
470
396
-
// Optional numeric value representing the audit's savings for the FCP metric.
471
+
// Optional numeric value representing the audit's savings for the FCP
472
+
// metric.
397
473
optionalgoogle.protobuf.DoubleValueFCP=2;
398
474
399
-
// Optional numeric value representing the audit's savings for the CLS metric.
475
+
// Optional numeric value representing the audit's savings for the CLS
476
+
// metric.
400
477
optionalgoogle.protobuf.DoubleValueCLS=3;
401
478
402
-
// Optional numeric value representing the audit's savings for the TBT metric.
479
+
// Optional numeric value representing the audit's savings for the TBT
480
+
// metric.
403
481
optionalgoogle.protobuf.DoubleValueTBT=4;
404
482
405
-
// Optional numeric value representing the audit's savings for the INP metric.
483
+
// Optional numeric value representing the audit's savings for the INP
484
+
// metric.
406
485
optionalgoogle.protobuf.DoubleValueINP=5;
407
486
}
408
487
@@ -616,30 +695,34 @@ message I18n {
616
695
// of a browser, whereas field data often summarizes hundreds+ of page loads
617
696
stringruntime_single_load_tooltip=50;
618
697
619
-
// Descriptive label that this analysis only considers the initial load of the page,
620
-
// and no interaction beyond when the page had "fully loaded"
698
+
// Descriptive label that this analysis only considers the initial load of
699
+
// the page, and no interaction beyond when the page had "fully loaded"
621
700
stringruntime_analysis_window=51;
622
701
623
-
// Label for an interactive control that will reveal or hide a group of content.
624
-
// This control toggles between the text 'Show' and 'Hide'.
702
+
// Label for an interactive control that will reveal or hide a group of
703
+
// content. This control toggles between the text 'Show' and 'Hide'.
625
704
stringshow=52;
626
705
627
-
// Label for an interactive control that will reveal or hide a group of content.
628
-
// This control toggles between the text 'Show' and 'Hide'.
706
+
// Label for an interactive control that will reveal or hide a group of
707
+
// content. This control toggles between the text 'Show' and 'Hide'.
629
708
stringhide=53;
630
709
631
-
// Label for an interactive control that will reveal or hide a group of content.
632
-
// This control toggles between the text 'Expand view' and 'Collapse view'.
710
+
// Label for an interactive control that will reveal or hide a group of
711
+
// content. This control toggles between the text 'Expand view' and
712
+
// 'Collapse view'.
633
713
stringexpand_view=54;
634
714
635
-
// Label for an interactive control that will reveal or hide a group of content.
636
-
// This control toggles between the text 'Expand view' and 'Collapse view'.
715
+
// Label for an interactive control that will reveal or hide a group of
716
+
// content. This control toggles between the text 'Expand view' and
717
+
// 'Collapse view'.
637
718
stringcollapse_view=55;
638
719
639
-
// Label indicating that Lighthouse throttled the page to emulate a slow 4G network connection.
720
+
// Label indicating that Lighthouse throttled the page to emulate a slow 4G
721
+
// network connection.
640
722
stringruntime_slow_4g=56;
641
723
642
-
// Label indicating that Lighthouse throttled the page using custom throttling settings.
724
+
// Label indicating that Lighthouse throttled the page using custom
725
+
// throttling settings.
643
726
stringruntime_custom=57;
644
727
645
728
// This label is for a button that will show the user a trace of the page.
@@ -654,28 +737,32 @@ message I18n {
654
737
// Label for a row decorative chip indiciating entity is first-party.
655
738
stringfirst_party_chip_label=61;
656
739
657
-
// Label for a link tooltip indicating that it will be opened in a new tab of the browser.
740
+
// Label for a link tooltip indicating that it will be opened in a new tab
741
+
// of the browser.
658
742
stringopen_in_a_new_tab_tooltip=62;
659
743
660
-
// Label for a generic category for all resources that could not be attributed against a 1st or 3rd party entity.
744
+
// Label for a generic category for all resources that could not be
745
+
// attributed against a 1st or 3rd party entity.
661
746
stringunattributable=63;
662
747
663
748
// This label is for a button that will show the user a trace of the page.
664
749
stringdropdown_view_unthrottled_trace=64;
665
750
666
-
// Descriptive label that this analysis considers some arbitrary period of time containing user interactions
751
+
// Descriptive label that this analysis considers some arbitrary period of
752
+
// time containing user interactions
667
753
stringruntime_analysis_window_timespan=65;
668
754
669
-
// Descriptive label that this analysis considers a snapshot of the page at a single point in time
755
+
// Descriptive label that this analysis considers a snapshot of the page at
756
+
// a single point in time
670
757
stringruntime_analysis_window_snapshot=66;
671
758
}
672
759
673
760
// The message holding all formatted strings used in the renderer.
Copy file name to clipboardexpand all lines: types/lhr/settings.d.ts
+1-1
Original file line number
Diff line number
Diff line change
@@ -116,7 +116,7 @@ export type ScreenEmulationSettings = {
116
116
pauseAfterFcpMs?: number;
117
117
/** The number of milliseconds to wait after the load event until the page should be considered loaded. */
118
118
pauseAfterLoadMs?: number;
119
-
/** The number of milliseconds to wait between high priority network requests or 3 simulataneous requests before the page should be considered loaded. */
119
+
/** The number of milliseconds to wait between high priority network requests or 3 simultaneous requests before the page should be considered loaded. */
120
120
networkQuietThresholdMs?: number;
121
121
/** The number of milliseconds to wait between long tasks until the page should be considered loaded. */
0 commit comments