lighthouse 12.3.0 → 12.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/test/smokehouse/core-tests.js +4 -0
- package/core/audits/audit.d.ts +5 -0
- package/core/audits/audit.js +12 -0
- package/core/audits/bootup-time.js +0 -2
- package/core/audits/byte-efficiency/duplicated-javascript.d.ts +4 -5
- package/core/audits/byte-efficiency/duplicated-javascript.js +9 -5
- package/core/audits/byte-efficiency/legacy-javascript.d.ts +2 -2
- package/core/audits/byte-efficiency/legacy-javascript.js +17 -5
- package/core/audits/byte-efficiency/polyfill-graph-data.json +48 -49
- package/core/audits/byte-efficiency/total-byte-weight.js +0 -2
- package/core/audits/clickjacking-mitigation.d.ts +42 -0
- package/core/audits/clickjacking-mitigation.js +139 -0
- package/core/audits/dobetterweb/dom-size.js +0 -2
- package/core/audits/insights/README.md +3 -0
- package/core/audits/insights/cls-culprits-insight.d.ts +25 -0
- package/core/audits/insights/cls-culprits-insight.js +137 -0
- package/core/audits/insights/document-latency-insight.d.ts +11 -0
- package/core/audits/insights/document-latency-insight.js +48 -0
- package/core/audits/insights/dom-size-insight.d.ts +11 -0
- package/core/audits/insights/dom-size-insight.js +85 -0
- package/core/audits/insights/font-display-insight.d.ts +11 -0
- package/core/audits/insights/font-display-insight.js +53 -0
- package/core/audits/insights/forced-reflow-insight.d.ts +11 -0
- package/core/audits/insights/forced-reflow-insight.js +52 -0
- package/core/audits/insights/image-delivery-insight.d.ts +11 -0
- package/core/audits/insights/image-delivery-insight.js +83 -0
- package/core/audits/insights/insight-audit.d.ts +23 -0
- package/core/audits/insights/insight-audit.js +133 -0
- package/core/audits/insights/interaction-to-next-paint-insight.d.ts +11 -0
- package/core/audits/insights/interaction-to-next-paint-insight.js +71 -0
- package/core/audits/insights/lcp-discovery-insight.d.ts +11 -0
- package/core/audits/insights/lcp-discovery-insight.js +48 -0
- package/core/audits/insights/lcp-phases-insight.d.ts +16 -0
- package/core/audits/insights/lcp-phases-insight.js +87 -0
- package/core/audits/insights/long-critical-network-tree-insight.d.ts +11 -0
- package/core/audits/insights/long-critical-network-tree-insight.js +53 -0
- package/core/audits/insights/render-blocking-insight.d.ts +11 -0
- package/core/audits/insights/render-blocking-insight.js +57 -0
- package/core/audits/insights/slow-css-selector-insight.d.ts +11 -0
- package/core/audits/insights/slow-css-selector-insight.js +52 -0
- package/core/audits/insights/third-parties-insight.d.ts +28 -0
- package/core/audits/insights/third-parties-insight.js +90 -0
- package/core/audits/insights/viewport-insight.d.ts +11 -0
- package/core/audits/insights/viewport-insight.js +54 -0
- package/core/audits/layout-shifts.d.ts +0 -1
- package/core/audits/layout-shifts.js +18 -21
- package/core/audits/mainthread-work-breakdown.js +0 -2
- package/core/audits/seo/is-crawlable.d.ts +1 -0
- package/core/audits/server-response-time.js +0 -1
- package/core/computed/metrics/lantern-metric.js +5 -1
- package/core/computed/trace-engine-result.js +71 -17
- package/core/config/default-config.js +37 -1
- package/core/gather/gatherers/inspector-issues.js +3 -0
- package/core/gather/gatherers/trace-elements.d.ts +10 -2
- package/core/gather/gatherers/trace-elements.js +89 -12
- package/core/lib/bf-cache-strings.d.ts +7 -4
- package/core/lib/bf-cache-strings.js +174 -140
- package/core/lib/cdt/generated/ParsedURL.d.ts +1 -0
- package/core/lib/cdt/generated/ParsedURL.js +16 -4
- package/core/lib/cdt/generated/SourceMap.d.ts +32 -5
- package/core/lib/cdt/generated/SourceMap.js +192 -100
- package/core/lib/deprecations-strings.d.ts +78 -98
- package/core/lib/deprecations-strings.js +23 -41
- package/core/lib/i18n/i18n.d.ts +1 -0
- package/core/lib/i18n/i18n.js +2 -0
- package/core/lib/trace-engine.d.ts +1 -0
- package/core/lib/trace-engine.js +2 -0
- package/core/runner.js +2 -0
- package/dist/report/bundle.esm.js +196 -9
- package/dist/report/flow.js +197 -10
- package/dist/report/standalone.js +197 -10
- package/flow-report/src/i18n/i18n.d.ts +2 -0
- package/package.json +15 -13
- package/readme.md +3 -0
- package/report/assets/styles.css +179 -5
- package/report/assets/templates.html +14 -0
- package/report/renderer/components.js +9 -3
- package/report/renderer/details-renderer.d.ts +5 -0
- package/report/renderer/details-renderer.js +24 -0
- package/report/renderer/dom.d.ts +12 -1
- package/report/renderer/dom.js +26 -1
- package/report/renderer/i18n-formatter.d.ts +1 -1
- package/report/renderer/performance-category-renderer.d.ts +10 -0
- package/report/renderer/performance-category-renderer.js +81 -20
- package/report/renderer/report-utils.d.ts +1 -0
- package/report/renderer/report-utils.js +2 -0
- package/report/renderer/topbar-features.js +7 -0
- package/shared/localization/locales/ar-XB.json +74 -26
- package/shared/localization/locales/ar.json +76 -28
- package/shared/localization/locales/bg.json +74 -26
- package/shared/localization/locales/ca.json +74 -26
- package/shared/localization/locales/cs.json +74 -26
- package/shared/localization/locales/da.json +74 -26
- package/shared/localization/locales/de.json +75 -27
- package/shared/localization/locales/el.json +74 -26
- package/shared/localization/locales/en-GB.json +74 -26
- package/shared/localization/locales/en-US.json +288 -30
- package/shared/localization/locales/en-XA.json +48 -24
- package/shared/localization/locales/en-XL.json +288 -30
- package/shared/localization/locales/es-419.json +74 -26
- package/shared/localization/locales/es.json +74 -26
- package/shared/localization/locales/fi.json +74 -26
- package/shared/localization/locales/fil.json +75 -27
- package/shared/localization/locales/fr.json +74 -26
- package/shared/localization/locales/he.json +82 -34
- package/shared/localization/locales/hi.json +74 -26
- package/shared/localization/locales/hr.json +75 -27
- package/shared/localization/locales/hu.json +74 -26
- package/shared/localization/locales/id.json +74 -26
- package/shared/localization/locales/it.json +85 -37
- package/shared/localization/locales/ja.json +75 -27
- package/shared/localization/locales/ko.json +75 -27
- package/shared/localization/locales/lt.json +75 -27
- package/shared/localization/locales/lv.json +74 -26
- package/shared/localization/locales/nl.json +74 -26
- package/shared/localization/locales/no.json +75 -27
- package/shared/localization/locales/pl.json +74 -26
- package/shared/localization/locales/pt-PT.json +74 -26
- package/shared/localization/locales/pt.json +74 -26
- package/shared/localization/locales/ro.json +74 -26
- package/shared/localization/locales/ru.json +74 -26
- package/shared/localization/locales/sk.json +74 -26
- package/shared/localization/locales/sl.json +74 -26
- package/shared/localization/locales/sr-Latn.json +74 -26
- package/shared/localization/locales/sr.json +74 -26
- package/shared/localization/locales/sv.json +74 -26
- package/shared/localization/locales/ta.json +74 -26
- package/shared/localization/locales/te.json +74 -26
- package/shared/localization/locales/th.json +76 -28
- package/shared/localization/locales/tr.json +74 -26
- package/shared/localization/locales/uk.json +74 -26
- package/shared/localization/locales/vi.json +74 -26
- package/shared/localization/locales/zh-HK.json +75 -27
- package/shared/localization/locales/zh-TW.json +74 -26
- package/shared/localization/locales/zh.json +74 -26
- package/third-party/chromium-synchronization/inspector-issueAdded-types-test.js +3 -0
- package/types/artifacts.d.ts +5 -3
- package/types/audit.d.ts +2 -0
- package/types/lhr/audit-details.d.ts +13 -1
- package/types/lhr/audit-result.d.ts +2 -0
- package/core/gather/gatherers/root-causes.d.ts +0 -19
- package/core/gather/gatherers/root-causes.js +0 -144
|
@@ -774,7 +774,7 @@
|
|
|
774
774
|
"message": "指令"
|
|
775
775
|
},
|
|
776
776
|
"core/audits/csp-xss.js | columnSeverity": {
|
|
777
|
-
"message": "
|
|
777
|
+
"message": "嚴重程度"
|
|
778
778
|
},
|
|
779
779
|
"core/audits/csp-xss.js | description": {
|
|
780
780
|
"message": "強大的內容安全政策 (CSP) 可大幅降低被跨網站指令碼 (XSS) 攻擊的風險。[瞭解如何使用內容安全政策防範 XSS](https://developer.chrome.com/docs/lighthouse/best-practices/csp-xss/)"
|
|
@@ -977,6 +977,36 @@
|
|
|
977
977
|
"core/audits/font-display.js | undeclaredFontOriginWarning": {
|
|
978
978
|
"message": "{fontCountForOrigin,plural, =1{Lighthouse 無法為來源 ({fontOrigin}) 自動檢查 `font-display` 值。}other{Lighthouse 無法為來源 ({fontOrigin}) 自動檢查 `font-display` 值。}}"
|
|
979
979
|
},
|
|
980
|
+
"core/audits/has-hsts.js | columnDirective": {
|
|
981
|
+
"message": "指令"
|
|
982
|
+
},
|
|
983
|
+
"core/audits/has-hsts.js | columnSeverity": {
|
|
984
|
+
"message": "嚴重程度"
|
|
985
|
+
},
|
|
986
|
+
"core/audits/has-hsts.js | description": {
|
|
987
|
+
"message": "部署 HSTS 標題可大幅降低 HTTP 連線降級和竊聽攻擊的風險。建議從低 max-age 開始分階段推行。[進一步瞭解如何使用強效的 HSTS 政策。](https://developer.chrome.com/docs/lighthouse/best-practices/has-hsts)"
|
|
988
|
+
},
|
|
989
|
+
"core/audits/has-hsts.js | invalidSyntax": {
|
|
990
|
+
"message": "語法無效"
|
|
991
|
+
},
|
|
992
|
+
"core/audits/has-hsts.js | lowMaxAge": {
|
|
993
|
+
"message": "`max-age` 過低"
|
|
994
|
+
},
|
|
995
|
+
"core/audits/has-hsts.js | noHsts": {
|
|
996
|
+
"message": "找不到 HSTS 標題"
|
|
997
|
+
},
|
|
998
|
+
"core/audits/has-hsts.js | noMaxAge": {
|
|
999
|
+
"message": "沒有 `max-age` 指令"
|
|
1000
|
+
},
|
|
1001
|
+
"core/audits/has-hsts.js | noPreload": {
|
|
1002
|
+
"message": "找不到 `preload` 指令"
|
|
1003
|
+
},
|
|
1004
|
+
"core/audits/has-hsts.js | noSubdomain": {
|
|
1005
|
+
"message": "找不到 `includeSubDomains` 指令"
|
|
1006
|
+
},
|
|
1007
|
+
"core/audits/has-hsts.js | title": {
|
|
1008
|
+
"message": "使用強效的 HSTS 政策"
|
|
1009
|
+
},
|
|
980
1010
|
"core/audits/image-aspect-ratio.js | columnActual": {
|
|
981
1011
|
"message": "實際的圖片長寬比"
|
|
982
1012
|
},
|
|
@@ -1082,9 +1112,6 @@
|
|
|
1082
1112
|
"core/audits/layout-shifts.js | rootCauseInjectedIframe": {
|
|
1083
1113
|
"message": "已插入 iframe"
|
|
1084
1114
|
},
|
|
1085
|
-
"core/audits/layout-shifts.js | rootCauseRenderBlockingRequest": {
|
|
1086
|
-
"message": "延遲的網絡要求導致網頁版面配置變更"
|
|
1087
|
-
},
|
|
1088
1115
|
"core/audits/layout-shifts.js | rootCauseUnsizedMedia": {
|
|
1089
1116
|
"message": "媒體元素沒有明確尺寸"
|
|
1090
1117
|
},
|
|
@@ -1187,6 +1214,24 @@
|
|
|
1187
1214
|
"core/audits/non-composited-animations.js | unsupportedTimingParameters": {
|
|
1188
1215
|
"message": "效果包含不支援的時間參數"
|
|
1189
1216
|
},
|
|
1217
|
+
"core/audits/origin-isolation.js | columnDirective": {
|
|
1218
|
+
"message": "指令"
|
|
1219
|
+
},
|
|
1220
|
+
"core/audits/origin-isolation.js | columnSeverity": {
|
|
1221
|
+
"message": "嚴重程度"
|
|
1222
|
+
},
|
|
1223
|
+
"core/audits/origin-isolation.js | description": {
|
|
1224
|
+
"message": "跨來源 Opener 政策 (COOP) 可用於隔離頂層視窗與其他文件,例如彈出式視窗。[進一步瞭解如何部署 COOP 標題。](https://web.dev/articles/why-coop-coep#coop)"
|
|
1225
|
+
},
|
|
1226
|
+
"core/audits/origin-isolation.js | invalidSyntax": {
|
|
1227
|
+
"message": "語法無效"
|
|
1228
|
+
},
|
|
1229
|
+
"core/audits/origin-isolation.js | noCoop": {
|
|
1230
|
+
"message": "找不到 COOP 標題"
|
|
1231
|
+
},
|
|
1232
|
+
"core/audits/origin-isolation.js | title": {
|
|
1233
|
+
"message": "使用 COOP 確保正確的隔離來源"
|
|
1234
|
+
},
|
|
1190
1235
|
"core/audits/preload-fonts.js | description": {
|
|
1191
1236
|
"message": "請預先載入 `optional` 字型,以便新訪客使用。[進一步瞭解如何預先載入字型](https://web.dev/articles/preload-optional-fonts)"
|
|
1192
1237
|
},
|
|
@@ -1688,9 +1733,6 @@
|
|
|
1688
1733
|
"core/lib/bf-cache-strings.js | appBanner": {
|
|
1689
1734
|
"message": "要求 AppBanner 的網頁目前不符合向前/返回快取的資格。"
|
|
1690
1735
|
},
|
|
1691
|
-
"core/lib/bf-cache-strings.js | authorizationHeader": {
|
|
1692
|
-
"message": "由於有 Keepalive 要求,因此系統已停用向前/返回快取。"
|
|
1693
|
-
},
|
|
1694
1736
|
"core/lib/bf-cache-strings.js | backForwardCacheDisabled": {
|
|
1695
1737
|
"message": "標記已停用向前/返回快取。如要在此裝置上啟用該功能,請前往 chrome://flags/#back-forward-cache。"
|
|
1696
1738
|
},
|
|
@@ -1907,9 +1949,6 @@
|
|
|
1907
1949
|
"core/lib/bf-cache-strings.js | pictureInPicture": {
|
|
1908
1950
|
"message": "使用「畫中畫」的網頁目前不符合向前/返回快取的資格。"
|
|
1909
1951
|
},
|
|
1910
|
-
"core/lib/bf-cache-strings.js | portal": {
|
|
1911
|
-
"message": "使用入口網站的網頁目前不符合向前/返回快取的資格。"
|
|
1912
|
-
},
|
|
1913
1952
|
"core/lib/bf-cache-strings.js | printing": {
|
|
1914
1953
|
"message": "顯示列印使用者介面的網頁目前不符合向前/返回快取的資格。"
|
|
1915
1954
|
},
|
|
@@ -2129,12 +2168,6 @@
|
|
|
2129
2168
|
"core/lib/deprecations-strings.js | DataUrlInSvgUse": {
|
|
2130
2169
|
"message": "SVG <use> 元素不再支援「data: 網址」,並將於日後移除。"
|
|
2131
2170
|
},
|
|
2132
|
-
"core/lib/deprecations-strings.js | DocumentDomainSettingWithoutOriginAgentClusterHeader": {
|
|
2133
|
-
"message": "透過設定 `document.domain` 啟用相同來源政策的功能已淘汰,並將根據預設移除。如要繼續使用此功能,請傳送文件和頁框的 `Origin-Agent-Cluster: ?0` 標題和 HTTP 回應,藉此選擇不採用 origin-keyed 代理程式叢集。詳情請參閱 https://developer.chrome.com/blog/immutable-document-domain/。"
|
|
2134
|
-
},
|
|
2135
|
-
"core/lib/deprecations-strings.js | ExpectCTHeader": {
|
|
2136
|
-
"message": "`Expect-CT` 標題已淘汰,並將會移除。Chrome 要求 2018 年 4 月 30 日後發出的所有公開信任憑證都必須符合《憑證透明度政策》的規定。"
|
|
2137
|
-
},
|
|
2138
2171
|
"core/lib/deprecations-strings.js | GeolocationInsecureOrigin": {
|
|
2139
2172
|
"message": "`getCurrentPosition()` 和 `watchPosition()` 無法再在不安全來源上運作。如要使用此功能,請考慮將應用程式轉移至安全來源,例如 HTTPS。詳情請參閱 https://goo.gle/chrome-insecure-origins。"
|
|
2140
2173
|
},
|
|
@@ -2168,9 +2201,6 @@
|
|
|
2168
2201
|
"core/lib/deprecations-strings.js | NoSysexWebMIDIWithoutPermission": {
|
|
2169
2202
|
"message": "即使在 `MIDIOptions` 中未指定系統專用 (SysEx) 訊息,Web MIDI 亦會要求使用權限。"
|
|
2170
2203
|
},
|
|
2171
|
-
"core/lib/deprecations-strings.js | NonStandardDeclarativeShadowDOM": {
|
|
2172
|
-
"message": "非標準化的舊 `shadowroot` 屬性已淘汰,將「無法在 M119 中運作」。請改用標準化的新 `shadowrootmode` 屬性。"
|
|
2173
|
-
},
|
|
2174
2204
|
"core/lib/deprecations-strings.js | NotificationInsecureOrigin": {
|
|
2175
2205
|
"message": "系統可能無法再使用不安全來源的 Notification API。請考慮將應用程式轉移至安全來源,例如 HTTPS。詳情請參閱 https://goo.gle/chrome-insecure-origins。"
|
|
2176
2206
|
},
|
|
@@ -2255,12 +2285,6 @@
|
|
|
2255
2285
|
"core/lib/deprecations-strings.js | WebSQL": {
|
|
2256
2286
|
"message": "網絡 SQL 已淘汰。請使用 SQLite WebAssembly 或「已加入索引的資料庫」"
|
|
2257
2287
|
},
|
|
2258
|
-
"core/lib/deprecations-strings.js | WindowPlacementPermissionDescriptorUsed": {
|
|
2259
|
-
"message": "權限描述項 `window-placement` 已淘汰。請改用 `window-management`。如需進一步說明,請查看 https://bit.ly/window-placement-rename。"
|
|
2260
|
-
},
|
|
2261
|
-
"core/lib/deprecations-strings.js | WindowPlacementPermissionPolicyParsed": {
|
|
2262
|
-
"message": "權限政策 `window-placement` 已淘汰。請改用 `window-management`。如需進一步說明,請查看 https://bit.ly/window-placement-rename。"
|
|
2263
|
-
},
|
|
2264
2288
|
"core/lib/deprecations-strings.js | XHRJSONEncodingDetection": {
|
|
2265
2289
|
"message": "`XMLHttpRequest` 中的 JSON 回應不支援 UTF-16。"
|
|
2266
2290
|
},
|
|
@@ -2627,6 +2651,12 @@
|
|
|
2627
2651
|
"node_modules/@paulirish/trace_engine/models/trace/insights/CLSCulprits.js | title": {
|
|
2628
2652
|
"message": "版面配置轉換起因"
|
|
2629
2653
|
},
|
|
2654
|
+
"node_modules/@paulirish/trace_engine/models/trace/insights/DOMSize.js | description": {
|
|
2655
|
+
"message": "大型 DOM 會增加記憶體用量、延長樣式運算的時間,並產生費用高昂的版面配置重排,繼而影響頁面回應速度。[瞭解如何避免 DOM 過大](https://developer.chrome.com/docs/lighthouse/performance/dom-size/)。"
|
|
2656
|
+
},
|
|
2657
|
+
"node_modules/@paulirish/trace_engine/models/trace/insights/DOMSize.js | title": {
|
|
2658
|
+
"message": "優化 DOM 大小"
|
|
2659
|
+
},
|
|
2630
2660
|
"node_modules/@paulirish/trace_engine/models/trace/insights/DocumentLatency.js | description": {
|
|
2631
2661
|
"message": "首個網絡要求至關重要。避免重新導向、確保伺服器快速回應,並啟用文字壓縮功能,都有助縮短延遲時間。"
|
|
2632
2662
|
},
|
|
@@ -2639,6 +2669,24 @@
|
|
|
2639
2669
|
"node_modules/@paulirish/trace_engine/models/trace/insights/FontDisplay.js | title": {
|
|
2640
2670
|
"message": "字型顯示"
|
|
2641
2671
|
},
|
|
2672
|
+
"node_modules/@paulirish/trace_engine/models/trace/insights/ImageDelivery.js | description": {
|
|
2673
|
+
"message": "縮短圖像下載時間,可縮減使用者感知的網頁載入時間,並提升 LCP 數據的表現。[進一步瞭解如何優化圖像大小](https://developer.chrome.com/docs/lighthouse/performance/uses-optimized-images/)"
|
|
2674
|
+
},
|
|
2675
|
+
"node_modules/@paulirish/trace_engine/models/trace/insights/ImageDelivery.js | title": {
|
|
2676
|
+
"message": "改善圖像放送"
|
|
2677
|
+
},
|
|
2678
|
+
"node_modules/@paulirish/trace_engine/models/trace/insights/ImageDelivery.js | useCompression": {
|
|
2679
|
+
"message": "提高圖像壓縮系數可縮減此圖像的下載大小 (預計大小為 {PH1})。"
|
|
2680
|
+
},
|
|
2681
|
+
"node_modules/@paulirish/trace_engine/models/trace/insights/ImageDelivery.js | useModernFormat": {
|
|
2682
|
+
"message": "使用新式圖像格式 (WebP、AVIF) 或提高圖像壓縮系數,可縮減此圖像的下載大小 (預計大小為 {PH1})。"
|
|
2683
|
+
},
|
|
2684
|
+
"node_modules/@paulirish/trace_engine/models/trace/insights/ImageDelivery.js | useResponsiveSize": {
|
|
2685
|
+
"message": "此圖像檔案的原始尺寸 ({PH2}) 大於所需顯示尺寸 ({PH3})。請使用回應式圖像來縮減圖像下載大小 (預計大小為 {PH1})。"
|
|
2686
|
+
},
|
|
2687
|
+
"node_modules/@paulirish/trace_engine/models/trace/insights/ImageDelivery.js | useVideoFormat": {
|
|
2688
|
+
"message": "使用影片格式而非 GIF,可以縮減動畫內容的下載大小 (預計大小為 {PH1})。"
|
|
2689
|
+
},
|
|
2642
2690
|
"node_modules/@paulirish/trace_engine/models/trace/insights/InteractionToNextPaint.js | description": {
|
|
2643
2691
|
"message": "由最長的階段開始調查,[盡量縮短延遲時間](https://web.dev/articles/optimize-inp#optimize_interactions)。要減少處理時長,建議[優化主要執行緒成本](https://web.dev/articles/optimize-long-tasks) (通常為 JavaScript)。"
|
|
2644
2692
|
},
|
|
@@ -2676,10 +2724,10 @@
|
|
|
2676
2724
|
"message": "第三方"
|
|
2677
2725
|
},
|
|
2678
2726
|
"node_modules/@paulirish/trace_engine/models/trace/insights/Viewport.js | description": {
|
|
2679
|
-
"message": "
|
|
2727
|
+
"message": "如果不優化流動裝置的檢視區,輕按互動可能會[延遲最多 300 毫秒](https://developer.chrome.com/blog/300ms-tap-delay-gone-away/)。"
|
|
2680
2728
|
},
|
|
2681
2729
|
"node_modules/@paulirish/trace_engine/models/trace/insights/Viewport.js | title": {
|
|
2682
|
-
"message": "
|
|
2730
|
+
"message": "優化流動裝置的檢視區"
|
|
2683
2731
|
},
|
|
2684
2732
|
"node_modules/lighthouse-stack-packs/packs/amp.js | efficient-animated-content": {
|
|
2685
2733
|
"message": "當動畫內容在顯示螢幕之外時,您可以使用 [`amp-anim`](https://amp.dev/documentation/components/amp-anim/) 標籤來節省 CPU 用量。"
|
|
@@ -977,6 +977,36 @@
|
|
|
977
977
|
"core/audits/font-display.js | undeclaredFontOriginWarning": {
|
|
978
978
|
"message": "{fontCountForOrigin,plural, =1{Lighthouse 無法自動檢查 {fontOrigin} 來源的 `font-display` 值。}other{Lighthouse 無法自動檢查 {fontOrigin} 來源的 `font-display` 值。}}"
|
|
979
979
|
},
|
|
980
|
+
"core/audits/has-hsts.js | columnDirective": {
|
|
981
|
+
"message": "指令"
|
|
982
|
+
},
|
|
983
|
+
"core/audits/has-hsts.js | columnSeverity": {
|
|
984
|
+
"message": "嚴重程度"
|
|
985
|
+
},
|
|
986
|
+
"core/audits/has-hsts.js | description": {
|
|
987
|
+
"message": "部署 HTTP 嚴格傳輸安全性標頭,可大幅降低 HTTP 連線降級和竊聽攻擊的風險。建議先從低 max-age 開始分階段部署。[進一步瞭解如何使用嚴格的 HTTP 嚴格傳輸安全性政策](https://developer.chrome.com/docs/lighthouse/best-practices/has-hsts)。"
|
|
988
|
+
},
|
|
989
|
+
"core/audits/has-hsts.js | invalidSyntax": {
|
|
990
|
+
"message": "語法無效"
|
|
991
|
+
},
|
|
992
|
+
"core/audits/has-hsts.js | lowMaxAge": {
|
|
993
|
+
"message": "`max-age` 太低"
|
|
994
|
+
},
|
|
995
|
+
"core/audits/has-hsts.js | noHsts": {
|
|
996
|
+
"message": "找不到 HTTP 嚴格傳輸安全性標頭"
|
|
997
|
+
},
|
|
998
|
+
"core/audits/has-hsts.js | noMaxAge": {
|
|
999
|
+
"message": "沒有 `max-age` 指令"
|
|
1000
|
+
},
|
|
1001
|
+
"core/audits/has-hsts.js | noPreload": {
|
|
1002
|
+
"message": "找不到 `preload` 指令"
|
|
1003
|
+
},
|
|
1004
|
+
"core/audits/has-hsts.js | noSubdomain": {
|
|
1005
|
+
"message": "找不到 `includeSubDomains` 指令"
|
|
1006
|
+
},
|
|
1007
|
+
"core/audits/has-hsts.js | title": {
|
|
1008
|
+
"message": "使用安全強度高的 HTTP 嚴格傳輸安全性政策"
|
|
1009
|
+
},
|
|
980
1010
|
"core/audits/image-aspect-ratio.js | columnActual": {
|
|
981
1011
|
"message": "實際顯示比例"
|
|
982
1012
|
},
|
|
@@ -1082,9 +1112,6 @@
|
|
|
1082
1112
|
"core/audits/layout-shifts.js | rootCauseInjectedIframe": {
|
|
1083
1113
|
"message": "插入了 iframe"
|
|
1084
1114
|
},
|
|
1085
|
-
"core/audits/layout-shifts.js | rootCauseRenderBlockingRequest": {
|
|
1086
|
-
"message": "延遲的網路要求導致網頁版面配置變更"
|
|
1087
|
-
},
|
|
1088
1115
|
"core/audits/layout-shifts.js | rootCauseUnsizedMedia": {
|
|
1089
1116
|
"message": "媒體元素沒有明確尺寸"
|
|
1090
1117
|
},
|
|
@@ -1187,6 +1214,24 @@
|
|
|
1187
1214
|
"core/audits/non-composited-animations.js | unsupportedTimingParameters": {
|
|
1188
1215
|
"message": "效果包含不支援的時間參數"
|
|
1189
1216
|
},
|
|
1217
|
+
"core/audits/origin-isolation.js | columnDirective": {
|
|
1218
|
+
"message": "指令"
|
|
1219
|
+
},
|
|
1220
|
+
"core/audits/origin-isolation.js | columnSeverity": {
|
|
1221
|
+
"message": "嚴重程度"
|
|
1222
|
+
},
|
|
1223
|
+
"core/audits/origin-isolation.js | description": {
|
|
1224
|
+
"message": "跨來源開啟者政策 (COOP) 可隔離頂層視窗與其他文件,例如彈出式視窗。[進一步瞭解如何部署 COOP 標頭](https://web.dev/articles/why-coop-coep#coop)。"
|
|
1225
|
+
},
|
|
1226
|
+
"core/audits/origin-isolation.js | invalidSyntax": {
|
|
1227
|
+
"message": "語法無效"
|
|
1228
|
+
},
|
|
1229
|
+
"core/audits/origin-isolation.js | noCoop": {
|
|
1230
|
+
"message": "找不到 COOP 標頭"
|
|
1231
|
+
},
|
|
1232
|
+
"core/audits/origin-isolation.js | title": {
|
|
1233
|
+
"message": "使用 COOP 確保正確的來源隔離"
|
|
1234
|
+
},
|
|
1190
1235
|
"core/audits/preload-fonts.js | description": {
|
|
1191
1236
|
"message": "請預先載入 `optional` 字型,以便新訪客使用。[進一步瞭解如何預先載入字型](https://web.dev/articles/preload-optional-fonts)"
|
|
1192
1237
|
},
|
|
@@ -1688,9 +1733,6 @@
|
|
|
1688
1733
|
"core/lib/bf-cache-strings.js | appBanner": {
|
|
1689
1734
|
"message": "已要求 AppBanner 的網頁目前不適用往返快取。"
|
|
1690
1735
|
},
|
|
1691
|
-
"core/lib/bf-cache-strings.js | authorizationHeader": {
|
|
1692
|
-
"message": "系統收到保持運作的要求,因此停用往返快取。"
|
|
1693
|
-
},
|
|
1694
1736
|
"core/lib/bf-cache-strings.js | backForwardCacheDisabled": {
|
|
1695
1737
|
"message": "往返快取已因旗標設定而停用。如要在這部裝置本機上啟用該功能,請前往 chrome://flags/#back-forward-cache。"
|
|
1696
1738
|
},
|
|
@@ -1907,9 +1949,6 @@
|
|
|
1907
1949
|
"core/lib/bf-cache-strings.js | pictureInPicture": {
|
|
1908
1950
|
"message": "使用子母畫面的網頁目前不適用往返快取。"
|
|
1909
1951
|
},
|
|
1910
|
-
"core/lib/bf-cache-strings.js | portal": {
|
|
1911
|
-
"message": "使用入口網站的網頁目前不適用往返快取。"
|
|
1912
|
-
},
|
|
1913
1952
|
"core/lib/bf-cache-strings.js | printing": {
|
|
1914
1953
|
"message": "顯示列印使用者介面的網頁目前不適用往返快取。"
|
|
1915
1954
|
},
|
|
@@ -2129,12 +2168,6 @@
|
|
|
2129
2168
|
"core/lib/deprecations-strings.js | DataUrlInSvgUse": {
|
|
2130
2169
|
"message": "SVG <use> 元素不再支援「data: 網址」,並將於日後移除。"
|
|
2131
2170
|
},
|
|
2132
|
-
"core/lib/deprecations-strings.js | DocumentDomainSettingWithoutOriginAgentClusterHeader": {
|
|
2133
|
-
"message": "透過設定 `document.domain` 放寬相同來源政策的功能已淘汰,將於日後予以移除。如要繼續使用這項功能,請傳送文件和頁框的 `Origin-Agent-Cluster: ?0` 標頭和 HTTP 回應,藉此選擇不採用 origin-keyed 代理程式叢集。詳情請參閱 https://developer.chrome.com/blog/immutable-document-domain/。"
|
|
2134
|
-
},
|
|
2135
|
-
"core/lib/deprecations-strings.js | ExpectCTHeader": {
|
|
2136
|
-
"message": "`Expect-CT` 標頭已遭淘汰,日後將予以移除。Chrome 要求 2018 年 4 月 30 日後核發的所有公開信任憑證都必須符合憑證透明化政策的規範。"
|
|
2137
|
-
},
|
|
2138
2171
|
"core/lib/deprecations-strings.js | GeolocationInsecureOrigin": {
|
|
2139
2172
|
"message": "`getCurrentPosition()` 和 `watchPosition()` 不再適用於不安全的來源。如要使用這個功能,請考慮將應用程式轉移至安全來源,例如 HTTPS。詳情請參閱 https://goo.gle/chrome-insecure-origins。"
|
|
2140
2173
|
},
|
|
@@ -2168,9 +2201,6 @@
|
|
|
2168
2201
|
"core/lib/deprecations-strings.js | NoSysexWebMIDIWithoutPermission": {
|
|
2169
2202
|
"message": "即使在 `MIDIOptions` 中未指定系統專用 (SysEx) 訊息,Web MIDI 也會要求使用權限。"
|
|
2170
2203
|
},
|
|
2171
|
-
"core/lib/deprecations-strings.js | NonStandardDeclarativeShadowDOM": {
|
|
2172
|
-
"message": "未標準化的舊款 `shadowroot` 屬性已淘汰,自 M119 起將*無法再使用*。請改用標準化的新 `shadowrootmode` 屬性。"
|
|
2173
|
-
},
|
|
2174
2204
|
"core/lib/deprecations-strings.js | NotificationInsecureOrigin": {
|
|
2175
2205
|
"message": "系統不再允許透過不安全的來源使用 Notification API。請考慮將應用程式轉移至安全來源,例如 HTTPS。詳情請參閱 https://goo.gle/chrome-insecure-origins。"
|
|
2176
2206
|
},
|
|
@@ -2255,12 +2285,6 @@
|
|
|
2255
2285
|
"core/lib/deprecations-strings.js | WebSQL": {
|
|
2256
2286
|
"message": "網路 SQL 已淘汰,請使用 SQLite WebAssembly 或已建立索引的資料庫"
|
|
2257
2287
|
},
|
|
2258
|
-
"core/lib/deprecations-strings.js | WindowPlacementPermissionDescriptorUsed": {
|
|
2259
|
-
"message": "權限描述元 `window-placement` 已淘汰,請改用 `window-management`。詳情請參閱 https://bit.ly/window-placement-rename。"
|
|
2260
|
-
},
|
|
2261
|
-
"core/lib/deprecations-strings.js | WindowPlacementPermissionPolicyParsed": {
|
|
2262
|
-
"message": "權限政策 `window-placement` 已淘汰,請改用 `window-management`。詳情請參閱 https://bit.ly/window-placement-rename。"
|
|
2263
|
-
},
|
|
2264
2288
|
"core/lib/deprecations-strings.js | XHRJSONEncodingDetection": {
|
|
2265
2289
|
"message": "`XMLHttpRequest` 中的 JSON 回應不支援 UTF-16"
|
|
2266
2290
|
},
|
|
@@ -2627,6 +2651,12 @@
|
|
|
2627
2651
|
"node_modules/@paulirish/trace_engine/models/trace/insights/CLSCulprits.js | title": {
|
|
2628
2652
|
"message": "版面配置位移主因"
|
|
2629
2653
|
},
|
|
2654
|
+
"node_modules/@paulirish/trace_engine/models/trace/insights/DOMSize.js | description": {
|
|
2655
|
+
"message": "大型 DOM 會增加記憶體用量、延長樣式運算的時間,並產生費工的版面配置自動重排,進而影響網頁的反應速度。[瞭解如何避免 DOM 過大](https://developer.chrome.com/docs/lighthouse/performance/dom-size/)。"
|
|
2656
|
+
},
|
|
2657
|
+
"node_modules/@paulirish/trace_engine/models/trace/insights/DOMSize.js | title": {
|
|
2658
|
+
"message": "最佳化 DOM 大小"
|
|
2659
|
+
},
|
|
2630
2660
|
"node_modules/@paulirish/trace_engine/models/trace/insights/DocumentLatency.js | description": {
|
|
2631
2661
|
"message": "第一個網路要求最為重要。避免重新導向、確保伺服器快速回應,並啟用文字壓縮功能,即可縮短延遲時間。"
|
|
2632
2662
|
},
|
|
@@ -2639,6 +2669,24 @@
|
|
|
2639
2669
|
"node_modules/@paulirish/trace_engine/models/trace/insights/FontDisplay.js | title": {
|
|
2640
2670
|
"message": "字型顯示"
|
|
2641
2671
|
},
|
|
2672
|
+
"node_modules/@paulirish/trace_engine/models/trace/insights/ImageDelivery.js | description": {
|
|
2673
|
+
"message": "縮短圖片下載時間,可縮減使用者感知的網頁載入時間,並提升 LCP 指標的表現。[進一步瞭解如何最佳化圖片大小](https://developer.chrome.com/docs/lighthouse/performance/uses-optimized-images/)"
|
|
2674
|
+
},
|
|
2675
|
+
"node_modules/@paulirish/trace_engine/models/trace/insights/ImageDelivery.js | title": {
|
|
2676
|
+
"message": "提升圖片傳送效能"
|
|
2677
|
+
},
|
|
2678
|
+
"node_modules/@paulirish/trace_engine/models/trace/insights/ImageDelivery.js | useCompression": {
|
|
2679
|
+
"message": "提高圖片壓縮係數可縮減這張圖片的下載大小 (預估大小為 {PH1})。"
|
|
2680
|
+
},
|
|
2681
|
+
"node_modules/@paulirish/trace_engine/models/trace/insights/ImageDelivery.js | useModernFormat": {
|
|
2682
|
+
"message": "使用新式圖片格式 (WebP、AVIF) 或提高圖片壓縮係數,可縮減這張圖片的下載大小 (預估大小為 {PH1})。"
|
|
2683
|
+
},
|
|
2684
|
+
"node_modules/@paulirish/trace_engine/models/trace/insights/ImageDelivery.js | useResponsiveSize": {
|
|
2685
|
+
"message": "這個圖片檔的原始尺寸 ({PH2}) 大於所需顯示尺寸 ({PH3})。請使用回應式圖片來縮減圖片下載大小 (預估大小為 {PH1})。"
|
|
2686
|
+
},
|
|
2687
|
+
"node_modules/@paulirish/trace_engine/models/trace/insights/ImageDelivery.js | useVideoFormat": {
|
|
2688
|
+
"message": "使用影片格式而非 GIF,可以縮減動畫內容的下載大小 (預估大小為 {PH1})。"
|
|
2689
|
+
},
|
|
2642
2690
|
"node_modules/@paulirish/trace_engine/models/trace/insights/InteractionToNextPaint.js | description": {
|
|
2643
2691
|
"message": "從最長的階段開始調查,[可盡量縮短延遲時間](https://web.dev/articles/optimize-inp#optimize_interactions)。如要縮短處理時間,請[盡量降低主執行緒的成本](https://web.dev/articles/optimize-long-tasks),通常是針對 JavaScript。"
|
|
2644
2692
|
},
|
|
@@ -2676,10 +2724,10 @@
|
|
|
2676
2724
|
"message": "第三方"
|
|
2677
2725
|
},
|
|
2678
2726
|
"node_modules/@paulirish/trace_engine/models/trace/insights/Viewport.js | description": {
|
|
2679
|
-
"message": "
|
|
2727
|
+
"message": "如果可視區域未針對行動裝置進行最佳化調整,輕觸互動可能會[延遲最多 300 毫秒](https://developer.chrome.com/blog/300ms-tap-delay-gone-away/)。"
|
|
2680
2728
|
},
|
|
2681
2729
|
"node_modules/@paulirish/trace_engine/models/trace/insights/Viewport.js | title": {
|
|
2682
|
-
"message": "
|
|
2730
|
+
"message": "針對行動裝置最佳化可視區域"
|
|
2683
2731
|
},
|
|
2684
2732
|
"node_modules/lighthouse-stack-packs/packs/amp.js | efficient-animated-content": {
|
|
2685
2733
|
"message": "你可以對動畫內容使用 [`amp-anim`](https://amp.dev/documentation/components/amp-anim/),這樣一來,畫面外的內容即會盡量節省 CPU 用量。"
|
|
@@ -977,6 +977,36 @@
|
|
|
977
977
|
"core/audits/font-display.js | undeclaredFontOriginWarning": {
|
|
978
978
|
"message": "{fontCountForOrigin,plural, =1{Lighthouse 无法自动检查源 {fontOrigin} 的 `font-display` 值。}other{Lighthouse 无法自动检查源 {fontOrigin} 的 `font-display` 值。}}"
|
|
979
979
|
},
|
|
980
|
+
"core/audits/has-hsts.js | columnDirective": {
|
|
981
|
+
"message": "指令"
|
|
982
|
+
},
|
|
983
|
+
"core/audits/has-hsts.js | columnSeverity": {
|
|
984
|
+
"message": "严重程度"
|
|
985
|
+
},
|
|
986
|
+
"core/audits/has-hsts.js | description": {
|
|
987
|
+
"message": "部署 HSTS 标头可显著降低 HTTP 连接降级和窃听攻击的风险。建议分阶段部署,从较低的 max-age 开始。[详细了解如何使用严格 HSTS 政策。](https://developer.chrome.com/docs/lighthouse/best-practices/has-hsts)"
|
|
988
|
+
},
|
|
989
|
+
"core/audits/has-hsts.js | invalidSyntax": {
|
|
990
|
+
"message": "语法无效"
|
|
991
|
+
},
|
|
992
|
+
"core/audits/has-hsts.js | lowMaxAge": {
|
|
993
|
+
"message": "`max-age` 过低"
|
|
994
|
+
},
|
|
995
|
+
"core/audits/has-hsts.js | noHsts": {
|
|
996
|
+
"message": "未找到 HSTS 标题"
|
|
997
|
+
},
|
|
998
|
+
"core/audits/has-hsts.js | noMaxAge": {
|
|
999
|
+
"message": "没有 `max-age` 指令"
|
|
1000
|
+
},
|
|
1001
|
+
"core/audits/has-hsts.js | noPreload": {
|
|
1002
|
+
"message": "未找到 `preload` 指令"
|
|
1003
|
+
},
|
|
1004
|
+
"core/audits/has-hsts.js | noSubdomain": {
|
|
1005
|
+
"message": "未找到 `includeSubDomains` 指令"
|
|
1006
|
+
},
|
|
1007
|
+
"core/audits/has-hsts.js | title": {
|
|
1008
|
+
"message": "使用严格 HSTS 政策"
|
|
1009
|
+
},
|
|
980
1010
|
"core/audits/image-aspect-ratio.js | columnActual": {
|
|
981
1011
|
"message": "宽高比(实际)"
|
|
982
1012
|
},
|
|
@@ -1082,9 +1112,6 @@
|
|
|
1082
1112
|
"core/audits/layout-shifts.js | rootCauseInjectedIframe": {
|
|
1083
1113
|
"message": "注入的 iframe"
|
|
1084
1114
|
},
|
|
1085
|
-
"core/audits/layout-shifts.js | rootCauseRenderBlockingRequest": {
|
|
1086
|
-
"message": "延迟的网络请求调整了页面布局"
|
|
1087
|
-
},
|
|
1088
1115
|
"core/audits/layout-shifts.js | rootCauseUnsizedMedia": {
|
|
1089
1116
|
"message": "媒体元素缺少明确的大小"
|
|
1090
1117
|
},
|
|
@@ -1187,6 +1214,24 @@
|
|
|
1187
1214
|
"core/audits/non-composited-animations.js | unsupportedTimingParameters": {
|
|
1188
1215
|
"message": "效果含有不受支持的时间参数"
|
|
1189
1216
|
},
|
|
1217
|
+
"core/audits/origin-isolation.js | columnDirective": {
|
|
1218
|
+
"message": "指令"
|
|
1219
|
+
},
|
|
1220
|
+
"core/audits/origin-isolation.js | columnSeverity": {
|
|
1221
|
+
"message": "严重程度"
|
|
1222
|
+
},
|
|
1223
|
+
"core/audits/origin-isolation.js | description": {
|
|
1224
|
+
"message": "Cross-Origin-Opener-Policy (COOP) 可用于将顶级窗口与其他文档(例如弹出式窗口)隔离。[详细了解如何部署 COOP 标头。](https://web.dev/articles/why-coop-coep#coop)"
|
|
1225
|
+
},
|
|
1226
|
+
"core/audits/origin-isolation.js | invalidSyntax": {
|
|
1227
|
+
"message": "语法无效"
|
|
1228
|
+
},
|
|
1229
|
+
"core/audits/origin-isolation.js | noCoop": {
|
|
1230
|
+
"message": "未找到 COOP 标头"
|
|
1231
|
+
},
|
|
1232
|
+
"core/audits/origin-isolation.js | title": {
|
|
1233
|
+
"message": "确保通过 COOP 实现适当的源隔离"
|
|
1234
|
+
},
|
|
1190
1235
|
"core/audits/preload-fonts.js | description": {
|
|
1191
1236
|
"message": "请预加载 `optional` 字体以方便初访者使用。[详细了解如何预加载字体](https://web.dev/articles/preload-optional-fonts)"
|
|
1192
1237
|
},
|
|
@@ -1688,9 +1733,6 @@
|
|
|
1688
1733
|
"core/lib/bf-cache-strings.js | appBanner": {
|
|
1689
1734
|
"message": "已请求 AppBanner 的网页目前无法储存至往返缓存。"
|
|
1690
1735
|
},
|
|
1691
|
-
"core/lib/bf-cache-strings.js | authorizationHeader": {
|
|
1692
|
-
"message": "往返缓存已被停用,因为这是一项 keepalive 请求。"
|
|
1693
|
-
},
|
|
1694
1736
|
"core/lib/bf-cache-strings.js | backForwardCacheDisabled": {
|
|
1695
1737
|
"message": "往返缓存被相关 flag 停用了。请在此设备上访问 chrome://flags/#back-forward-cache 以从本地启用该功能。"
|
|
1696
1738
|
},
|
|
@@ -1907,9 +1949,6 @@
|
|
|
1907
1949
|
"core/lib/bf-cache-strings.js | pictureInPicture": {
|
|
1908
1950
|
"message": "使用“画中画”功能的网页目前无法储存至往返缓存。"
|
|
1909
1951
|
},
|
|
1910
|
-
"core/lib/bf-cache-strings.js | portal": {
|
|
1911
|
-
"message": "使用门户的网页目前无法储存至往返缓存。"
|
|
1912
|
-
},
|
|
1913
1952
|
"core/lib/bf-cache-strings.js | printing": {
|
|
1914
1953
|
"message": "显示打印界面的网页目前无法储存至往返缓存。"
|
|
1915
1954
|
},
|
|
@@ -2129,12 +2168,6 @@
|
|
|
2129
2168
|
"core/lib/deprecations-strings.js | DataUrlInSvgUse": {
|
|
2130
2169
|
"message": "对 SVG <use> 元素中 data: URL 的支持已被弃用,日后将被移除。"
|
|
2131
2170
|
},
|
|
2132
|
-
"core/lib/deprecations-strings.js | DocumentDomainSettingWithoutOriginAgentClusterHeader": {
|
|
2133
|
-
"message": "通过设置 `document.domain` 放宽同源政策的功能已被弃用,并将默认处于停用状态。若要继续使用此功能,请通过发送 `Origin-Agent-Cluster: ?0` 标头以及文档和框架的 HTTP 响应来选择停用以源为键的代理集群。如需了解详情,请访问 https://developer.chrome.com/blog/immutable-document-domain/。"
|
|
2134
|
-
},
|
|
2135
|
-
"core/lib/deprecations-strings.js | ExpectCTHeader": {
|
|
2136
|
-
"message": "`Expect-CT` 标头已被弃用,并将被移除。Chrome 要求,在 2018 年 4 月 30 日之后颁发的所有受大众信任的证书均须遵守证书透明度政策。"
|
|
2137
|
-
},
|
|
2138
2171
|
"core/lib/deprecations-strings.js | GeolocationInsecureOrigin": {
|
|
2139
2172
|
"message": "`getCurrentPosition()` 和 `watchPosition()` 不再适用于不安全的源。若要使用此功能,您应考虑将您的应用转移到安全的源,例如 HTTPS。如需了解详情,请访问 https://goo.gle/chrome-insecure-origins。"
|
|
2140
2173
|
},
|
|
@@ -2168,9 +2201,6 @@
|
|
|
2168
2201
|
"core/lib/deprecations-strings.js | NoSysexWebMIDIWithoutPermission": {
|
|
2169
2202
|
"message": "即使 `MIDIOptions` 中未指定 sysex,Web MIDI 也会请求获得使用许可。"
|
|
2170
2203
|
},
|
|
2171
|
-
"core/lib/deprecations-strings.js | NonStandardDeclarativeShadowDOM": {
|
|
2172
|
-
"message": "较旧的非标准化 `shadowroot` 属性已被弃用,自 M119 起将*不再起作用*。请改用新的标准化 `shadowrootmode` 属性。"
|
|
2173
|
-
},
|
|
2174
2204
|
"core/lib/deprecations-strings.js | NotificationInsecureOrigin": {
|
|
2175
2205
|
"message": "无法再从不安全的源使用 Notification API。您应考虑将您的应用转移到安全的源,例如 HTTPS。如需了解详情,请访问 https://goo.gle/chrome-insecure-origins。"
|
|
2176
2206
|
},
|
|
@@ -2255,12 +2285,6 @@
|
|
|
2255
2285
|
"core/lib/deprecations-strings.js | WebSQL": {
|
|
2256
2286
|
"message": "Web SQL 已被弃用。请使用 SQLite WebAssembly 或 Indexed Database"
|
|
2257
2287
|
},
|
|
2258
|
-
"core/lib/deprecations-strings.js | WindowPlacementPermissionDescriptorUsed": {
|
|
2259
|
-
"message": "权限描述符 `window-placement` 已被弃用。请改用 `window-management`。如需更多帮助,请访问 https://bit.ly/window-placement-rename。"
|
|
2260
|
-
},
|
|
2261
|
-
"core/lib/deprecations-strings.js | WindowPlacementPermissionPolicyParsed": {
|
|
2262
|
-
"message": "权限政策 `window-placement` 已被弃用。请改用 `window-management`。如需更多帮助,请访问 https://bit.ly/window-placement-rename。"
|
|
2263
|
-
},
|
|
2264
2288
|
"core/lib/deprecations-strings.js | XHRJSONEncodingDetection": {
|
|
2265
2289
|
"message": "`XMLHttpRequest` 中的响应 JSON 不支持 UTF-16"
|
|
2266
2290
|
},
|
|
@@ -2627,6 +2651,12 @@
|
|
|
2627
2651
|
"node_modules/@paulirish/trace_engine/models/trace/insights/CLSCulprits.js | title": {
|
|
2628
2652
|
"message": "布局偏移原因"
|
|
2629
2653
|
},
|
|
2654
|
+
"node_modules/@paulirish/trace_engine/models/trace/insights/DOMSize.js | description": {
|
|
2655
|
+
"message": "大型 DOM 会增加内存用量、导致样式计算用时延长,并产生高昂的布局自动重排成本,从而影响网页响应速度。[了解如何避免 DOM 规模过大](https://developer.chrome.com/docs/lighthouse/performance/dom-size/)。"
|
|
2656
|
+
},
|
|
2657
|
+
"node_modules/@paulirish/trace_engine/models/trace/insights/DOMSize.js | title": {
|
|
2658
|
+
"message": "优化 DOM 大小"
|
|
2659
|
+
},
|
|
2630
2660
|
"node_modules/@paulirish/trace_engine/models/trace/insights/DocumentLatency.js | description": {
|
|
2631
2661
|
"message": "您的第一个网络请求最为重要。您可通过避免重定向、确保服务器快速响应以及启用文本压缩,缩短其延迟时间。"
|
|
2632
2662
|
},
|
|
@@ -2639,6 +2669,24 @@
|
|
|
2639
2669
|
"node_modules/@paulirish/trace_engine/models/trace/insights/FontDisplay.js | title": {
|
|
2640
2670
|
"message": "字体显示"
|
|
2641
2671
|
},
|
|
2672
|
+
"node_modules/@paulirish/trace_engine/models/trace/insights/ImageDelivery.js | description": {
|
|
2673
|
+
"message": "缩短图片下载时间可优化网页的感知加载时间和 LCP。[详细了解图片大小优化](https://developer.chrome.com/docs/lighthouse/performance/uses-optimized-images/)"
|
|
2674
|
+
},
|
|
2675
|
+
"node_modules/@paulirish/trace_engine/models/trace/insights/ImageDelivery.js | title": {
|
|
2676
|
+
"message": "改进图片传送"
|
|
2677
|
+
},
|
|
2678
|
+
"node_modules/@paulirish/trace_engine/models/trace/insights/ImageDelivery.js | useCompression": {
|
|
2679
|
+
"message": "提高图片压缩因子可以优化此图片的下载大小。(预计 {PH1})"
|
|
2680
|
+
},
|
|
2681
|
+
"node_modules/@paulirish/trace_engine/models/trace/insights/ImageDelivery.js | useModernFormat": {
|
|
2682
|
+
"message": "使用现代图片格式(WebP、AVIF)或提高图片压缩率可以优化此图片的下载大小。(预计 {PH1})"
|
|
2683
|
+
},
|
|
2684
|
+
"node_modules/@paulirish/trace_engine/models/trace/insights/ImageDelivery.js | useResponsiveSize": {
|
|
2685
|
+
"message": "此图片文件的大小 ({PH2}) 超过了所需显示大小 ({PH3})。请使用自适应图片来缩减图片下载大小。(预计 {PH1})"
|
|
2686
|
+
},
|
|
2687
|
+
"node_modules/@paulirish/trace_engine/models/trace/insights/ImageDelivery.js | useVideoFormat": {
|
|
2688
|
+
"message": "使用视频格式而非 GIF 格式可以优化动画内容的下载大小。(预计 {PH1})"
|
|
2689
|
+
},
|
|
2642
2690
|
"node_modules/@paulirish/trace_engine/models/trace/insights/InteractionToNextPaint.js | description": {
|
|
2643
2691
|
"message": "请从持续时间最长的阶段开始检查。[几处延迟可降低到最小](https://web.dev/articles/optimize-inp#optimize_interactions)。如需缩短处理时长,请[优化主线程(通常是 JS)成本](https://web.dev/articles/optimize-long-tasks)。"
|
|
2644
2692
|
},
|
|
@@ -2676,10 +2724,10 @@
|
|
|
2676
2724
|
"message": "第三方"
|
|
2677
2725
|
},
|
|
2678
2726
|
"node_modules/@paulirish/trace_engine/models/trace/insights/Viewport.js | description": {
|
|
2679
|
-
"message": "
|
|
2727
|
+
"message": "如果视口未针对移动设备进行优化,点按互动可能会[延迟最多 300 毫秒](https://developer.chrome.com/blog/300ms-tap-delay-gone-away/)。"
|
|
2680
2728
|
},
|
|
2681
2729
|
"node_modules/@paulirish/trace_engine/models/trace/insights/Viewport.js | title": {
|
|
2682
|
-
"message": "
|
|
2730
|
+
"message": "针对移动设备优化视口"
|
|
2683
2731
|
},
|
|
2684
2732
|
"node_modules/lighthouse-stack-packs/packs/amp.js | efficient-animated-content": {
|
|
2685
2733
|
"message": "对于动画内容,请使用 [`amp-anim`](https://amp.dev/documentation/components/amp-anim/) 尽量减少当内容在屏幕外时的 CPU 使用量。"
|
|
@@ -48,10 +48,13 @@ Array [
|
|
|
48
48
|
"lowTextContrastIssueDetails",
|
|
49
49
|
"mixedContentIssueDetails",
|
|
50
50
|
"navigatorUserAgentIssueDetails",
|
|
51
|
+
"partitioningBlobURLIssueDetails",
|
|
51
52
|
"propertyRuleIssueDetails",
|
|
52
53
|
"quirksModeIssueDetails",
|
|
54
|
+
"selectElementAccessibilityIssueDetails",
|
|
53
55
|
"sharedArrayBufferIssueDetails",
|
|
54
56
|
"sharedDictionaryIssueDetails",
|
|
57
|
+
"sriMessageSignatureIssueDetails",
|
|
55
58
|
"stylesheetLoadingIssueDetails",
|
|
56
59
|
]
|
|
57
60
|
`);
|
package/types/artifacts.d.ts
CHANGED
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
import {Protocol as Crdp} from 'devtools-protocol/types/protocol.js';
|
|
8
8
|
import * as TraceEngine from '@paulirish/trace_engine';
|
|
9
9
|
import * as Lantern from '../core/lib/lantern/lantern.js';
|
|
10
|
-
import {LayoutShiftRootCausesData} from '@paulirish/trace_engine/models/trace/root-causes/LayoutShift.js';
|
|
11
10
|
|
|
12
11
|
import {parseManifest} from '../core/lib/manifest-parser.js';
|
|
13
12
|
import {LighthouseError} from '../core/lib/lh-error.js';
|
|
@@ -502,7 +501,7 @@ declare module Artifacts {
|
|
|
502
501
|
}
|
|
503
502
|
|
|
504
503
|
interface TraceElement {
|
|
505
|
-
traceEventType: 'largest-contentful-paint'|'layout-shift'|'animation'|'responsiveness';
|
|
504
|
+
traceEventType: 'trace-engine'|'largest-contentful-paint'|'layout-shift'|'animation'|'responsiveness';
|
|
506
505
|
node: NodeDetails;
|
|
507
506
|
nodeId: number;
|
|
508
507
|
animations?: {name?: string, failureReasonsMask?: number, unsupportedProperties?: string[]}[];
|
|
@@ -515,7 +514,7 @@ declare module Artifacts {
|
|
|
515
514
|
}
|
|
516
515
|
|
|
517
516
|
interface TraceEngineRootCauses {
|
|
518
|
-
layoutShifts:
|
|
517
|
+
layoutShifts: Map<TraceEngine.Types.Events.SyntheticLayoutShift, TraceEngine.Insights.Models.CLSCulprits.LayoutShiftRootCausesData>;
|
|
519
518
|
}
|
|
520
519
|
|
|
521
520
|
interface ViewportDimensions {
|
|
@@ -541,11 +540,14 @@ declare module Artifacts {
|
|
|
541
540
|
lowTextContrastIssue: Crdp.Audits.LowTextContrastIssueDetails[];
|
|
542
541
|
mixedContentIssue: Crdp.Audits.MixedContentIssueDetails[];
|
|
543
542
|
navigatorUserAgentIssue: Crdp.Audits.NavigatorUserAgentIssueDetails[];
|
|
543
|
+
partitioningBlobURLIssue: Crdp.Audits.PartitioningBlobURLIssueDetails[];
|
|
544
544
|
propertyRuleIssue: Crdp.Audits.PropertyRuleIssueDetails[],
|
|
545
545
|
quirksModeIssue: Crdp.Audits.QuirksModeIssueDetails[];
|
|
546
546
|
cookieIssue: Crdp.Audits.CookieIssueDetails[];
|
|
547
|
+
selectElementAccessibilityIssue: Crdp.Audits.SelectElementAccessibilityIssueDetails[];
|
|
547
548
|
sharedArrayBufferIssue: Crdp.Audits.SharedArrayBufferIssueDetails[];
|
|
548
549
|
sharedDictionaryIssue: Crdp.Audits.SharedDictionaryIssueDetails[];
|
|
550
|
+
sriMessageSignatureIssue: Crdp.Audits.SRIMessageSignatureIssueDetails[];
|
|
549
551
|
stylesheetLoadingIssue: Crdp.Audits.StylesheetLoadingIssueDetails[];
|
|
550
552
|
federatedAuthUserInfoRequestIssue: Crdp.Audits.FederatedAuthUserInfoRequestIssueDetails[];
|
|
551
553
|
}
|
package/types/audit.d.ts
CHANGED
|
@@ -64,6 +64,8 @@ declare module Audit {
|
|
|
64
64
|
supportedModes?: Gatherer.GatherMode[],
|
|
65
65
|
/** A number indicating how much guidance Lighthouse provides to solve the problem in this audit on a 1-3 scale. Higher means more guidance. */
|
|
66
66
|
guidanceLevel?: number;
|
|
67
|
+
/** A list of audit ids that this audit replaces. Used to ensure the report does not render the audits in this list at the same time as the audit which contains the list. */
|
|
68
|
+
replacesAudits?: string[];
|
|
67
69
|
}
|
|
68
70
|
|
|
69
71
|
interface ByteEfficiencyItem extends AuditDetails.OpportunityItem {
|