lighthouse 10.4.0-dev.20230802 → 11.0.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/core/config/default-config.js +0 -2
- package/dist/report/flow.js +1 -1
- package/package.json +3 -3
- package/shared/localization/locales/ar-XB.json +185 -14
- package/shared/localization/locales/ar.json +185 -14
- package/shared/localization/locales/bg.json +185 -14
- package/shared/localization/locales/ca.json +190 -19
- package/shared/localization/locales/cs.json +185 -14
- package/shared/localization/locales/da.json +185 -14
- package/shared/localization/locales/de.json +185 -14
- package/shared/localization/locales/el.json +185 -14
- package/shared/localization/locales/en-GB.json +185 -14
- package/shared/localization/locales/en-US.json +0 -9
- package/shared/localization/locales/en-XA.json +185 -14
- package/shared/localization/locales/en-XL.json +0 -9
- package/shared/localization/locales/es-419.json +185 -14
- package/shared/localization/locales/es.json +185 -14
- package/shared/localization/locales/fi.json +185 -14
- package/shared/localization/locales/fil.json +185 -14
- package/shared/localization/locales/fr.json +185 -14
- package/shared/localization/locales/he.json +186 -15
- package/shared/localization/locales/hi.json +185 -14
- package/shared/localization/locales/hr.json +185 -14
- package/shared/localization/locales/hu.json +185 -14
- package/shared/localization/locales/id.json +185 -14
- package/shared/localization/locales/it.json +185 -14
- package/shared/localization/locales/ja.json +185 -14
- package/shared/localization/locales/ko.json +185 -14
- package/shared/localization/locales/lt.json +185 -14
- package/shared/localization/locales/lv.json +185 -14
- package/shared/localization/locales/nl.json +185 -14
- package/shared/localization/locales/no.json +185 -14
- package/shared/localization/locales/pl.json +185 -14
- package/shared/localization/locales/pt-PT.json +185 -14
- package/shared/localization/locales/pt.json +190 -19
- package/shared/localization/locales/ro.json +185 -14
- package/shared/localization/locales/ru.json +185 -14
- package/shared/localization/locales/sk.json +185 -14
- package/shared/localization/locales/sl.json +185 -14
- package/shared/localization/locales/sr-Latn.json +185 -14
- package/shared/localization/locales/sr.json +185 -14
- package/shared/localization/locales/sv.json +185 -14
- package/shared/localization/locales/ta.json +185 -14
- package/shared/localization/locales/te.json +185 -14
- package/shared/localization/locales/th.json +185 -14
- package/shared/localization/locales/tr.json +185 -14
- package/shared/localization/locales/uk.json +185 -14
- package/shared/localization/locales/vi.json +185 -14
- package/shared/localization/locales/zh-HK.json +185 -14
- package/shared/localization/locales/zh-TW.json +185 -14
- package/shared/localization/locales/zh.json +185 -14
- package/types/internal/rxjs.d.ts +26 -0
- package/core/audits/resource-summary.d.ts +0 -16
- package/core/audits/resource-summary.js +0 -104
|
@@ -17,6 +17,15 @@
|
|
|
17
17
|
"core/audits/accessibility/aria-allowed-attr.js | title": {
|
|
18
18
|
"message": "`[aria-*]` 屬性與其角色相符"
|
|
19
19
|
},
|
|
20
|
+
"core/audits/accessibility/aria-allowed-role.js | description": {
|
|
21
|
+
"message": "ARIA `role`s enable assistive technologies to know the role of each element on the web page. If the `role` values are misspelled, not existing ARIA `role` values, or abstract roles, then the purpose of the element will not be communicated to users of assistive technologies. [Learn more about ARIA roles](https://dequeuniversity.com/rules/axe/4.7/aria-allowed-roles)."
|
|
22
|
+
},
|
|
23
|
+
"core/audits/accessibility/aria-allowed-role.js | failureTitle": {
|
|
24
|
+
"message": "Values assigned to `role=\"\"` are not valid ARIA roles."
|
|
25
|
+
},
|
|
26
|
+
"core/audits/accessibility/aria-allowed-role.js | title": {
|
|
27
|
+
"message": "Values assigned to `role=\"\"` are valid ARIA roles."
|
|
28
|
+
},
|
|
20
29
|
"core/audits/accessibility/aria-command-name.js | description": {
|
|
21
30
|
"message": "如果元素沒有無障礙名稱,螢幕閱讀器只會讀出一般名稱,導致依賴螢幕閱讀器的使用者無法使用該欄位。[瞭解如何讓指令元素更容易使用](https://dequeuniversity.com/rules/axe/4.7/aria-command-name)。"
|
|
22
31
|
},
|
|
@@ -26,6 +35,15 @@
|
|
|
26
35
|
"core/audits/accessibility/aria-command-name.js | title": {
|
|
27
36
|
"message": "`button`、`link` 和 `menuitem` 元素具有無障礙名稱"
|
|
28
37
|
},
|
|
38
|
+
"core/audits/accessibility/aria-dialog-name.js | description": {
|
|
39
|
+
"message": "如果 ARIA 對話框元素沒有無障礙名稱,螢幕閱讀器使用者就可能無法分辨這些元素的用途。[瞭解如何讓 ARIA 對話框元素更易用](https://dequeuniversity.com/rules/axe/4.7/aria-dialog-name)。"
|
|
40
|
+
},
|
|
41
|
+
"core/audits/accessibility/aria-dialog-name.js | failureTitle": {
|
|
42
|
+
"message": "含有 `role=\"dialog\"` 或 `role=\"alertdialog\"` 的元素沒有無障礙名稱。"
|
|
43
|
+
},
|
|
44
|
+
"core/audits/accessibility/aria-dialog-name.js | title": {
|
|
45
|
+
"message": "含有 `role=\"dialog\"` 或 `role=\"alertdialog\"` 的元素具有無障礙名稱。"
|
|
46
|
+
},
|
|
29
47
|
"core/audits/accessibility/aria-hidden-body.js | description": {
|
|
30
48
|
"message": "在 `<body>` 文件上設定 `aria-hidden=\"true\"` 時,輔助技術 (例如螢幕閱讀器) 的運作將無法保持一致。[瞭解 `aria-hidden` 如何影響文件內文](https://dequeuniversity.com/rules/axe/4.7/aria-hidden-body)。"
|
|
31
49
|
},
|
|
@@ -107,6 +125,15 @@
|
|
|
107
125
|
"core/audits/accessibility/aria-roles.js | title": {
|
|
108
126
|
"message": "`[role]` 值有效"
|
|
109
127
|
},
|
|
128
|
+
"core/audits/accessibility/aria-text.js | description": {
|
|
129
|
+
"message": "在由標記分割的文字節點前後新增 `role=text`,VoiceOver 就會將其視為一個詞組,但系統不會通知該元素的可聚焦子元素。[進一步瞭解 `role=text` 屬性](https://dequeuniversity.com/rules/axe/4.7/aria-text)。"
|
|
130
|
+
},
|
|
131
|
+
"core/audits/accessibility/aria-text.js | failureTitle": {
|
|
132
|
+
"message": "具有 `role=text` 屬性的元素有可聚焦的子元素。"
|
|
133
|
+
},
|
|
134
|
+
"core/audits/accessibility/aria-text.js | title": {
|
|
135
|
+
"message": "具有 `role=text` 屬性的元素沒有可聚焦的子元素。"
|
|
136
|
+
},
|
|
110
137
|
"core/audits/accessibility/aria-toggle-field-name.js | description": {
|
|
111
138
|
"message": "如果切換欄位沒有無障礙名稱,螢幕閱讀器只會讀出一般名稱,導致依賴螢幕閱讀器的使用者無法使用該欄位。[進一步瞭解切換欄位](https://dequeuniversity.com/rules/axe/4.7/aria-toggle-field-name)。"
|
|
112
139
|
},
|
|
@@ -227,6 +254,15 @@
|
|
|
227
254
|
"core/audits/accessibility/duplicate-id-aria.js | title": {
|
|
228
255
|
"message": "ARIA ID 沒有重複"
|
|
229
256
|
},
|
|
257
|
+
"core/audits/accessibility/empty-heading.js | description": {
|
|
258
|
+
"message": "如果 heading 沒有內容或無障礙設計的文字,螢幕閱讀器使用者就無法存取網頁結構中的資料。[進一步瞭解 headings](https://dequeuniversity.com/rules/axe/4.7/empty-heading)。"
|
|
259
|
+
},
|
|
260
|
+
"core/audits/accessibility/empty-heading.js | failureTitle": {
|
|
261
|
+
"message": "Heading 元素不含任何內容。"
|
|
262
|
+
},
|
|
263
|
+
"core/audits/accessibility/empty-heading.js | title": {
|
|
264
|
+
"message": "所有 heading 元素都包含內容。"
|
|
265
|
+
},
|
|
230
266
|
"core/audits/accessibility/form-field-multiple-labels.js | description": {
|
|
231
267
|
"message": "使用第一個、最後一個或所有標籤的螢幕閱讀器等輔助技術,可能無法將包含多個標籤的表格欄位正確讀出。[瞭解如何使用表格標籤](https://dequeuniversity.com/rules/axe/4.7/form-field-multiple-labels)。"
|
|
232
268
|
},
|
|
@@ -281,6 +317,15 @@
|
|
|
281
317
|
"core/audits/accessibility/html-xml-lang-mismatch.js | title": {
|
|
282
318
|
"message": "`<html>` 元素的 `[xml:lang]` 屬性與 `[lang]` 屬性的基本語言相同。"
|
|
283
319
|
},
|
|
320
|
+
"core/audits/accessibility/identical-links-same-purpose.js | description": {
|
|
321
|
+
"message": "具有相同目的地的連結應提供相同的描述,協助使用者瞭解連結的用途,並決定是否前往。[進一步瞭解相同連結](https://dequeuniversity.com/rules/axe/4.7/identical-links-same-purpose)。"
|
|
322
|
+
},
|
|
323
|
+
"core/audits/accessibility/identical-links-same-purpose.js | failureTitle": {
|
|
324
|
+
"message": "相同連結的用途不同。"
|
|
325
|
+
},
|
|
326
|
+
"core/audits/accessibility/identical-links-same-purpose.js | title": {
|
|
327
|
+
"message": "相同的連結用途相同。"
|
|
328
|
+
},
|
|
284
329
|
"core/audits/accessibility/image-alt.js | description": {
|
|
285
330
|
"message": "資訊型元素應提供簡短貼切的替代文字。只要將 alt 屬性留空,系統便會忽略該裝飾元素。[進一步瞭解此 `alt` 屬性](https://dequeuniversity.com/rules/axe/4.7/image-alt)。"
|
|
286
331
|
},
|
|
@@ -290,6 +335,15 @@
|
|
|
290
335
|
"core/audits/accessibility/image-alt.js | title": {
|
|
291
336
|
"message": "圖片元素具有 `[alt]` 屬性"
|
|
292
337
|
},
|
|
338
|
+
"core/audits/accessibility/image-redundant-alt.js | description": {
|
|
339
|
+
"message": "Informative elements should aim for short, descriptive alternative text. Alternative text that is exactly the same as the text adjacent to the link or image is potentially confusing for screen reader users, because the text will be read twice. [Learn more about the `alt` attribute](https://dequeuniversity.com/rules/axe/4.7/image-redundant-alt)."
|
|
340
|
+
},
|
|
341
|
+
"core/audits/accessibility/image-redundant-alt.js | failureTitle": {
|
|
342
|
+
"message": "Image elements have `[alt]` attributes that are redundant text."
|
|
343
|
+
},
|
|
344
|
+
"core/audits/accessibility/image-redundant-alt.js | title": {
|
|
345
|
+
"message": "Image elements do not have `[alt]` attributes that are redundant text."
|
|
346
|
+
},
|
|
293
347
|
"core/audits/accessibility/input-button-name.js | description": {
|
|
294
348
|
"message": "您可以為輸入按鈕新增可識別且可存取的文字,協助螢幕閱讀器使用者瞭解輸入按鈕的用途。[進一步瞭解輸入按鈕](https://dequeuniversity.com/rules/axe/4.7/input-button-name)。"
|
|
295
349
|
},
|
|
@@ -308,6 +362,15 @@
|
|
|
308
362
|
"core/audits/accessibility/input-image-alt.js | title": {
|
|
309
363
|
"message": "`<input type=\"image\">` 元素具有 `[alt]` 文字"
|
|
310
364
|
},
|
|
365
|
+
"core/audits/accessibility/label-content-name-mismatch.js | description": {
|
|
366
|
+
"message": "Visible text labels that do not match the accessible name can result in a confusing experience for screen reader users. [Learn more about accessible names](https://dequeuniversity.com/rules/axe/4.7/label-content-name-mismatch)."
|
|
367
|
+
},
|
|
368
|
+
"core/audits/accessibility/label-content-name-mismatch.js | failureTitle": {
|
|
369
|
+
"message": "Elements with visible text labels do not have matching accessible names."
|
|
370
|
+
},
|
|
371
|
+
"core/audits/accessibility/label-content-name-mismatch.js | title": {
|
|
372
|
+
"message": "Elements with visible text labels have matching accessible names."
|
|
373
|
+
},
|
|
311
374
|
"core/audits/accessibility/label.js | description": {
|
|
312
375
|
"message": "標籤可以確保輔助技術 (例如螢幕閱讀器) 正確朗讀表格控制項。[進一步瞭解表格元素標籤](https://dequeuniversity.com/rules/axe/4.7/label)。"
|
|
313
376
|
},
|
|
@@ -317,6 +380,24 @@
|
|
|
317
380
|
"core/audits/accessibility/label.js | title": {
|
|
318
381
|
"message": "表格元素具有相關聯的標籤"
|
|
319
382
|
},
|
|
383
|
+
"core/audits/accessibility/landmark-one-main.js | description": {
|
|
384
|
+
"message": "其中一項主要標籤可協助螢幕閱讀器使用者瀏覽網頁。[進一步瞭解標籤](https://dequeuniversity.com/rules/axe/4.7/landmark-one-main)。"
|
|
385
|
+
},
|
|
386
|
+
"core/audits/accessibility/landmark-one-main.js | failureTitle": {
|
|
387
|
+
"message": "文件不含主要標籤。"
|
|
388
|
+
},
|
|
389
|
+
"core/audits/accessibility/landmark-one-main.js | title": {
|
|
390
|
+
"message": "文件具有主要標籤。"
|
|
391
|
+
},
|
|
392
|
+
"core/audits/accessibility/link-in-text-block.js | description": {
|
|
393
|
+
"message": "很多使用者難以閱讀或無法閱讀低對比度的文字。可辨別的連結文字有助改善低視力使用者的體驗。[瞭解如何設定可明確辨別的連結](https://dequeuniversity.com/rules/axe/4.7/link-in-text-block)。"
|
|
394
|
+
},
|
|
395
|
+
"core/audits/accessibility/link-in-text-block.js | failureTitle": {
|
|
396
|
+
"message": "連結需依賴顏色辨別。"
|
|
397
|
+
},
|
|
398
|
+
"core/audits/accessibility/link-in-text-block.js | title": {
|
|
399
|
+
"message": "不需依賴顏色亦可明確辨別連結。"
|
|
400
|
+
},
|
|
320
401
|
"core/audits/accessibility/link-name.js | description": {
|
|
321
402
|
"message": "使用可辨別、不重複且可聚焦的連結文字 (以及連結圖片的替代文字),有助改善螢幕閱讀器使用者的瀏覽體驗。[瞭解如何讓連結更易用](https://dequeuniversity.com/rules/axe/4.7/link-name)。"
|
|
322
403
|
},
|
|
@@ -371,6 +452,24 @@
|
|
|
371
452
|
"core/audits/accessibility/object-alt.js | title": {
|
|
372
453
|
"message": "`<object>` 元素具有替代文字"
|
|
373
454
|
},
|
|
455
|
+
"core/audits/accessibility/select-name.js | description": {
|
|
456
|
+
"message": "沒有有效標籤的 Form 元素可能對螢幕閱讀器使用者造成困擾。[進一步瞭解 `select` 元素](https://dequeuniversity.com/rules/axe/4.7/select-name)。"
|
|
457
|
+
},
|
|
458
|
+
"core/audits/accessibility/select-name.js | failureTitle": {
|
|
459
|
+
"message": "Select 元素沒有相關聯的 label 元素。"
|
|
460
|
+
},
|
|
461
|
+
"core/audits/accessibility/select-name.js | title": {
|
|
462
|
+
"message": "Select 元素具有關聯的 label 元素。"
|
|
463
|
+
},
|
|
464
|
+
"core/audits/accessibility/skip-link.js | description": {
|
|
465
|
+
"message": "Including a skip link can help users skip to the main content to save time. [Learn more about skip links](https://dequeuniversity.com/rules/axe/4.7/skip-link)."
|
|
466
|
+
},
|
|
467
|
+
"core/audits/accessibility/skip-link.js | failureTitle": {
|
|
468
|
+
"message": "Skip links are not focusable."
|
|
469
|
+
},
|
|
470
|
+
"core/audits/accessibility/skip-link.js | title": {
|
|
471
|
+
"message": "Skip links are focusable."
|
|
472
|
+
},
|
|
374
473
|
"core/audits/accessibility/tabindex.js | description": {
|
|
375
474
|
"message": "如果值大於 0,代表已採用明確的瀏覽排序。雖然此做法在技術上可行,但通常會對依賴輔助技術的使用者造成困擾。[進一步瞭解此 `tabindex` 屬性](https://dequeuniversity.com/rules/axe/4.7/tabindex)。"
|
|
376
475
|
},
|
|
@@ -380,6 +479,15 @@
|
|
|
380
479
|
"core/audits/accessibility/tabindex.js | title": {
|
|
381
480
|
"message": "所有元素的 `[tabindex]` 值皆未超過 0"
|
|
382
481
|
},
|
|
482
|
+
"core/audits/accessibility/table-duplicate-name.js | description": {
|
|
483
|
+
"message": "The summary attribute should describe the table structure, while `<caption>` should have the onscreen title. Accurate table mark-up helps users of screen readers. [Learn more about summary and caption](https://dequeuniversity.com/rules/axe/4.7/table-duplicate-name)."
|
|
484
|
+
},
|
|
485
|
+
"core/audits/accessibility/table-duplicate-name.js | failureTitle": {
|
|
486
|
+
"message": "Tables have the same content in the summary attribute and `<caption>.`"
|
|
487
|
+
},
|
|
488
|
+
"core/audits/accessibility/table-duplicate-name.js | title": {
|
|
489
|
+
"message": "Tables have different content in the summary attribute and `<caption>`."
|
|
490
|
+
},
|
|
383
491
|
"core/audits/accessibility/table-fake-caption.js | description": {
|
|
384
492
|
"message": "螢幕閱讀器的功能可讓使用者更輕鬆瀏覽表格。如果表格使用實際的標題元素,而非含有 `[colspan]` 屬性的儲存格,或許可提升螢幕閱讀器的使用體驗。[進一步瞭解標題](https://dequeuniversity.com/rules/axe/4.7/table-fake-caption)。"
|
|
385
493
|
},
|
|
@@ -389,6 +497,15 @@
|
|
|
389
497
|
"core/audits/accessibility/table-fake-caption.js | title": {
|
|
390
498
|
"message": "表格使用 `<caption>` 屬性表示標題,而非使用含有 `[colspan]` 屬性的儲存格。"
|
|
391
499
|
},
|
|
500
|
+
"core/audits/accessibility/target-size.js | description": {
|
|
501
|
+
"message": "Touch targets with sufficient size and spacing help users who may have difficulty targeting small controls to activate the targets. [Learn more about touch targets](https://dequeuniversity.com/rules/axe/4.7/target-size)."
|
|
502
|
+
},
|
|
503
|
+
"core/audits/accessibility/target-size.js | failureTitle": {
|
|
504
|
+
"message": "觸控目標的大小或間距不足。"
|
|
505
|
+
},
|
|
506
|
+
"core/audits/accessibility/target-size.js | title": {
|
|
507
|
+
"message": "觸控目標的大小和間距充足。"
|
|
508
|
+
},
|
|
392
509
|
"core/audits/accessibility/td-has-header.js | description": {
|
|
393
510
|
"message": "螢幕閱讀器的功能可讓使用者更輕鬆瀏覽表格。如果大型表格 (寬度和高度為 3 個或以上儲存格) 中的 `<td>` 元素使用相關聯的表格標題,或許可提升螢幕閱讀器的使用體驗。[進一步瞭解表格標題](https://dequeuniversity.com/rules/axe/4.7/td-has-header)。"
|
|
394
511
|
},
|
|
@@ -966,7 +1083,7 @@
|
|
|
966
1083
|
"message": "prefer_related_applications 僅支援 Android 裝置上的 Chrome Beta 版本和穩定版。"
|
|
967
1084
|
},
|
|
968
1085
|
"core/audits/installable-manifest.js | protocol-timeout": {
|
|
969
|
-
"message": "Lighthouse
|
|
1086
|
+
"message": "Lighthouse could not determine if the page is installable. Please try with a newer version of Chrome."
|
|
970
1087
|
},
|
|
971
1088
|
"core/audits/installable-manifest.js | scheme-not-supported-for-webapk": {
|
|
972
1089
|
"message": "Android 不支援資訊清單網址配置 ({scheme})。"
|
|
@@ -1115,6 +1232,9 @@
|
|
|
1115
1232
|
"core/audits/metrics/first-meaningful-paint.js | description": {
|
|
1116
1233
|
"message": "「首次有效繪製時間」評估頁面主要內容顯示的時間。[進一步瞭解「首次有效繪製時間」數據](https://developer.chrome.com/docs/lighthouse/performance/first-meaningful-paint/)。"
|
|
1117
1234
|
},
|
|
1235
|
+
"core/audits/metrics/interaction-to-next-paint.js | description": {
|
|
1236
|
+
"message": "「互動至下一個繪製」會測量網頁回應速度,亦即網頁明顯回應使用者輸入內容所需的時間。[進一步瞭解「互動至下一個繪製」數據](https://web.dev/inp/)。"
|
|
1237
|
+
},
|
|
1118
1238
|
"core/audits/metrics/interactive.js | description": {
|
|
1119
1239
|
"message": "「可互動所需時間」是網頁進入完整互動狀態前所花的時間。[進一步瞭解「可互動所需時間」數據](https://developer.chrome.com/docs/lighthouse/performance/interactive/)。"
|
|
1120
1240
|
},
|
|
@@ -1208,15 +1328,6 @@
|
|
|
1208
1328
|
"core/audits/redirects.js | title": {
|
|
1209
1329
|
"message": "避免多次頁面重新導向"
|
|
1210
1330
|
},
|
|
1211
|
-
"core/audits/resource-summary.js | description": {
|
|
1212
|
-
"message": "如要設定網頁資源的數量和大小的預算,請新增 budget.json 檔案。[進一步瞭解效能預算](https://web.dev/use-lighthouse-for-performance-budgets/)。"
|
|
1213
|
-
},
|
|
1214
|
-
"core/audits/resource-summary.js | displayValue": {
|
|
1215
|
-
"message": "{requestCount,plural, =1{1 個要求 • {byteCount, number, bytes} KiB}other{# 個要求 • {byteCount, number, bytes} KiB}}"
|
|
1216
|
-
},
|
|
1217
|
-
"core/audits/resource-summary.js | title": {
|
|
1218
|
-
"message": "降低要求數量並減少傳輸大小"
|
|
1219
|
-
},
|
|
1220
1331
|
"core/audits/seo/canonical.js | description": {
|
|
1221
1332
|
"message": "標準連結會建議要在搜尋結果中顯示哪個網址。[進一步瞭解標準連結](https://developer.chrome.com/docs/lighthouse/seo/canonical/)。"
|
|
1222
1333
|
},
|
|
@@ -1596,7 +1707,7 @@
|
|
|
1596
1707
|
"message": "最佳做法"
|
|
1597
1708
|
},
|
|
1598
1709
|
"core/config/default-config.js | a11yCategoryDescription": {
|
|
1599
|
-
"message": "
|
|
1710
|
+
"message": "These checks highlight opportunities to [improve the accessibility of your web app](https://developer.chrome.com/docs/lighthouse/accessibility/). Automatic detection can only detect a subset of issues and does not guarantee the accessibility of your web app, so [manual testing](https://web.dev/how-to-review/) is also encouraged."
|
|
1600
1711
|
},
|
|
1601
1712
|
"core/config/default-config.js | a11yCategoryManualDescription": {
|
|
1602
1713
|
"message": "這些審核項目會檢查自動化測試工具未涵蓋的區域。詳情請參閱[無障礙功能審查的執行指南](https://web.dev/how-to-review/)。"
|
|
@@ -2742,7 +2853,7 @@
|
|
|
2742
2853
|
"message": "請安裝可以延遲載入圖片的 [Drupal 模組](https://www.drupal.org/project/project_module?f%5B0%5D=&f%5B1%5D=&f%5B2%5D=im_vid_3%3A67&f%5B3%5D=&f%5B4%5D=sm_field_project_type%3Afull&f%5B5%5D=&f%5B6%5D=&text=%22lazy+load%22&solrsort=iss_project_release_usage+desc&op=Search)。這些模組可延遲載入所有畫面外的圖片,進而提升效能。"
|
|
2743
2854
|
},
|
|
2744
2855
|
"node_modules/lighthouse-stack-packs/packs/drupal.js | render-blocking-resources": {
|
|
2745
|
-
"message": "
|
|
2856
|
+
"message": "Consider using a module to inline critical CSS and JavaScript, and use the defer attribute for non-critical CSS or JavaScript."
|
|
2746
2857
|
},
|
|
2747
2858
|
"node_modules/lighthouse-stack-packs/packs/drupal.js | server-response-time": {
|
|
2748
2859
|
"message": "主題、模組和伺服器規格均會影響伺服器回應時間。建議尋找更優化的主題、謹慎選擇優化模組和/或升級伺服器。您的代管伺服器應使用 PHP opcode 快取、記憶體快取來降低資料庫查詢時間 (例如 Redis 或 Memcached),還可優化應用程式邏輯以提升頁面載入速度。"
|
|
@@ -2751,10 +2862,10 @@
|
|
|
2751
2862
|
"message": "建議使用[回應式圖片樣式](https://www.drupal.org/docs/8/mobile-guide/responsive-images-in-drupal-8)來縮減頁面上載入圖片的大小。如果您使用 Views 在頁面上顯示多個內容項目,建議透過分頁來控制特定頁面上顯示的內容項目數量。"
|
|
2752
2863
|
},
|
|
2753
2864
|
"node_modules/lighthouse-stack-packs/packs/drupal.js | unminified-css": {
|
|
2754
|
-
"message": "
|
|
2865
|
+
"message": "Ensure you have enabled \"Aggregate CSS files\" in the \"Administration » Configuration » Development\" page. Ensure your Drupal site is running at least Drupal 10.1 for improved asset aggregation support."
|
|
2755
2866
|
},
|
|
2756
2867
|
"node_modules/lighthouse-stack-packs/packs/drupal.js | unminified-javascript": {
|
|
2757
|
-
"message": "
|
|
2868
|
+
"message": "Ensure you have enabled \"Aggregate JavaScript files\" in the \"Administration » Configuration » Development\" page. Ensure your Drupal site is running at least Drupal 10.1 for improved asset aggregation support."
|
|
2758
2869
|
},
|
|
2759
2870
|
"node_modules/lighthouse-stack-packs/packs/drupal.js | unused-css-rules": {
|
|
2760
2871
|
"message": "建議移除未使用的 CSS 規則,並只將需要的 Drupal 程式庫附加至相關頁面或頁面內的組件。查看 [Drupal 文件連結](https://www.drupal.org/docs/8/creating-custom-modules/adding-stylesheets-css-and-javascript-js-to-a-drupal-8-module#library)即可瞭解詳情。如要找出會新增多餘 CSS 的附加程式庫,請嘗試在 Chrome DevTools 中執行[程式碼覆蓋率](https://developers.google.com/web/updates/2017/04/devtools-release-notes#coverage)。您可在 Drupal 網站上停用 CSS 彙整時,透過樣式表網址找出有問題的主題/模組。請留意清單中包含很多樣式表,且程式碼覆蓋率中有大量紅色標示的主題/模組。主題/模組應只將網頁上實際使用的樣式表加入清單。"
|
|
@@ -2954,6 +3065,48 @@
|
|
|
2954
3065
|
"node_modules/lighthouse-stack-packs/packs/next.js | uses-text-compression": {
|
|
2955
3066
|
"message": "請為您的 Next.js 伺服器啟用壓縮功能。[瞭解詳情](https://nextjs.org/docs/api-reference/next.config.js/compression)。"
|
|
2956
3067
|
},
|
|
3068
|
+
"node_modules/lighthouse-stack-packs/packs/nitropack.js | dom-size": {
|
|
3069
|
+
"message": "Contact your account manager to enable [`HTML Lazy Load`](https://support.nitropack.io/hc/en-us/articles/17144942904337). Configuring it will prioritize and optimize your page rendering performance."
|
|
3070
|
+
},
|
|
3071
|
+
"node_modules/lighthouse-stack-packs/packs/nitropack.js | font-display": {
|
|
3072
|
+
"message": "Use the [`Override Font Rendering Behavior`](https://support.nitropack.io/hc/en-us/articles/16547358865041) option in NitroPack to set a desired value for the CSS font-display rule."
|
|
3073
|
+
},
|
|
3074
|
+
"node_modules/lighthouse-stack-packs/packs/nitropack.js | modern-image-formats": {
|
|
3075
|
+
"message": "Use [`Image Optimization`](https://support.nitropack.io/hc/en-us/articles/16547237162513) to automatically convert your images to WebP."
|
|
3076
|
+
},
|
|
3077
|
+
"node_modules/lighthouse-stack-packs/packs/nitropack.js | offscreen-images": {
|
|
3078
|
+
"message": "Defer offscreen images by enabling [`Automatic Image Lazy Loading`](https://support.nitropack.io/hc/en-us/articles/12457493524369-NitroPack-Lazy-Loading-Feature-for-Images)."
|
|
3079
|
+
},
|
|
3080
|
+
"node_modules/lighthouse-stack-packs/packs/nitropack.js | render-blocking-resources": {
|
|
3081
|
+
"message": "Enable [`Remove render-blocking resources`](https://support.nitropack.io/hc/en-us/articles/13820893500049-How-to-Deal-with-Render-Blocking-Resources-in-NitroPack) in NitroPack for faster initial load times."
|
|
3082
|
+
},
|
|
3083
|
+
"node_modules/lighthouse-stack-packs/packs/nitropack.js | server-response-time": {
|
|
3084
|
+
"message": "Improve server response time and optimize perceived performance by activating [`Instant Load`](https://support.nitropack.io/hc/en-us/articles/16547340617361)."
|
|
3085
|
+
},
|
|
3086
|
+
"node_modules/lighthouse-stack-packs/packs/nitropack.js | unminified-css": {
|
|
3087
|
+
"message": "Enable [`Minify resources`](https://support.nitropack.io/hc/en-us/articles/360061059394-Minify-Resources) in your Caching settings to reduce the size of your CSS, HTML, and JavaScript files for faster load times."
|
|
3088
|
+
},
|
|
3089
|
+
"node_modules/lighthouse-stack-packs/packs/nitropack.js | unminified-javascript": {
|
|
3090
|
+
"message": "Enable [`Minify resources`](https://support.nitropack.io/hc/en-us/articles/360061059394-Minify-Resources) in your Caching settings to reduce the size of your JS, HTML, and CSS files for faster load times."
|
|
3091
|
+
},
|
|
3092
|
+
"node_modules/lighthouse-stack-packs/packs/nitropack.js | unused-css-rules": {
|
|
3093
|
+
"message": "Enable [`Reduce Unused CSS`](https://support.nitropack.io/hc/en-us/articles/360020418457-Reduce-Unused-CSS) to remove CSS rules that are not applicable to this page."
|
|
3094
|
+
},
|
|
3095
|
+
"node_modules/lighthouse-stack-packs/packs/nitropack.js | unused-javascript": {
|
|
3096
|
+
"message": "Configure [`Delayed Scripts`](https://support.nitropack.io/hc/en-us/articles/1500002600942-Delayed-Scripts) in NitroPack to delay loading of scripts until they are needed."
|
|
3097
|
+
},
|
|
3098
|
+
"node_modules/lighthouse-stack-packs/packs/nitropack.js | uses-long-cache-ttl": {
|
|
3099
|
+
"message": "Go to the [`Improve Server Response Time`](https://support.nitropack.io/hc/en-us/articles/1500002321821-Improve-Server-Response-Time) feature in the `Caching` menu and adjust your page cache expiration time to improve loading times and user experience."
|
|
3100
|
+
},
|
|
3101
|
+
"node_modules/lighthouse-stack-packs/packs/nitropack.js | uses-optimized-images": {
|
|
3102
|
+
"message": "Automatically compress, optimize, and convert your images into WebP by enabling the [`Image Optimization`](https://support.nitropack.io/hc/en-us/articles/14177271695121-How-to-serve-images-in-next-gen-formats-using-NitroPack) setting."
|
|
3103
|
+
},
|
|
3104
|
+
"node_modules/lighthouse-stack-packs/packs/nitropack.js | uses-responsive-images": {
|
|
3105
|
+
"message": "Enable [`Adaptive Image Sizing`](https://support.nitropack.io/hc/en-us/articles/10123833029905-How-to-Enable-Adaptive-Image-Sizing-For-Your-Site) to preemptively optimize your images and make them match the dimensions of the containers they’re displayed in across all devices."
|
|
3106
|
+
},
|
|
3107
|
+
"node_modules/lighthouse-stack-packs/packs/nitropack.js | uses-text-compression": {
|
|
3108
|
+
"message": "Use [`Gzip compression`](https://support.nitropack.io/hc/en-us/articles/13229297479313-Enabling-GZIP-compression) in NitroPack to reduce the size of the files that are sent to the browser."
|
|
3109
|
+
},
|
|
2957
3110
|
"node_modules/lighthouse-stack-packs/packs/nuxt.js | modern-image-formats": {
|
|
2958
3111
|
"message": "請使用 `nuxt/image` 組件並設定 `format=\"webp\"`。[瞭解詳情](https://image.nuxtjs.org/components/nuxt-img#format)。"
|
|
2959
3112
|
},
|
|
@@ -3035,6 +3188,21 @@
|
|
|
3035
3188
|
"node_modules/lighthouse-stack-packs/packs/react.js | user-timings": {
|
|
3036
3189
|
"message": "使用 React DevTools Profiler,採用效能分析 API 來測量組件的輸出效能。[瞭解詳情。](https://reactjs.org/blog/2018/09/10/introducing-the-react-profiler.html)"
|
|
3037
3190
|
},
|
|
3191
|
+
"node_modules/lighthouse-stack-packs/packs/wix.js | efficient-animated-content": {
|
|
3192
|
+
"message": "將影片放在 `VideoBoxes` 中、使用 `Video Masks` 自訂影片,或新增 `Transparent Videos`。[瞭解詳情](https://support.wix.com/en/article/wix-video-about-wix-video)。"
|
|
3193
|
+
},
|
|
3194
|
+
"node_modules/lighthouse-stack-packs/packs/wix.js | modern-image-formats": {
|
|
3195
|
+
"message": "使用 `Wix Media Manager` 上載圖片,確保圖片會自動以 WebP 格式提供。瞭解[更多優化網站媒體的方式](https://support.wix.com/en/article/site-performance-optimizing-your-media)。"
|
|
3196
|
+
},
|
|
3197
|
+
"node_modules/lighthouse-stack-packs/packs/wix.js | render-blocking-resources": {
|
|
3198
|
+
"message": "在網站資訊主頁的「`Custom Code`」分頁中[新增第三方程式碼](https://support.wix.com/en/article/site-performance-using-third-party-code-on-your-site)時,請務必將其延遲或載入至程式碼主體末端。請盡量使用 Wix 的[整合](https://support.wix.com/en/article/about-marketing-integrations)功能,將市場推廣工具嵌入網站。 "
|
|
3199
|
+
},
|
|
3200
|
+
"node_modules/lighthouse-stack-packs/packs/wix.js | server-response-time": {
|
|
3201
|
+
"message": "Wix 會使用 CDN 和快取,盡快為大多數訪客提供回應。建議你為網站[手動啟用快取](https://support.wix.com/en/article/site-performance-caching-pages-to-optimize-loading-speed)功能,特別是使用 `Velo` 時。"
|
|
3202
|
+
},
|
|
3203
|
+
"node_modules/lighthouse-stack-packs/packs/wix.js | unused-javascript": {
|
|
3204
|
+
"message": "在網站資訊主頁的「`Custom Code`」分頁中,查看你在網站上加入的任何第三方程式碼,只保留網站所需的服務。[查看更多](https://support.wix.com/en/article/site-performance-removing-unused-javascript)。"
|
|
3205
|
+
},
|
|
3038
3206
|
"node_modules/lighthouse-stack-packs/packs/wordpress.js | efficient-animated-content": {
|
|
3039
3207
|
"message": "建議將 GIF 上載至可將 GIF 用作 HTML5 影片嵌入的伺服器。"
|
|
3040
3208
|
},
|
|
@@ -3140,6 +3308,9 @@
|
|
|
3140
3308
|
"report/renderer/report-utils.js | dropdownSaveJSON": {
|
|
3141
3309
|
"message": "另存為 JSON"
|
|
3142
3310
|
},
|
|
3311
|
+
"report/renderer/report-utils.js | dropdownViewUnthrottledTrace": {
|
|
3312
|
+
"message": "View Unthrottled Trace"
|
|
3313
|
+
},
|
|
3143
3314
|
"report/renderer/report-utils.js | dropdownViewer": {
|
|
3144
3315
|
"message": "在檢視器中開啟"
|
|
3145
3316
|
},
|