lighthouse 11.7.0-dev.20240325 → 11.7.0-dev.20240327
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/audits/accessibility/accesskeys.js +1 -1
- package/core/audits/accessibility/aria-allowed-attr.js +1 -1
- package/core/audits/accessibility/aria-allowed-role.js +1 -1
- package/core/audits/accessibility/aria-command-name.js +1 -1
- package/core/audits/accessibility/aria-dialog-name.js +1 -1
- package/core/audits/accessibility/aria-hidden-body.js +1 -1
- package/core/audits/accessibility/aria-hidden-focus.js +1 -1
- package/core/audits/accessibility/aria-input-field-name.js +1 -1
- package/core/audits/accessibility/aria-meter-name.js +1 -1
- package/core/audits/accessibility/aria-progressbar-name.js +1 -1
- package/core/audits/accessibility/aria-required-attr.js +1 -1
- package/core/audits/accessibility/aria-required-children.js +1 -1
- package/core/audits/accessibility/aria-required-parent.js +1 -1
- package/core/audits/accessibility/aria-roles.js +1 -1
- package/core/audits/accessibility/aria-text.js +1 -1
- package/core/audits/accessibility/aria-toggle-field-name.js +1 -1
- package/core/audits/accessibility/aria-tooltip-name.js +1 -1
- package/core/audits/accessibility/aria-treeitem-name.js +1 -1
- package/core/audits/accessibility/aria-valid-attr-value.js +1 -1
- package/core/audits/accessibility/aria-valid-attr.js +1 -1
- package/core/audits/accessibility/button-name.js +1 -1
- package/core/audits/accessibility/bypass.js +1 -1
- package/core/audits/accessibility/color-contrast.js +1 -1
- package/core/audits/accessibility/definition-list.js +1 -1
- package/core/audits/accessibility/dlitem.js +1 -1
- package/core/audits/accessibility/document-title.js +1 -1
- package/core/audits/accessibility/duplicate-id-active.js +1 -1
- package/core/audits/accessibility/duplicate-id-aria.js +1 -1
- package/core/audits/accessibility/empty-heading.js +1 -1
- package/core/audits/accessibility/form-field-multiple-labels.js +1 -1
- package/core/audits/accessibility/frame-title.js +1 -1
- package/core/audits/accessibility/heading-order.js +1 -1
- package/core/audits/accessibility/html-has-lang.js +1 -1
- package/core/audits/accessibility/html-lang-valid.js +1 -1
- package/core/audits/accessibility/html-xml-lang-mismatch.js +1 -1
- package/core/audits/accessibility/identical-links-same-purpose.js +1 -1
- package/core/audits/accessibility/image-alt.js +1 -1
- package/core/audits/accessibility/image-redundant-alt.js +1 -1
- package/core/audits/accessibility/input-button-name.js +1 -1
- package/core/audits/accessibility/input-image-alt.js +1 -1
- package/core/audits/accessibility/label-content-name-mismatch.js +1 -1
- package/core/audits/accessibility/label.js +1 -1
- package/core/audits/accessibility/landmark-one-main.js +1 -1
- package/core/audits/accessibility/link-in-text-block.js +1 -1
- package/core/audits/accessibility/link-name.js +1 -1
- package/core/audits/accessibility/list.js +1 -1
- package/core/audits/accessibility/listitem.js +1 -1
- package/core/audits/accessibility/meta-refresh.js +1 -1
- package/core/audits/accessibility/meta-viewport.js +1 -1
- package/core/audits/accessibility/object-alt.js +1 -1
- package/core/audits/accessibility/select-name.js +1 -1
- package/core/audits/accessibility/skip-link.js +1 -1
- package/core/audits/accessibility/tabindex.js +1 -1
- package/core/audits/accessibility/table-duplicate-name.js +1 -1
- package/core/audits/accessibility/table-fake-caption.js +1 -1
- package/core/audits/accessibility/target-size.js +1 -1
- package/core/audits/accessibility/td-has-header.js +1 -1
- package/core/audits/accessibility/td-headers-attr.js +1 -1
- package/core/audits/accessibility/th-has-data-cells.js +1 -1
- package/core/audits/accessibility/valid-lang.js +1 -1
- package/core/audits/accessibility/video-caption.js +1 -1
- package/core/audits/work-during-interaction.d.ts +2 -2
- package/core/audits/work-during-interaction.js +2 -2
- package/core/computed/metrics/lantern-metric.js +1 -3
- package/core/computed/metrics/metric.js +1 -3
- package/core/config/default-config.js +5 -9
- package/core/lib/lighthouse-compatibility.js +33 -0
- package/dist/report/bundle.esm.js +1 -1
- package/dist/report/flow.js +1 -1
- package/dist/report/standalone.js +1 -1
- package/package.json +2 -2
- package/report/renderer/report-utils.js +13 -10
- package/shared/localization/locales/ar-XB.json +1 -10
- package/shared/localization/locales/ar.json +1 -10
- package/shared/localization/locales/bg.json +1 -10
- package/shared/localization/locales/ca.json +1 -10
- package/shared/localization/locales/cs.json +1 -10
- package/shared/localization/locales/da.json +1 -10
- package/shared/localization/locales/de.json +1 -10
- package/shared/localization/locales/el.json +1 -10
- package/shared/localization/locales/en-GB.json +1 -10
- package/shared/localization/locales/en-US.json +63 -72
- package/shared/localization/locales/en-XA.json +1 -10
- package/shared/localization/locales/en-XL.json +63 -72
- package/shared/localization/locales/es-419.json +1 -10
- package/shared/localization/locales/es.json +1 -10
- package/shared/localization/locales/fi.json +1 -10
- package/shared/localization/locales/fil.json +1 -10
- package/shared/localization/locales/fr.json +1 -10
- package/shared/localization/locales/he.json +1 -10
- package/shared/localization/locales/hi.json +1 -10
- package/shared/localization/locales/hr.json +1 -10
- package/shared/localization/locales/hu.json +1 -10
- package/shared/localization/locales/id.json +1 -10
- package/shared/localization/locales/it.json +1 -10
- package/shared/localization/locales/ja.json +1 -10
- package/shared/localization/locales/ko.json +1 -10
- package/shared/localization/locales/lt.json +1 -10
- package/shared/localization/locales/lv.json +1 -10
- package/shared/localization/locales/nl.json +1 -10
- package/shared/localization/locales/no.json +1 -10
- package/shared/localization/locales/pl.json +1 -10
- package/shared/localization/locales/pt-PT.json +1 -10
- package/shared/localization/locales/pt.json +1 -10
- package/shared/localization/locales/ro.json +1 -10
- package/shared/localization/locales/ru.json +1 -10
- package/shared/localization/locales/sk.json +1 -10
- package/shared/localization/locales/sl.json +1 -10
- package/shared/localization/locales/sr-Latn.json +1 -10
- package/shared/localization/locales/sr.json +1 -10
- package/shared/localization/locales/sv.json +1 -10
- package/shared/localization/locales/ta.json +1 -10
- package/shared/localization/locales/te.json +1 -10
- package/shared/localization/locales/th.json +1 -10
- package/shared/localization/locales/tr.json +1 -10
- package/shared/localization/locales/uk.json +1 -10
- package/shared/localization/locales/vi.json +1 -10
- package/shared/localization/locales/zh-HK.json +1 -10
- package/shared/localization/locales/zh-TW.json +1 -10
- package/shared/localization/locales/zh.json +1 -10
- package/types/config.d.ts +0 -1
- package/types/lhr/lhr.d.ts +0 -2
- package/core/audits/no-unload-listeners.d.ts +0 -16
- package/core/audits/no-unload-listeners.js +0 -86
- package/core/config/metrics-to-audits.d.ts +0 -19
- package/core/config/metrics-to-audits.js +0 -60
- package/core/gather/gatherers/global-listeners.d.ts +0 -27
- package/core/gather/gatherers/global-listeners.js +0 -108
|
@@ -1286,15 +1286,6 @@
|
|
|
1286
1286
|
"core/audits/network-server-latency.js | title": {
|
|
1287
1287
|
"message": "Zakasnitve strežnikovega zaledja"
|
|
1288
1288
|
},
|
|
1289
|
-
"core/audits/no-unload-listeners.js | description": {
|
|
1290
|
-
"message": "Dogodek `unload` se ne aktivira zanesljivo in poslušanje, kdaj se aktivira, lahko prepreči optimizacije brskalnika, kot je predpomnjenje pomikanja naprej in nazaj. Uporabite dogodke `pagehide` ali `visibilitychange`. [Preberite več o odstranjevanju poslušalcev dogodkov](https://web.dev/articles/bfcache#never_use_the_unload_event)."
|
|
1291
|
-
},
|
|
1292
|
-
"core/audits/no-unload-listeners.js | failureTitle": {
|
|
1293
|
-
"message": "Registrira poslušalca dogodka `unload`"
|
|
1294
|
-
},
|
|
1295
|
-
"core/audits/no-unload-listeners.js | title": {
|
|
1296
|
-
"message": "Izogiba se poslušalcem dogodka `unload`"
|
|
1297
|
-
},
|
|
1298
1289
|
"core/audits/non-composited-animations.js | description": {
|
|
1299
1290
|
"message": "Animacije, ki niso sestavljene, so lahko nestabilne in lahko povečajo CLS. [Preberite, kako se lahko izognete nesestavljenim animacijam](https://developer.chrome.com/docs/lighthouse/performance/non-composited-animations/)"
|
|
1300
1291
|
},
|
|
@@ -1718,7 +1709,7 @@
|
|
|
1718
1709
|
"core/audits/work-during-interaction.js | presentationDelay": {
|
|
1719
1710
|
"message": "Zakasnitev predstavitve"
|
|
1720
1711
|
},
|
|
1721
|
-
"core/audits/work-during-interaction.js |
|
|
1712
|
+
"core/audits/work-during-interaction.js | processingDuration": {
|
|
1722
1713
|
"message": "Čas obdelave"
|
|
1723
1714
|
},
|
|
1724
1715
|
"core/audits/work-during-interaction.js | title": {
|
|
@@ -1286,15 +1286,6 @@
|
|
|
1286
1286
|
"core/audits/network-server-latency.js | title": {
|
|
1287
1287
|
"message": "Pozadinska kašnjenja servera"
|
|
1288
1288
|
},
|
|
1289
|
-
"core/audits/no-unload-listeners.js | description": {
|
|
1290
|
-
"message": "Događaj `unload` se ne pokreće pouzdano i ako se on obrađuje, to može da spreči optimizacije pregledača poput keša za kretanje unazad i unapred. Bolje da koristite događaje `pagehide` ili `visibilitychange`. [Saznajte više o uklanjanju osluškivača događaja](https://web.dev/articles/bfcache#never_use_the_unload_event)"
|
|
1291
|
-
},
|
|
1292
|
-
"core/audits/no-unload-listeners.js | failureTitle": {
|
|
1293
|
-
"message": "Registruje obrađivača događaja `unload`"
|
|
1294
|
-
},
|
|
1295
|
-
"core/audits/no-unload-listeners.js | title": {
|
|
1296
|
-
"message": "Izbegava obrađivače događaja `unload`"
|
|
1297
|
-
},
|
|
1298
1289
|
"core/audits/non-composited-animations.js | description": {
|
|
1299
1290
|
"message": "Animacije koje nisu kompozitne mogu da budu problematične i da povećavaju kumulativni pomak sadržaja stranice. [Saznajte kako da izbegnete animacije koje nisu kompozitne](https://developer.chrome.com/docs/lighthouse/performance/non-composited-animations/)"
|
|
1300
1291
|
},
|
|
@@ -1718,7 +1709,7 @@
|
|
|
1718
1709
|
"core/audits/work-during-interaction.js | presentationDelay": {
|
|
1719
1710
|
"message": "Kašnjenje prezentacije"
|
|
1720
1711
|
},
|
|
1721
|
-
"core/audits/work-during-interaction.js |
|
|
1712
|
+
"core/audits/work-during-interaction.js | processingDuration": {
|
|
1722
1713
|
"message": "Vreme obrade"
|
|
1723
1714
|
},
|
|
1724
1715
|
"core/audits/work-during-interaction.js | title": {
|
|
@@ -1286,15 +1286,6 @@
|
|
|
1286
1286
|
"core/audits/network-server-latency.js | title": {
|
|
1287
1287
|
"message": "Позадинска кашњења сервера"
|
|
1288
1288
|
},
|
|
1289
|
-
"core/audits/no-unload-listeners.js | description": {
|
|
1290
|
-
"message": "Догађај `unload` се не покреће поуздано и ако се он обрађује, то може да спречи оптимизације прегледача попут кеша за кретање уназад и унапред. Боље да користите догађаје `pagehide` или `visibilitychange`. [Сазнајте више о уклањању ослушкивача догађаја](https://web.dev/articles/bfcache#never_use_the_unload_event)"
|
|
1291
|
-
},
|
|
1292
|
-
"core/audits/no-unload-listeners.js | failureTitle": {
|
|
1293
|
-
"message": "Региструје обрађивача догађаја `unload`"
|
|
1294
|
-
},
|
|
1295
|
-
"core/audits/no-unload-listeners.js | title": {
|
|
1296
|
-
"message": "Избегава обрађиваче догађаја `unload`"
|
|
1297
|
-
},
|
|
1298
1289
|
"core/audits/non-composited-animations.js | description": {
|
|
1299
1290
|
"message": "Анимације које нису композитне могу да буду проблематичне и да повећавају кумулативни помак садржаја странице. [Сазнајте како да избегнете анимације које нису композитне](https://developer.chrome.com/docs/lighthouse/performance/non-composited-animations/)"
|
|
1300
1291
|
},
|
|
@@ -1718,7 +1709,7 @@
|
|
|
1718
1709
|
"core/audits/work-during-interaction.js | presentationDelay": {
|
|
1719
1710
|
"message": "Кашњење презентације"
|
|
1720
1711
|
},
|
|
1721
|
-
"core/audits/work-during-interaction.js |
|
|
1712
|
+
"core/audits/work-during-interaction.js | processingDuration": {
|
|
1722
1713
|
"message": "Време обраде"
|
|
1723
1714
|
},
|
|
1724
1715
|
"core/audits/work-during-interaction.js | title": {
|
|
@@ -1286,15 +1286,6 @@
|
|
|
1286
1286
|
"core/audits/network-server-latency.js | title": {
|
|
1287
1287
|
"message": "Serverlatens"
|
|
1288
1288
|
},
|
|
1289
|
-
"core/audits/no-unload-listeners.js | description": {
|
|
1290
|
-
"message": "Händelsen `unload` aktiveras inte på ett tillförlitligt sätt och att lyssna efter den kan förhindra webbläsaroptimeringar, t.ex. vilocacheminne. Använd händelserna `pagehide` eller `visibilitychange` i stället. [Läs mer om att ta bort händelselyssnare](https://web.dev/articles/bfcache#never_use_the_unload_event)"
|
|
1291
|
-
},
|
|
1292
|
-
"core/audits/no-unload-listeners.js | failureTitle": {
|
|
1293
|
-
"message": "Registrerar en lyssnare för `unload`"
|
|
1294
|
-
},
|
|
1295
|
-
"core/audits/no-unload-listeners.js | title": {
|
|
1296
|
-
"message": "Undviker händelselyssnare för `unload`"
|
|
1297
|
-
},
|
|
1298
1289
|
"core/audits/non-composited-animations.js | description": {
|
|
1299
1290
|
"message": "Animationer som inte är sammansatta kan vara hackiga och orsaka ökad CLS. [Läs om hur du undviker animationer som inte är sammansatta](https://developer.chrome.com/docs/lighthouse/performance/non-composited-animations/)"
|
|
1300
1291
|
},
|
|
@@ -1718,7 +1709,7 @@
|
|
|
1718
1709
|
"core/audits/work-during-interaction.js | presentationDelay": {
|
|
1719
1710
|
"message": "Presentationsfördröjning"
|
|
1720
1711
|
},
|
|
1721
|
-
"core/audits/work-during-interaction.js |
|
|
1712
|
+
"core/audits/work-during-interaction.js | processingDuration": {
|
|
1722
1713
|
"message": "Bearbetningstid"
|
|
1723
1714
|
},
|
|
1724
1715
|
"core/audits/work-during-interaction.js | title": {
|
|
@@ -1286,15 +1286,6 @@
|
|
|
1286
1286
|
"core/audits/network-server-latency.js | title": {
|
|
1287
1287
|
"message": "சேவையக பேக்எண்ட் தாமதங்கள்"
|
|
1288
1288
|
},
|
|
1289
|
-
"core/audits/no-unload-listeners.js | description": {
|
|
1290
|
-
"message": "`unload` நிகழ்வு நம்பத்தகுந்த வகையில் தொடங்கவில்லை, பக்கங்கள் மேற்கொண்டு இதைக் கையாண்டால் உலாவியின் மேம்பட்ட திறன்கள் தடுக்கப்படலாம் (‘முன் பின் பக்கங்களைத் தற்காலிகமாகச் சேமித்தல்’ அம்சம் போன்றவை). இதற்குப் பதிலாக `pagehide` அல்லது `visibilitychange` நிகழ்வுகளைப் பயன்படுத்தவும். [அன்லோடு ஈவண்ட் லிசனர்கள் குறித்து மேலும் அறிக](https://web.dev/articles/bfcache#never_use_the_unload_event)"
|
|
1291
|
-
},
|
|
1292
|
-
"core/audits/no-unload-listeners.js | failureTitle": {
|
|
1293
|
-
"message": "`unload` நிகழ்வு லிசனரைப் பதிவுசெய்கிறது"
|
|
1294
|
-
},
|
|
1295
|
-
"core/audits/no-unload-listeners.js | title": {
|
|
1296
|
-
"message": "`unload` நிகழ்வு லிசனர்களைத் தவிர்க்கிறது"
|
|
1297
|
-
},
|
|
1298
1289
|
"core/audits/non-composited-animations.js | description": {
|
|
1299
1290
|
"message": "தொகுக்கப்படாத அனிமேஷன்கள் மோசமாக இருக்கும், CLSஸை அதிகரிக்கும். [தொகுக்கப்படாத அனிமேஷன்களைத் தவிர்ப்பது எப்படி என அறிக](https://developer.chrome.com/docs/lighthouse/performance/non-composited-animations/)"
|
|
1300
1291
|
},
|
|
@@ -1718,7 +1709,7 @@
|
|
|
1718
1709
|
"core/audits/work-during-interaction.js | presentationDelay": {
|
|
1719
1710
|
"message": "காட்சிப்படுத்தல் தாமதம்"
|
|
1720
1711
|
},
|
|
1721
|
-
"core/audits/work-during-interaction.js |
|
|
1712
|
+
"core/audits/work-during-interaction.js | processingDuration": {
|
|
1722
1713
|
"message": "செயலாக்க நேரம்"
|
|
1723
1714
|
},
|
|
1724
1715
|
"core/audits/work-during-interaction.js | title": {
|
|
@@ -1286,15 +1286,6 @@
|
|
|
1286
1286
|
"core/audits/network-server-latency.js | title": {
|
|
1287
1287
|
"message": "సర్వర్ బ్యాక్ఎండ్ ప్రతిస్పందన సమయాలు"
|
|
1288
1288
|
},
|
|
1289
|
-
"core/audits/no-unload-listeners.js | description": {
|
|
1290
|
-
"message": "ఈ `unload` ఈవెంట్ ఆశించినట్టు పని చేయదు, దాని కోసం వేచి ఉంటే, వెనుకకు-ముందుకు కాష్ లాంటి బ్రౌజర్ ఆప్టిమైజేషన్లు నిరోధించబడవచ్చు. అందుకు బదులుగా `pagehide` లేదా `visibilitychange` ఈవెంట్లను ఉపయోగించండి. [అన్లోడ్ ఈవెంట్ లిజనర్ల గురించి మరింత తెలుసుకోండి](https://web.dev/articles/bfcache#never_use_the_unload_event)"
|
|
1291
|
-
},
|
|
1292
|
-
"core/audits/no-unload-listeners.js | failureTitle": {
|
|
1293
|
-
"message": "`unload` లిజనర్గా రిజిస్టర్ చేస్తుంది"
|
|
1294
|
-
},
|
|
1295
|
-
"core/audits/no-unload-listeners.js | title": {
|
|
1296
|
-
"message": "`unload` ఈవెంట్ లిజనర్స్ను అవాయిడ్ చేస్తుంది"
|
|
1297
|
-
},
|
|
1298
1289
|
"core/audits/non-composited-animations.js | description": {
|
|
1299
1290
|
"message": "కంపోజిట్ చేయని యానిమేషన్లు పేలవంగా ఉండవచ్చు, అవి CLSను పెంచవచ్చు. [కంపోజిట్ కాని యానిమేషన్లను నివారించడం ఎలాగో తెలుసుకోండి](https://developer.chrome.com/docs/lighthouse/performance/non-composited-animations/)"
|
|
1300
1291
|
},
|
|
@@ -1718,7 +1709,7 @@
|
|
|
1718
1709
|
"core/audits/work-during-interaction.js | presentationDelay": {
|
|
1719
1710
|
"message": "ప్రెజెంటేషన్లో ఆలస్యం"
|
|
1720
1711
|
},
|
|
1721
|
-
"core/audits/work-during-interaction.js |
|
|
1712
|
+
"core/audits/work-during-interaction.js | processingDuration": {
|
|
1722
1713
|
"message": "ప్రాసెసింగ్ సమయం"
|
|
1723
1714
|
},
|
|
1724
1715
|
"core/audits/work-during-interaction.js | title": {
|
|
@@ -1286,15 +1286,6 @@
|
|
|
1286
1286
|
"core/audits/network-server-latency.js | title": {
|
|
1287
1287
|
"message": "เวลาในการตอบสนองจากแบ็กเอนด์ของเซิร์ฟเวอร์"
|
|
1288
1288
|
},
|
|
1289
|
-
"core/audits/no-unload-listeners.js | description": {
|
|
1290
|
-
"message": "เหตุการณ์ `unload` เริ่มทำงานโดยไม่มีความเสถียร และการ Listen อาจทำให้การเพิ่มประสิทธิภาพเบราว์เซอร์อย่าง Back-Forward Cache ไม่ทำงาน ใช้เหตุการณ์ `pagehide` หรือ `visibilitychange` แทน [ดูข้อมูลเพิ่มเติมเกี่ยวกับการยกเลิกการโหลด Listener เหตุการณ์](https://web.dev/articles/bfcache#never_use_the_unload_event)"
|
|
1291
|
-
},
|
|
1292
|
-
"core/audits/no-unload-listeners.js | failureTitle": {
|
|
1293
|
-
"message": "ลงทะเบียน Listener `unload`"
|
|
1294
|
-
},
|
|
1295
|
-
"core/audits/no-unload-listeners.js | title": {
|
|
1296
|
-
"message": "หลีกเลี่ยง Listener เหตุการณ์ `unload`"
|
|
1297
|
-
},
|
|
1298
1289
|
"core/audits/non-composited-animations.js | description": {
|
|
1299
1290
|
"message": "ภาพเคลื่อนไหวที่ไม่ได้ทำการ Composite อาจมีคุณภาพต่ำและทำให้ CLS เพิ่มขึ้น [ดูวิธีหลีกเลี่ยงภาพเคลื่อนไหวที่ไม่ได้ทำการ Composite](https://developer.chrome.com/docs/lighthouse/performance/non-composited-animations/)"
|
|
1300
1291
|
},
|
|
@@ -1718,7 +1709,7 @@
|
|
|
1718
1709
|
"core/audits/work-during-interaction.js | presentationDelay": {
|
|
1719
1710
|
"message": "ความล่าช้าของงานนำเสนอ"
|
|
1720
1711
|
},
|
|
1721
|
-
"core/audits/work-during-interaction.js |
|
|
1712
|
+
"core/audits/work-during-interaction.js | processingDuration": {
|
|
1722
1713
|
"message": "ระยะเวลาดำเนินการ"
|
|
1723
1714
|
},
|
|
1724
1715
|
"core/audits/work-during-interaction.js | title": {
|
|
@@ -1286,15 +1286,6 @@
|
|
|
1286
1286
|
"core/audits/network-server-latency.js | title": {
|
|
1287
1287
|
"message": "Sunucunun Arka Uç Gecikmeleri"
|
|
1288
1288
|
},
|
|
1289
|
-
"core/audits/no-unload-listeners.js | description": {
|
|
1290
|
-
"message": "`unload` etkinliği güvenilir bir şekilde tetiklenmez ve etkinliğin dinlenmesi, Geri-İleri Önbelleği gibi tarayıcı optimizasyonlarını engelleyebilir. Bunun yerine `pagehide` veya `visibilitychange` etkinliklerini kullanın. [Kaldırma etkinlik işleyiciler hakkında daha fazla bilgi edinin](https://web.dev/articles/bfcache#never_use_the_unload_event)."
|
|
1291
|
-
},
|
|
1292
|
-
"core/audits/no-unload-listeners.js | failureTitle": {
|
|
1293
|
-
"message": "Bir `unload` işleyicisi bulunuyor"
|
|
1294
|
-
},
|
|
1295
|
-
"core/audits/no-unload-listeners.js | title": {
|
|
1296
|
-
"message": "`unload` etkinlik işleyicisi içermiyor"
|
|
1297
|
-
},
|
|
1298
1289
|
"core/audits/non-composited-animations.js | description": {
|
|
1299
1290
|
"message": "Birleştirilmemiş animasyonlar kalitesiz olabilir ve CLS'yi artırır. [Bileşik olmayan animasyonları nasıl önleyeceğinizi öğrenin](https://developer.chrome.com/docs/lighthouse/performance/non-composited-animations/)."
|
|
1300
1291
|
},
|
|
@@ -1718,7 +1709,7 @@
|
|
|
1718
1709
|
"core/audits/work-during-interaction.js | presentationDelay": {
|
|
1719
1710
|
"message": "Yanıt sunumu gecikmesi"
|
|
1720
1711
|
},
|
|
1721
|
-
"core/audits/work-during-interaction.js |
|
|
1712
|
+
"core/audits/work-during-interaction.js | processingDuration": {
|
|
1722
1713
|
"message": "İşlem süresi"
|
|
1723
1714
|
},
|
|
1724
1715
|
"core/audits/work-during-interaction.js | title": {
|
|
@@ -1286,15 +1286,6 @@
|
|
|
1286
1286
|
"core/audits/network-server-latency.js | title": {
|
|
1287
1287
|
"message": "Затримка сервера"
|
|
1288
1288
|
},
|
|
1289
|
-
"core/audits/no-unload-listeners.js | description": {
|
|
1290
|
-
"message": "Подія `unload` активується ненадійно, і її прослуховування може запобігти оптимізації веб-переглядача, наприклад зворотного кешу. Натомість використовуйте подію `pagehide` або `visibilitychange`. [Докладніше про вивантаження блоків прослуховування подій.](https://web.dev/articles/bfcache#never_use_the_unload_event)"
|
|
1291
|
-
},
|
|
1292
|
-
"core/audits/no-unload-listeners.js | failureTitle": {
|
|
1293
|
-
"message": "Реєструє прослуховувач події \"`unload`\""
|
|
1294
|
-
},
|
|
1295
|
-
"core/audits/no-unload-listeners.js | title": {
|
|
1296
|
-
"message": "Уникає прослуховувачів події \"`unload`\""
|
|
1297
|
-
},
|
|
1298
1289
|
"core/audits/non-composited-animations.js | description": {
|
|
1299
1290
|
"message": "Анімації без композитингу можуть бути неякісними та підвищувати показник CLS. [Дізнайтесь, як уникати анімацій без композитингу.](https://developer.chrome.com/docs/lighthouse/performance/non-composited-animations/)"
|
|
1300
1291
|
},
|
|
@@ -1718,7 +1709,7 @@
|
|
|
1718
1709
|
"core/audits/work-during-interaction.js | presentationDelay": {
|
|
1719
1710
|
"message": "Затримка перед відображенням відповіді"
|
|
1720
1711
|
},
|
|
1721
|
-
"core/audits/work-during-interaction.js |
|
|
1712
|
+
"core/audits/work-during-interaction.js | processingDuration": {
|
|
1722
1713
|
"message": "Час обробки"
|
|
1723
1714
|
},
|
|
1724
1715
|
"core/audits/work-during-interaction.js | title": {
|
|
@@ -1286,15 +1286,6 @@
|
|
|
1286
1286
|
"core/audits/network-server-latency.js | title": {
|
|
1287
1287
|
"message": "Thời gian dưới nền của máy chủ"
|
|
1288
1288
|
},
|
|
1289
|
-
"core/audits/no-unload-listeners.js | description": {
|
|
1290
|
-
"message": "Sự kiện `unload` kích hoạt không ổn định và việc làm theo sự kiện này có thể ngăn các hoạt động tối ưu hoá trình duyệt, chẳng hạn như Bộ nhớ đệm cho thao tác tiến/lùi. Hãy chuyển sang dùng sự kiện `pagehide` hoặc `visibilitychange`. [Tìm hiểu thêm về trình nghe sự kiện huỷ tải](https://web.dev/articles/bfcache#never_use_the_unload_event)"
|
|
1291
|
-
},
|
|
1292
|
-
"core/audits/no-unload-listeners.js | failureTitle": {
|
|
1293
|
-
"message": "Đăng ký trình xử lý sự kiện `unload`"
|
|
1294
|
-
},
|
|
1295
|
-
"core/audits/no-unload-listeners.js | title": {
|
|
1296
|
-
"message": "Tránh dùng trình xử lý sự kiện `unload`"
|
|
1297
|
-
},
|
|
1298
1289
|
"core/audits/non-composited-animations.js | description": {
|
|
1299
1290
|
"message": "Các ảnh động không được ghép có thể kém chất lượng và làm tăng CLS (Điểm số tổng hợp về mức thay đổi bố cục). [Tìm hiểu cách tránh ảnh động không được ghép](https://developer.chrome.com/docs/lighthouse/performance/non-composited-animations/)"
|
|
1300
1291
|
},
|
|
@@ -1718,7 +1709,7 @@
|
|
|
1718
1709
|
"core/audits/work-during-interaction.js | presentationDelay": {
|
|
1719
1710
|
"message": "Độ trễ khi trình bày"
|
|
1720
1711
|
},
|
|
1721
|
-
"core/audits/work-during-interaction.js |
|
|
1712
|
+
"core/audits/work-during-interaction.js | processingDuration": {
|
|
1722
1713
|
"message": "Thời gian xử lý"
|
|
1723
1714
|
},
|
|
1724
1715
|
"core/audits/work-during-interaction.js | title": {
|
|
@@ -1286,15 +1286,6 @@
|
|
|
1286
1286
|
"core/audits/network-server-latency.js | title": {
|
|
1287
1287
|
"message": "伺服器後端延遲時間"
|
|
1288
1288
|
},
|
|
1289
|
-
"core/audits/no-unload-listeners.js | description": {
|
|
1290
|
-
"message": "「`unload`」事件無法保證觸發,而偵聽此事件可能會防礙瀏覽器優化項目操作,例如向前/返回快取。請改用「`pagehide`」或「`visibilitychange`」事件。[進一步瞭解卸載事件監聽器](https://web.dev/articles/bfcache#never_use_the_unload_event)"
|
|
1291
|
-
},
|
|
1292
|
-
"core/audits/no-unload-listeners.js | failureTitle": {
|
|
1293
|
-
"message": "發現 `unload` 偵聽器"
|
|
1294
|
-
},
|
|
1295
|
-
"core/audits/no-unload-listeners.js | title": {
|
|
1296
|
-
"message": "避免 `unload` 事件偵聽器"
|
|
1297
|
-
},
|
|
1298
1289
|
"core/audits/non-composited-animations.js | description": {
|
|
1299
1290
|
"message": "未合成的動畫可能無法順暢播放,而且會增加累計版面配置轉移 (CLS)。[瞭解如何避免使用非合成動畫](https://developer.chrome.com/docs/lighthouse/performance/non-composited-animations/)"
|
|
1300
1291
|
},
|
|
@@ -1718,7 +1709,7 @@
|
|
|
1718
1709
|
"core/audits/work-during-interaction.js | presentationDelay": {
|
|
1719
1710
|
"message": "螢幕畫面分享延遲"
|
|
1720
1711
|
},
|
|
1721
|
-
"core/audits/work-during-interaction.js |
|
|
1712
|
+
"core/audits/work-during-interaction.js | processingDuration": {
|
|
1722
1713
|
"message": "處理時間"
|
|
1723
1714
|
},
|
|
1724
1715
|
"core/audits/work-during-interaction.js | title": {
|
|
@@ -1286,15 +1286,6 @@
|
|
|
1286
1286
|
"core/audits/network-server-latency.js | title": {
|
|
1287
1287
|
"message": "伺服器後端延遲時間"
|
|
1288
1288
|
},
|
|
1289
|
-
"core/audits/no-unload-listeners.js | description": {
|
|
1290
|
-
"message": "`unload` 事件無法穩定觸發,監聽該活動可能會妨礙系統進行某些瀏覽器最佳化作業 (例如往返快取)。請改用 `pagehide` 或 `visibilitychange` 事件。[進一步瞭解卸載事件監聽器](https://web.dev/articles/bfcache#never_use_the_unload_event)"
|
|
1291
|
-
},
|
|
1292
|
-
"core/audits/no-unload-listeners.js | failureTitle": {
|
|
1293
|
-
"message": "註冊 `unload` 事件監聽器"
|
|
1294
|
-
},
|
|
1295
|
-
"core/audits/no-unload-listeners.js | title": {
|
|
1296
|
-
"message": "避免使用 `unload` 事件監聽器"
|
|
1297
|
-
},
|
|
1298
1289
|
"core/audits/non-composited-animations.js | description": {
|
|
1299
1290
|
"message": "未合成的動畫可能無法順暢播放,而且會增加 CLS。[瞭解如何避免使用非合成動畫](https://developer.chrome.com/docs/lighthouse/performance/non-composited-animations/)"
|
|
1300
1291
|
},
|
|
@@ -1718,7 +1709,7 @@
|
|
|
1718
1709
|
"core/audits/work-during-interaction.js | presentationDelay": {
|
|
1719
1710
|
"message": "回應顯示延遲"
|
|
1720
1711
|
},
|
|
1721
|
-
"core/audits/work-during-interaction.js |
|
|
1712
|
+
"core/audits/work-during-interaction.js | processingDuration": {
|
|
1722
1713
|
"message": "處理時間"
|
|
1723
1714
|
},
|
|
1724
1715
|
"core/audits/work-during-interaction.js | title": {
|
|
@@ -1286,15 +1286,6 @@
|
|
|
1286
1286
|
"core/audits/network-server-latency.js | title": {
|
|
1287
1287
|
"message": "服务器后端延迟"
|
|
1288
1288
|
},
|
|
1289
|
-
"core/audits/no-unload-listeners.js | description": {
|
|
1290
|
-
"message": "“`unload`”事件不会可靠地触发,而且监听该事件可能会妨碍系统实施“往返缓存”之类的浏览器优化策略。请改用“`pagehide`”或“`visibilitychange`”事件。[详细了解如何卸载事件监听器](https://web.dev/articles/bfcache#never_use_the_unload_event)"
|
|
1291
|
-
},
|
|
1292
|
-
"core/audits/no-unload-listeners.js | failureTitle": {
|
|
1293
|
-
"message": "注册“`unload`”事件监听器"
|
|
1294
|
-
},
|
|
1295
|
-
"core/audits/no-unload-listeners.js | title": {
|
|
1296
|
-
"message": "避免使用“`unload`”事件监听器"
|
|
1297
|
-
},
|
|
1298
1289
|
"core/audits/non-composited-animations.js | description": {
|
|
1299
1290
|
"message": "未合成的动画可能会卡顿并增加 CLS。[了解如何避免使用未合成的动画](https://developer.chrome.com/docs/lighthouse/performance/non-composited-animations/)"
|
|
1300
1291
|
},
|
|
@@ -1718,7 +1709,7 @@
|
|
|
1718
1709
|
"core/audits/work-during-interaction.js | presentationDelay": {
|
|
1719
1710
|
"message": "展示延迟时间"
|
|
1720
1711
|
},
|
|
1721
|
-
"core/audits/work-during-interaction.js |
|
|
1712
|
+
"core/audits/work-during-interaction.js | processingDuration": {
|
|
1722
1713
|
"message": "处理时间"
|
|
1723
1714
|
},
|
|
1724
1715
|
"core/audits/work-during-interaction.js | title": {
|
package/types/config.d.ts
CHANGED
package/types/lhr/lhr.d.ts
CHANGED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export default NoUnloadListeners;
|
|
2
|
-
declare class NoUnloadListeners extends Audit {
|
|
3
|
-
/**
|
|
4
|
-
* @param {LH.Artifacts} artifacts
|
|
5
|
-
* @param {LH.Audit.Context} context
|
|
6
|
-
* @return {Promise<LH.Audit.Product>}
|
|
7
|
-
*/
|
|
8
|
-
static audit(artifacts: LH.Artifacts, context: LH.Audit.Context): Promise<LH.Audit.Product>;
|
|
9
|
-
}
|
|
10
|
-
export namespace UIStrings {
|
|
11
|
-
const title: string;
|
|
12
|
-
const failureTitle: string;
|
|
13
|
-
const description: string;
|
|
14
|
-
}
|
|
15
|
-
import { Audit } from './audit.js';
|
|
16
|
-
//# sourceMappingURL=no-unload-listeners.d.ts.map
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2020 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import {Audit} from './audit.js';
|
|
8
|
-
import {JSBundles} from '../computed/js-bundles.js';
|
|
9
|
-
import * as i18n from './../lib/i18n/i18n.js';
|
|
10
|
-
|
|
11
|
-
const UIStrings = {
|
|
12
|
-
/** Descriptive title of a Lighthouse audit that checks if a web page has 'unload' event listeners and finds none. */
|
|
13
|
-
title: 'Avoids `unload` event listeners',
|
|
14
|
-
/** Descriptive title of a Lighthouse audit that checks if a web page has 'unload' event listeners and finds that it is using them. */
|
|
15
|
-
failureTitle: 'Registers an `unload` listener',
|
|
16
|
-
/** Description of a Lighthouse audit that tells the user why pages should not use the 'unload' event. This is displayed after a user expands the section to see more. The last sentence starting with 'Learn' becomes link text to additional documentation. */
|
|
17
|
-
description: 'The `unload` event does not fire reliably and listening for it can prevent browser optimizations like the Back-Forward Cache. Use `pagehide` or `visibilitychange` events instead. [Learn more about unload event listeners](https://web.dev/articles/bfcache#never_use_the_unload_event)',
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
const str_ = i18n.createIcuMessageFn(import.meta.url, UIStrings);
|
|
21
|
-
|
|
22
|
-
class NoUnloadListeners extends Audit {
|
|
23
|
-
/**
|
|
24
|
-
* @return {LH.Audit.Meta}
|
|
25
|
-
*/
|
|
26
|
-
static get meta() {
|
|
27
|
-
return {
|
|
28
|
-
id: 'no-unload-listeners',
|
|
29
|
-
title: str_(UIStrings.title),
|
|
30
|
-
failureTitle: str_(UIStrings.failureTitle),
|
|
31
|
-
description: str_(UIStrings.description),
|
|
32
|
-
requiredArtifacts: ['GlobalListeners', 'SourceMaps', 'Scripts'],
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* @param {LH.Artifacts} artifacts
|
|
38
|
-
* @param {LH.Audit.Context} context
|
|
39
|
-
* @return {Promise<LH.Audit.Product>}
|
|
40
|
-
*/
|
|
41
|
-
static async audit(artifacts, context) {
|
|
42
|
-
const unloadListeners = artifacts.GlobalListeners.filter(l => l.type === 'unload');
|
|
43
|
-
if (!unloadListeners.length) {
|
|
44
|
-
return {
|
|
45
|
-
score: 1,
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
const bundles = await JSBundles.request(artifacts, context);
|
|
50
|
-
|
|
51
|
-
/** @type {LH.Audit.Details.Table['headings']} */
|
|
52
|
-
const headings = [
|
|
53
|
-
{key: 'source', valueType: 'source-location', label: str_(i18n.UIStrings.columnSource)},
|
|
54
|
-
];
|
|
55
|
-
|
|
56
|
-
/** @type {Array<{source: LH.Audit.Details.ItemValue}>} */
|
|
57
|
-
const tableItems = unloadListeners.map(listener => {
|
|
58
|
-
const {lineNumber, columnNumber} = listener;
|
|
59
|
-
const script = artifacts.Scripts.find(s => s.scriptId === listener.scriptId);
|
|
60
|
-
|
|
61
|
-
// If we can't find a url, still show something so the user can manually
|
|
62
|
-
// look for where an `unload` handler is being created.
|
|
63
|
-
if (!script) {
|
|
64
|
-
return {
|
|
65
|
-
source: {
|
|
66
|
-
type: 'url',
|
|
67
|
-
value: `(unknown):${lineNumber}:${columnNumber}`,
|
|
68
|
-
},
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
const bundle = bundles.find(bundle => bundle.script.scriptId === script.scriptId);
|
|
73
|
-
return {
|
|
74
|
-
source: Audit.makeSourceLocation(script.url, lineNumber, columnNumber, bundle),
|
|
75
|
-
};
|
|
76
|
-
});
|
|
77
|
-
|
|
78
|
-
return {
|
|
79
|
-
score: 0,
|
|
80
|
-
details: Audit.makeTableDetails(headings, tableItems),
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export default NoUnloadListeners;
|
|
86
|
-
export {UIStrings};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export namespace metricsToAudits {
|
|
2
|
-
export { fcpRelevantAudits };
|
|
3
|
-
export { lcpRelevantAudits };
|
|
4
|
-
export { tbtRelevantAudits };
|
|
5
|
-
export { clsRelevantAudits };
|
|
6
|
-
export { inpRelevantAudits };
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* @license
|
|
10
|
-
* Copyright 2021 Google LLC
|
|
11
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
12
|
-
*/
|
|
13
|
-
declare const fcpRelevantAudits: string[];
|
|
14
|
-
declare const lcpRelevantAudits: string[];
|
|
15
|
-
declare const tbtRelevantAudits: string[];
|
|
16
|
-
declare const clsRelevantAudits: string[];
|
|
17
|
-
declare const inpRelevantAudits: string[];
|
|
18
|
-
export {};
|
|
19
|
-
//# sourceMappingURL=metrics-to-audits.d.ts.map
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright 2021 Google LLC
|
|
4
|
-
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
// go/lh-audit-metric-mapping
|
|
8
|
-
const fcpRelevantAudits = [
|
|
9
|
-
'server-response-time',
|
|
10
|
-
'render-blocking-resources',
|
|
11
|
-
'redirects',
|
|
12
|
-
'critical-request-chains',
|
|
13
|
-
'uses-text-compression',
|
|
14
|
-
'uses-rel-preconnect',
|
|
15
|
-
'font-display',
|
|
16
|
-
'unminified-javascript',
|
|
17
|
-
'unminified-css',
|
|
18
|
-
'unused-css-rules',
|
|
19
|
-
];
|
|
20
|
-
|
|
21
|
-
const lcpRelevantAudits = [
|
|
22
|
-
...fcpRelevantAudits,
|
|
23
|
-
'largest-contentful-paint-element',
|
|
24
|
-
'prioritize-lcp-image',
|
|
25
|
-
'unused-javascript',
|
|
26
|
-
'efficient-animated-content',
|
|
27
|
-
'total-byte-weight',
|
|
28
|
-
'lcp-lazy-loaded',
|
|
29
|
-
];
|
|
30
|
-
|
|
31
|
-
const tbtRelevantAudits = [
|
|
32
|
-
'long-tasks',
|
|
33
|
-
'third-party-summary',
|
|
34
|
-
'third-party-facades',
|
|
35
|
-
'bootup-time',
|
|
36
|
-
'mainthread-work-breakdown',
|
|
37
|
-
'dom-size',
|
|
38
|
-
'duplicated-javascript',
|
|
39
|
-
'legacy-javascript',
|
|
40
|
-
'viewport',
|
|
41
|
-
];
|
|
42
|
-
|
|
43
|
-
const clsRelevantAudits = [
|
|
44
|
-
'layout-shift-elements',
|
|
45
|
-
'layout-shifts',
|
|
46
|
-
'non-composited-animations',
|
|
47
|
-
'unsized-images',
|
|
48
|
-
];
|
|
49
|
-
|
|
50
|
-
const inpRelevantAudits = [
|
|
51
|
-
'work-during-interaction',
|
|
52
|
-
];
|
|
53
|
-
|
|
54
|
-
export const metricsToAudits = {
|
|
55
|
-
fcpRelevantAudits,
|
|
56
|
-
lcpRelevantAudits,
|
|
57
|
-
tbtRelevantAudits,
|
|
58
|
-
clsRelevantAudits,
|
|
59
|
-
inpRelevantAudits,
|
|
60
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export default GlobalListeners;
|
|
2
|
-
declare class GlobalListeners extends BaseGatherer {
|
|
3
|
-
/**
|
|
4
|
-
* @param {LH.Crdp.DOMDebugger.EventListener} listener
|
|
5
|
-
* @return {listener is {type: 'pagehide'|'unload'|'visibilitychange'} & LH.Crdp.DOMDebugger.EventListener}
|
|
6
|
-
*/
|
|
7
|
-
static _filterForAllowlistedTypes(listener: LH.Crdp.DOMDebugger.EventListener): listener is {
|
|
8
|
-
type: 'pagehide' | 'unload' | 'visibilitychange';
|
|
9
|
-
} & import("devtools-protocol").Protocol.DOMDebugger.EventListener;
|
|
10
|
-
/**
|
|
11
|
-
* @param { LH.Artifacts.GlobalListener } listener
|
|
12
|
-
* @return { string }
|
|
13
|
-
*/
|
|
14
|
-
getListenerIndentifier(listener: LH.Artifacts.GlobalListener): string;
|
|
15
|
-
/**
|
|
16
|
-
* @param { LH.Artifacts['GlobalListeners'] } listeners
|
|
17
|
-
* @return { LH.Artifacts['GlobalListeners'] }
|
|
18
|
-
*/
|
|
19
|
-
dedupeListeners(listeners: LH.Artifacts['GlobalListeners']): LH.Artifacts['GlobalListeners'];
|
|
20
|
-
/**
|
|
21
|
-
* @param {LH.Gatherer.Context} passContext
|
|
22
|
-
* @return {Promise<LH.Artifacts['GlobalListeners']>}
|
|
23
|
-
*/
|
|
24
|
-
getArtifact(passContext: LH.Gatherer.Context): Promise<LH.Artifacts['GlobalListeners']>;
|
|
25
|
-
}
|
|
26
|
-
import BaseGatherer from '../base-gatherer.js';
|
|
27
|
-
//# sourceMappingURL=global-listeners.d.ts.map
|