From bc0c111f4fd56aca59ec36222946e1c1e57ba6aa Mon Sep 17 00:00:00 2001 From: Katie Hempenius Date: Wed, 30 Oct 2019 18:39:53 -0400 Subject: [PATCH 1/2] Rename 'performance-budget' audit to 'resource-budget' --- .../test/cli/__snapshots__/index-test.js.snap | 4 +- .../test/smokehouse/perf/expectations.js | 2 +- ...rformance-budget.js => resource-budget.js} | 4 +- lighthouse-core/config/default-config.js | 4 +- lighthouse-core/lib/i18n/locales/ar-XB.json | 12 - lighthouse-core/lib/i18n/locales/ar.json | 12 - lighthouse-core/lib/i18n/locales/bg.json | 12 - lighthouse-core/lib/i18n/locales/ca.json | 12 - lighthouse-core/lib/i18n/locales/cs.json | 12 - lighthouse-core/lib/i18n/locales/da.json | 12 - lighthouse-core/lib/i18n/locales/de.json | 12 - lighthouse-core/lib/i18n/locales/el.json | 12 - lighthouse-core/lib/i18n/locales/en-GB.json | 12 - lighthouse-core/lib/i18n/locales/en-US.json | 24 +- lighthouse-core/lib/i18n/locales/en-XA.json | 12 - lighthouse-core/lib/i18n/locales/en-XL.json | 24 +- lighthouse-core/lib/i18n/locales/es-419.json | 12 - lighthouse-core/lib/i18n/locales/es.json | 12 - lighthouse-core/lib/i18n/locales/fi.json | 12 - lighthouse-core/lib/i18n/locales/fil.json | 12 - lighthouse-core/lib/i18n/locales/fr.json | 12 - lighthouse-core/lib/i18n/locales/he.json | 12 - lighthouse-core/lib/i18n/locales/hi.json | 12 - lighthouse-core/lib/i18n/locales/hr.json | 12 - lighthouse-core/lib/i18n/locales/hu.json | 12 - lighthouse-core/lib/i18n/locales/id.json | 12 - lighthouse-core/lib/i18n/locales/it.json | 12 - lighthouse-core/lib/i18n/locales/ja.json | 12 - lighthouse-core/lib/i18n/locales/ko.json | 12 - lighthouse-core/lib/i18n/locales/lt.json | 12 - lighthouse-core/lib/i18n/locales/lv.json | 12 - lighthouse-core/lib/i18n/locales/nl.json | 12 - lighthouse-core/lib/i18n/locales/no.json | 12 - lighthouse-core/lib/i18n/locales/pl.json | 12 - lighthouse-core/lib/i18n/locales/pt-PT.json | 12 - lighthouse-core/lib/i18n/locales/pt.json | 12 - lighthouse-core/lib/i18n/locales/ro.json | 12 - lighthouse-core/lib/i18n/locales/ru.json | 12 - lighthouse-core/lib/i18n/locales/sk.json | 12 - lighthouse-core/lib/i18n/locales/sl.json | 12 - lighthouse-core/lib/i18n/locales/sr-Latn.json | 12 - lighthouse-core/lib/i18n/locales/sr.json | 12 - lighthouse-core/lib/i18n/locales/sv.json | 12 - lighthouse-core/lib/i18n/locales/ta.json | 12 - lighthouse-core/lib/i18n/locales/te.json | 12 - lighthouse-core/lib/i18n/locales/th.json | 12 - lighthouse-core/lib/i18n/locales/tr.json | 12 - lighthouse-core/lib/i18n/locales/uk.json | 12 - lighthouse-core/lib/i18n/locales/vi.json | 12 - lighthouse-core/lib/i18n/locales/zh-HK.json | 12 - lighthouse-core/lib/i18n/locales/zh-TW.json | 12 - lighthouse-core/lib/i18n/locales/zh.json | 12 - .../renderer/performance-category-renderer.js | 2 +- ...budget-test.js => resource-budget-test.js} | 2 +- .../performance-category-renderer-test.js | 10 +- .../html/renderer/report-renderer-test.js | 4 +- lighthouse-core/test/results/sample_v2.json | 58 ++--- proto/sample_v2_round_trip.json | 208 +++++++++--------- 58 files changed, 173 insertions(+), 725 deletions(-) rename lighthouse-core/audits/{performance-budget.js => resource-budget.js} (99%) rename lighthouse-core/test/audits/{performance-budget-test.js => resource-budget-test.js} (98%) diff --git a/lighthouse-cli/test/cli/__snapshots__/index-test.js.snap b/lighthouse-cli/test/cli/__snapshots__/index-test.js.snap index 2f7fc0c3b007..b8c5811cf52e 100644 --- a/lighthouse-cli/test/cli/__snapshots__/index-test.js.snap +++ b/lighthouse-cli/test/cli/__snapshots__/index-test.js.snap @@ -127,7 +127,7 @@ Object { "path": "offline-start-url", }, Object { - "path": "performance-budget", + "path": "resource-budget", }, Object { "path": "resource-summary", @@ -881,7 +881,7 @@ Object { }, Object { "group": "budgets", - "id": "performance-budget", + "id": "resource-budget", "weight": 0, }, Object { diff --git a/lighthouse-cli/test/smokehouse/perf/expectations.js b/lighthouse-cli/test/smokehouse/perf/expectations.js index 0ca81582ec81..00954a43b433 100644 --- a/lighthouse-cli/test/smokehouse/perf/expectations.js +++ b/lighthouse-cli/test/smokehouse/perf/expectations.js @@ -88,7 +88,7 @@ module.exports = [ ], }, }, - 'performance-budget': { + 'resource-budget': { score: null, details: { // Undefined items are asserting that the property isn't included in the table item. diff --git a/lighthouse-core/audits/performance-budget.js b/lighthouse-core/audits/resource-budget.js similarity index 99% rename from lighthouse-core/audits/performance-budget.js rename to lighthouse-core/audits/resource-budget.js index 98ab5e5b1f1a..932e85def578 100644 --- a/lighthouse-core/audits/performance-budget.js +++ b/lighthouse-core/audits/resource-budget.js @@ -13,7 +13,7 @@ const i18n = require('../lib/i18n/i18n.js'); const UIStrings = { /** Title of a Lighthouse audit that compares the size and quantity of page resources against targets set by the user. These targets are thought of as "performance budgets" because these metrics impact page performance (i.e. how quickly a page loads). */ - title: 'Performance budget', + title: 'Resource budget', /** Description of a Lighthouse audit where a user sets budgets for the quantity and size of page resources. No character length limits. 'Learn More' becomes link text to additional documentation. */ description: 'Keep the quantity and size of network requests under the targets ' + 'set by the provided performance budget. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/budgets).', @@ -37,7 +37,7 @@ class ResourceBudget extends Audit { */ static get meta() { return { - id: 'performance-budget', + id: 'resource-budget', title: str_(UIStrings.title), description: str_(UIStrings.description), scoreDisplayMode: Audit.SCORING_MODES.INFORMATIVE, diff --git a/lighthouse-core/config/default-config.js b/lighthouse-core/config/default-config.js index 59095e49128a..50f6bf40b35b 100644 --- a/lighthouse-core/config/default-config.js +++ b/lighthouse-core/config/default-config.js @@ -210,7 +210,7 @@ const defaultConfig = { 'main-thread-tasks', 'metrics', 'offline-start-url', - 'performance-budget', + 'resource-budget', 'resource-summary', 'third-party-summary', 'manual/pwa-cross-browser', @@ -409,7 +409,7 @@ const defaultConfig = { {id: 'bootup-time', weight: 0, group: 'diagnostics'}, {id: 'mainthread-work-breakdown', weight: 0, group: 'diagnostics'}, {id: 'font-display', weight: 0, group: 'diagnostics'}, - {id: 'performance-budget', weight: 0, group: 'budgets'}, + {id: 'resource-budget', weight: 0, group: 'budgets'}, {id: 'resource-summary', weight: 0, group: 'diagnostics'}, {id: 'third-party-summary', weight: 0, group: 'diagnostics'}, // Audits past this point don't belong to a group and will not be shown automatically diff --git a/lighthouse-core/lib/i18n/locales/ar-XB.json b/lighthouse-core/lib/i18n/locales/ar-XB.json index 1dbee78b64f7..fb50d865cf8f 100644 --- a/lighthouse-core/lib/i18n/locales/ar-XB.json +++ b/lighthouse-core/lib/i18n/locales/ar-XB.json @@ -815,18 +815,6 @@ "lighthouse-core/audits/offline-start-url.js | warningCantStart": { "message": "‏‮Lighthouse‬‏ ‏‮couldn‬‏'‏‮t‬‏ ‏‮read‬‏ ‏‮the‬‏ `start_url` ‏‮from‬‏ ‏‮the‬‏ ‏‮manifest‬‏. ‏‮As‬‏ ‏‮a‬‏ ‏‮result‬‏, ‏‮the‬‏ `start_url` ‏‮was‬‏ ‏‮assumed‬‏ ‏‮to‬‏ ‏‮be‬‏ ‏‮the‬‏ ‏‮document‬‏'‏‮s‬‏ ‏‮URL‬‏. ‏‮Error‬‏ ‏‮message‬‏: '{manifestWarning}'." }, - "lighthouse-core/audits/performance-budget.js | columnOverBudget": { - "message": "‏‮Over‬‏ ‏‮Budget‬‏" - }, - "lighthouse-core/audits/performance-budget.js | description": { - "message": "‏‮Keep‬‏ ‏‮the‬‏ ‏‮quantity‬‏ ‏‮and‬‏ ‏‮size‬‏ ‏‮of‬‏ ‏‮network‬‏ ‏‮requests‬‏ ‏‮under‬‏ ‏‮the‬‏ ‏‮targets‬‏ ‏‮set‬‏ ‏‮by‬‏ ‏‮the‬‏ ‏‮provided‬‏ ‏‮performance‬‏ ‏‮budget‬‏. [‏‮Learn‬‏ ‏‮more‬‏](https://developers.google.com/web/tools/lighthouse/audits/budgets)." - }, - "lighthouse-core/audits/performance-budget.js | requestCountOverBudget": { - "message": "{count,plural, =1{1 ‏‮request‬‏}zero{# ‏‮requests‬‏}two{# ‏‮requests‬‏}few{# ‏‮requests‬‏}many{# ‏‮requests‬‏}other{# ‏‮requests‬‏}}" - }, - "lighthouse-core/audits/performance-budget.js | title": { - "message": "‏‮Performance‬‏ ‏‮budget‬‏" - }, "lighthouse-core/audits/redirects-http.js | description": { "message": "‏‮If‬‏ ‏‮you‬‏'‏‮ve‬‏ ‏‮already‬‏ ‏‮set‬‏ ‏‮up‬‏ ‏‮HTTPS‬‏, ‏‮make‬‏ ‏‮sure‬‏ ‏‮that‬‏ ‏‮you‬‏ ‏‮redirect‬‏ ‏‮all‬‏ ‏‮HTTP‬‏ ‏‮traffic‬‏ ‏‮to‬‏ ‏‮HTTPS‬‏ ‏‮in‬‏ ‏‮order‬‏ ‏‮to‬‏ ‏‮enable‬‏ ‏‮secure‬‏ ‏‮web‬‏ ‏‮features‬‏ ‏‮for‬‏ ‏‮all‬‏ ‏‮your‬‏ ‏‮users‬‏. [‏‮Learn‬‏ ‏‮more‬‏](https://web.dev/redirects-http)." }, diff --git a/lighthouse-core/lib/i18n/locales/ar.json b/lighthouse-core/lib/i18n/locales/ar.json index 8150facf0dd5..209aa7d232e0 100644 --- a/lighthouse-core/lib/i18n/locales/ar.json +++ b/lighthouse-core/lib/i18n/locales/ar.json @@ -815,18 +815,6 @@ "lighthouse-core/audits/offline-start-url.js | warningCantStart": { "message": "تعذّر على Lighthouse قراءة `start_url` من البيان. ونتيجة لذلك، كان من المفترض أن يكون `start_url` هو عنوان URL للمستند. رسالة خطأ: '{manifestWarning}'." }, - "lighthouse-core/audits/performance-budget.js | columnOverBudget": { - "message": "تجاوز الميزانية" - }, - "lighthouse-core/audits/performance-budget.js | description": { - "message": "يمكنك الحفاظ على كمية طلبات الشبكة وحجمها ضمن الاستهدافات المحدّدة في ميزانية الأداء المقدّمة. [مزيد من المعلومات](https://developers.google.com/web/tools/lighthouse/audits/budgets)" - }, - "lighthouse-core/audits/performance-budget.js | requestCountOverBudget": { - "message": "{count,plural, =1{طلب واحد}zero{# طلب}two{طلبان (#)}few{# طلبات}many{# طلبًا}other{# طلب}}" - }, - "lighthouse-core/audits/performance-budget.js | title": { - "message": "ميزانية الأداء" - }, "lighthouse-core/audits/redirects-http.js | description": { "message": "في حال أعددت HTTPS مسبقًا، تأكّد من إعادة توجيه جميع زيارات HTTP إلى HTTPS من أجل تفعيل ميزات الويب الآمنة لجميع المستخدمين. [مزيد من المعلومات](https://web.dev/redirects-http)" }, diff --git a/lighthouse-core/lib/i18n/locales/bg.json b/lighthouse-core/lib/i18n/locales/bg.json index c515c46cae67..6cced2e7bfce 100644 --- a/lighthouse-core/lib/i18n/locales/bg.json +++ b/lighthouse-core/lib/i18n/locales/bg.json @@ -815,18 +815,6 @@ "lighthouse-core/audits/offline-start-url.js | warningCantStart": { "message": "Lighthouse не можа да прочете `start_url` от манифеста. В резултат на това бе предположено, че URL адресът на документа изпълнява функцията на `start_url`. Съобщение за грешка: „{manifestWarning}“." }, - "lighthouse-core/audits/performance-budget.js | columnOverBudget": { - "message": "Надхвърля бюджета" - }, - "lighthouse-core/audits/performance-budget.js | description": { - "message": "Поддържайте количеството и обема на мрежовите заявки под целевите стойности в посочения бюджет за ефективността. [Научете повече](https://developers.google.com/web/tools/lighthouse/audits/budgets)." - }, - "lighthouse-core/audits/performance-budget.js | requestCountOverBudget": { - "message": "{count,plural, =1{1 заявка}other{# заявки}}" - }, - "lighthouse-core/audits/performance-budget.js | title": { - "message": "Бюджет за ефективността" - }, "lighthouse-core/audits/redirects-http.js | description": { "message": "Ако вече сте настроили HTTPS, целият HTTP трафик трябва да се пренасочва към HTTPS, така че функциите за сигурност в мрежата да са активирани за всичките ви потребители. [Научете повече](https://web.dev/redirects-http)." }, diff --git a/lighthouse-core/lib/i18n/locales/ca.json b/lighthouse-core/lib/i18n/locales/ca.json index bfa38b421e05..159091092337 100644 --- a/lighthouse-core/lib/i18n/locales/ca.json +++ b/lighthouse-core/lib/i18n/locales/ca.json @@ -815,18 +815,6 @@ "lighthouse-core/audits/offline-start-url.js | warningCantStart": { "message": "Lighthouse no ha pogut llegir l'atribut `start_url` del fitxer de manifest, de manera que s'ha donat per fet que `start_url` era l'URL del document. Missatge d'error: \"{manifestWarning}\"." }, - "lighthouse-core/audits/performance-budget.js | columnOverBudget": { - "message": "Per sobre del pressupost" - }, - "lighthouse-core/audits/performance-budget.js | description": { - "message": "Manté la quantitat i la mida de les sol·licituds de xarxa ajustades als objectius establerts al pressupost de rendiment que s'ha proporcionat. [Obtén més informació](https://developers.google.com/web/tools/lighthouse/audits/budgets)." - }, - "lighthouse-core/audits/performance-budget.js | requestCountOverBudget": { - "message": "{count,plural, =1{1 sol·licitud}other{# sol·licituds}}" - }, - "lighthouse-core/audits/performance-budget.js | title": { - "message": "Pressupost de rendiment" - }, "lighthouse-core/audits/redirects-http.js | description": { "message": "Si ja has configurat el format HTTPS, assegura't de redirigir tot el trànsit HTTP cap a HTTPS per activar funcions web segures per a tots els usuaris. [Obtén més informació](https://web.dev/redirects-http)." }, diff --git a/lighthouse-core/lib/i18n/locales/cs.json b/lighthouse-core/lib/i18n/locales/cs.json index 3531304aea3c..15bce85de385 100644 --- a/lighthouse-core/lib/i18n/locales/cs.json +++ b/lighthouse-core/lib/i18n/locales/cs.json @@ -815,18 +815,6 @@ "lighthouse-core/audits/offline-start-url.js | warningCantStart": { "message": "Nástroji Lighthouse se v manifestu nepodařilo přečíst atribut `start_url`. Proto se předpokládá, že adresou URL dokumentu je `start_url`. Chybová zpráva: {manifestWarning}" }, - "lighthouse-core/audits/performance-budget.js | columnOverBudget": { - "message": "Nad rozpočet" - }, - "lighthouse-core/audits/performance-budget.js | description": { - "message": "Udržujte množství a velikost síťových požadavků pod cílovými hodnotami, které udává poskytnutý rozpočet výkonu. [Další informace](https://developers.google.com/web/tools/lighthouse/audits/budgets)" - }, - "lighthouse-core/audits/performance-budget.js | requestCountOverBudget": { - "message": "{count,plural, =1{1 požadavek}few{# požadavky}many{# požadavku}other{# požadavků}}" - }, - "lighthouse-core/audits/performance-budget.js | title": { - "message": "Rozpočete výkonu" - }, "lighthouse-core/audits/redirects-http.js | description": { "message": "Pokud jste protokol HTTPS už nastavili, nezapomeňte veškerý provoz přes protokol HTTP přesměrovat na HTTPS, aby všichni vaši uživatelé měli k dispozici funkce zabezpečeného webu. [Další informace](https://web.dev/redirects-http)" }, diff --git a/lighthouse-core/lib/i18n/locales/da.json b/lighthouse-core/lib/i18n/locales/da.json index 3412c03e85c8..202aae9cc02c 100644 --- a/lighthouse-core/lib/i18n/locales/da.json +++ b/lighthouse-core/lib/i18n/locales/da.json @@ -815,18 +815,6 @@ "lighthouse-core/audits/offline-start-url.js | warningCantStart": { "message": "Lighthouse kunne ikke læse `start_url` fra manifestet. `start_url` blev derfor betragtet som dokumentets webadresse. Fejlmeddelelse: \"{manifestWarning}\"." }, - "lighthouse-core/audits/performance-budget.js | columnOverBudget": { - "message": "Over budget" - }, - "lighthouse-core/audits/performance-budget.js | description": { - "message": "Sørg for, at antallet af og størrelsen på netværksanmodningerne ikke overskrider målene i det angivne budget for ydeevne. [Få flere oplysninger](https://developers.google.com/web/tools/lighthouse/audits/budgets)." - }, - "lighthouse-core/audits/performance-budget.js | requestCountOverBudget": { - "message": "{count,plural, =1{1 anmodning}one{# anmodning}other{# anmodninger}}" - }, - "lighthouse-core/audits/performance-budget.js | title": { - "message": "Budget for ydeevne" - }, "lighthouse-core/audits/redirects-http.js | description": { "message": "Hvis du allerede har konfigureret HTTPS, skal du sørge for at omdirigere al HTTP-trafik, så alle dine brugere får sikre webfunktioner. [Få flere oplysninger](https://web.dev/redirects-http)." }, diff --git a/lighthouse-core/lib/i18n/locales/de.json b/lighthouse-core/lib/i18n/locales/de.json index 0a2a07bdd02b..f54be1bbd6ad 100644 --- a/lighthouse-core/lib/i18n/locales/de.json +++ b/lighthouse-core/lib/i18n/locales/de.json @@ -815,18 +815,6 @@ "lighthouse-core/audits/offline-start-url.js | warningCantStart": { "message": "Lighthouse konnte die `start_url` nicht im Manifest abrufen. Daher wurde angenommen, dass es sich bei der `start_url` um die URL des Dokuments handelt. Fehlermeldung: \"{manifestWarning}\"." }, - "lighthouse-core/audits/performance-budget.js | columnOverBudget": { - "message": "Über dem Budget" - }, - "lighthouse-core/audits/performance-budget.js | description": { - "message": "Die Anzahl und Größe der Netzwerkanfragen sollten unter den Zielvorgaben des Leistungsbudgets liegen. [Weitere Informationen.](https://developers.google.com/web/tools/lighthouse/audits/budgets)" - }, - "lighthouse-core/audits/performance-budget.js | requestCountOverBudget": { - "message": "{count,plural, =1{1 Anfrage}other{# Anfragen}}" - }, - "lighthouse-core/audits/performance-budget.js | title": { - "message": "Leistungsbudget" - }, "lighthouse-core/audits/redirects-http.js | description": { "message": "Wenn Sie HTTPS bereits eingerichtet haben, sollten Sie den gesamten HTTP-Traffic auf HTTPS weiterleiten, damit für alle Ihre Nutzer sichere Webfunktionen aktiviert sind. [Weitere Informationen.](https://web.dev/redirects-http)" }, diff --git a/lighthouse-core/lib/i18n/locales/el.json b/lighthouse-core/lib/i18n/locales/el.json index ed4ed681100c..028c3156acdb 100644 --- a/lighthouse-core/lib/i18n/locales/el.json +++ b/lighthouse-core/lib/i18n/locales/el.json @@ -815,18 +815,6 @@ "lighthouse-core/audits/offline-start-url.js | warningCantStart": { "message": "Το Lighthouse δεν μπόρεσε να διαβάσει το `start_url` από το μανιφέστο. Επομένως, το `start_url` θεωρήθηκε ότι είναι το URL του εγγράφου. Μήνυμα σφάλματος: '{manifestWarning}'." }, - "lighthouse-core/audits/performance-budget.js | columnOverBudget": { - "message": "Υπέρβαση προϋπολογισμού" - }, - "lighthouse-core/audits/performance-budget.js | description": { - "message": "Διατηρήστε την ποσότητα και το μέγεθος των αιτημάτων δικτύου εντός των στόχων που ορίζονται από τον παρεχόμενο προϋπολογισμό απόδοσης. [Μάθετε περισσότερα](https://developers.google.com/web/tools/lighthouse/audits/budgets)." - }, - "lighthouse-core/audits/performance-budget.js | requestCountOverBudget": { - "message": "{count,plural, =1{1 αίτημα}other{# αιτήματα}}" - }, - "lighthouse-core/audits/performance-budget.js | title": { - "message": "Προϋπολογισμός απόδοσης" - }, "lighthouse-core/audits/redirects-http.js | description": { "message": "Αν έχετε ήδη ρυθμίσει το HTTPS, βεβαιωθείτε ότι ανακατευθύνετε όλη την επισκεψιμότητα HTTP σε HTTPS, προκειμένου να ενεργοποιήσετε ασφαλείς λειτουργίες ιστού για όλους τους χρήστες σας. [Μάθετε περισσότερα](https://web.dev/redirects-http)." }, diff --git a/lighthouse-core/lib/i18n/locales/en-GB.json b/lighthouse-core/lib/i18n/locales/en-GB.json index c068566f46d0..3b6de540c851 100644 --- a/lighthouse-core/lib/i18n/locales/en-GB.json +++ b/lighthouse-core/lib/i18n/locales/en-GB.json @@ -815,18 +815,6 @@ "lighthouse-core/audits/offline-start-url.js | warningCantStart": { "message": "Lighthouse couldn't read the `start_url` from the manifest. As a result, the `start_url` was assumed to be the document's URL. Error message: '{manifestWarning}'." }, - "lighthouse-core/audits/performance-budget.js | columnOverBudget": { - "message": "Over budget" - }, - "lighthouse-core/audits/performance-budget.js | description": { - "message": "Keep the quantity and size of network requests under the targets set by the provided performance budget. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/budgets)." - }, - "lighthouse-core/audits/performance-budget.js | requestCountOverBudget": { - "message": "{count,plural, =1{1 request}other{# requests}}" - }, - "lighthouse-core/audits/performance-budget.js | title": { - "message": "Performance budget" - }, "lighthouse-core/audits/redirects-http.js | description": { "message": "If you've already set up HTTPS, make sure that you redirect all HTTP traffic to HTTPS in order to enable secure web features for all your users. [Learn more](https://web.dev/redirects-http)." }, diff --git a/lighthouse-core/lib/i18n/locales/en-US.json b/lighthouse-core/lib/i18n/locales/en-US.json index 9aa960b8f9f0..40e270d320ef 100644 --- a/lighthouse-core/lib/i18n/locales/en-US.json +++ b/lighthouse-core/lib/i18n/locales/en-US.json @@ -887,18 +887,6 @@ "lighthouse-core/audits/offline-start-url.js | warningCantStart": { "message": "Lighthouse couldn't read the `start_url` from the manifest. As a result, the `start_url` was assumed to be the document's URL. Error message: '{manifestWarning}'." }, - "lighthouse-core/audits/performance-budget.js | columnOverBudget": { - "message": "Over Budget" - }, - "lighthouse-core/audits/performance-budget.js | description": { - "message": "Keep the quantity and size of network requests under the targets set by the provided performance budget. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/budgets)." - }, - "lighthouse-core/audits/performance-budget.js | requestCountOverBudget": { - "message": "{count, plural,\n =1 {1 request}\n other {# requests}\n }" - }, - "lighthouse-core/audits/performance-budget.js | title": { - "message": "Performance budget" - }, "lighthouse-core/audits/redirects-http.js | description": { "message": "If you've already set up HTTPS, make sure that you redirect all HTTP traffic to HTTPS in order to enable secure web features for all your users. [Learn more](https://web.dev/redirects-http)." }, @@ -914,6 +902,18 @@ "lighthouse-core/audits/redirects.js | title": { "message": "Avoid multiple page redirects" }, + "lighthouse-core/audits/resource-budget.js | columnOverBudget": { + "message": "Over Budget" + }, + "lighthouse-core/audits/resource-budget.js | description": { + "message": "Keep the quantity and size of network requests under the targets set by the provided performance budget. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/budgets)." + }, + "lighthouse-core/audits/resource-budget.js | requestCountOverBudget": { + "message": "{count, plural,\n =1 {1 request}\n other {# requests}\n }" + }, + "lighthouse-core/audits/resource-budget.js | title": { + "message": "Resource budget" + }, "lighthouse-core/audits/resource-summary.js | description": { "message": "To set budgets for the quantity and size of page resources, add a budget.json file. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/budgets)." }, diff --git a/lighthouse-core/lib/i18n/locales/en-XA.json b/lighthouse-core/lib/i18n/locales/en-XA.json index b0d34f960a1c..f12c8cd57eeb 100644 --- a/lighthouse-core/lib/i18n/locales/en-XA.json +++ b/lighthouse-core/lib/i18n/locales/en-XA.json @@ -815,18 +815,6 @@ "lighthouse-core/audits/offline-start-url.js | warningCantStart": { "message": "[Ļîĝĥţĥöûšé çöûļðñ'ţ ŕéåð ţĥé ᐅ`start_url`ᐊ ƒŕöm ţĥé måñîƒéšţ. Åš å ŕéšûļţ, ţĥé ᐅ`start_url`ᐊ ŵåš åššûméð ţö бé ţĥé ðöçûméñţ'š ÛŔĻ. Éŕŕöŕ méššåĝé: 'ᐅ{manifestWarning}ᐊ'. one two three four five six seven eight nine ten eleven twelve thirteen fourteen fifteen sixteen seventeen eighteen nineteen twenty]" }, - "lighthouse-core/audits/performance-budget.js | columnOverBudget": { - "message": "[Övéŕ Бûðĝéţ one two]" - }, - "lighthouse-core/audits/performance-budget.js | description": { - "message": "[Ķééþ ţĥé qûåñţîţý åñð šîžé öƒ ñéţŵöŕķ ŕéqûéšţš ûñðéŕ ţĥé ţåŕĝéţš šéţ бý ţĥé þŕövîðéð þéŕƒöŕmåñçé бûðĝéţ. ᐅ[ᐊĻéåŕñ möŕéᐅ](https://developers.google.com/web/tools/lighthouse/audits/budgets)ᐊ. one two three four five six seven eight nine ten eleven twelve thirteen fourteen fifteen sixteen seventeen eighteen nineteen]" - }, - "lighthouse-core/audits/performance-budget.js | requestCountOverBudget": { - "message": "{count,plural, =1{[1 ŕéqûéšţ one two]}other{[# ŕéqûéšţš one two]}}" - }, - "lighthouse-core/audits/performance-budget.js | title": { - "message": "[Þéŕƒöŕmåñçé бûðĝéţ one two three]" - }, "lighthouse-core/audits/redirects-http.js | description": { "message": "[΃ ýöû'vé åļŕéåðý šéţ ûþ ĤŢŢÞŠ, måķé šûŕé ţĥåţ ýöû ŕéðîŕéçţ åļļ ĤŢŢÞ ţŕ僃îç ţö ĤŢŢÞŠ îñ öŕðéŕ ţö éñåбļé šéçûŕé ŵéб ƒéåţûŕéš ƒöŕ åļļ ýöûŕ ûšéŕš. ᐅ[ᐊĻéåŕñ möŕéᐅ](https://web.dev/redirects-http)ᐊ. one two three four five six seven eight nine ten eleven twelve thirteen fourteen fifteen sixteen seventeen eighteen nineteen twenty twentyone twentytwo twentythree]" }, diff --git a/lighthouse-core/lib/i18n/locales/en-XL.json b/lighthouse-core/lib/i18n/locales/en-XL.json index a459b096dfc9..58d40e0cb6ba 100644 --- a/lighthouse-core/lib/i18n/locales/en-XL.json +++ b/lighthouse-core/lib/i18n/locales/en-XL.json @@ -887,18 +887,6 @@ "lighthouse-core/audits/offline-start-url.js | warningCantStart": { "message": "L̂íĝh́t̂h́ôúŝé ĉóûĺd̂ń't̂ ŕêád̂ t́ĥé `start_url` f̂ŕôḿ t̂h́ê ḿâńîf́êśt̂. Áŝ á r̂éŝúl̂t́, t̂h́ê `start_url` ẃâś âśŝúm̂éd̂ t́ô b́ê t́ĥé d̂óĉúm̂én̂t́'ŝ ÚR̂Ĺ. Êŕr̂ór̂ ḿêśŝáĝé: '{manifestWarning}'." }, - "lighthouse-core/audits/performance-budget.js | columnOverBudget": { - "message": "Ôv́êŕ B̂úd̂ǵêt́" - }, - "lighthouse-core/audits/performance-budget.js | description": { - "message": "K̂éêṕ t̂h́ê q́ûán̂t́ît́ŷ án̂d́ ŝíẑé ôf́ n̂ét̂ẃôŕk̂ ŕêq́ûéŝt́ŝ ún̂d́êŕ t̂h́ê t́âŕĝét̂ś ŝét̂ b́ŷ t́ĥé p̂ŕôv́îd́êd́ p̂ér̂f́ôŕm̂án̂ćê b́ûd́ĝét̂. [Ĺêár̂ń m̂ór̂é](https://developers.google.com/web/tools/lighthouse/audits/budgets)." - }, - "lighthouse-core/audits/performance-budget.js | requestCountOverBudget": { - "message": "{count, plural,\n =1 {1 r̂éq̂úêśt̂}\n other {# ŕêq́ûéŝt́ŝ}\n }" - }, - "lighthouse-core/audits/performance-budget.js | title": { - "message": "P̂ér̂f́ôŕm̂án̂ćê b́ûd́ĝét̂" - }, "lighthouse-core/audits/redirects-http.js | description": { "message": "Îf́ ŷóû'v́ê ál̂ŕêád̂ý ŝét̂ úp̂ H́T̂T́P̂Ś, m̂ák̂é ŝúr̂é t̂h́ât́ ŷóû ŕêd́îŕêćt̂ ál̂ĺ ĤT́T̂Ṕ t̂ŕâf́f̂íĉ t́ô H́T̂T́P̂Ś îń ôŕd̂ér̂ t́ô én̂áb̂ĺê śêćûŕê ẃêb́ f̂éât́ûŕêś f̂ór̂ ál̂ĺ ŷóûŕ ûśêŕŝ. [Ĺêár̂ń m̂ór̂é](https://web.dev/redirects-http)." }, @@ -914,6 +902,18 @@ "lighthouse-core/audits/redirects.js | title": { "message": "Âv́ôíd̂ ḿûĺt̂íp̂ĺê ṕâǵê ŕêd́îŕêćt̂ś" }, + "lighthouse-core/audits/resource-budget.js | columnOverBudget": { + "message": "Ôv́êŕ B̂úd̂ǵêt́" + }, + "lighthouse-core/audits/resource-budget.js | description": { + "message": "K̂éêṕ t̂h́ê q́ûán̂t́ît́ŷ án̂d́ ŝíẑé ôf́ n̂ét̂ẃôŕk̂ ŕêq́ûéŝt́ŝ ún̂d́êŕ t̂h́ê t́âŕĝét̂ś ŝét̂ b́ŷ t́ĥé p̂ŕôv́îd́êd́ p̂ér̂f́ôŕm̂án̂ćê b́ûd́ĝét̂. [Ĺêár̂ń m̂ór̂é](https://developers.google.com/web/tools/lighthouse/audits/budgets)." + }, + "lighthouse-core/audits/resource-budget.js | requestCountOverBudget": { + "message": "{count, plural,\n =1 {1 r̂éq̂úêśt̂}\n other {# ŕêq́ûéŝt́ŝ}\n }" + }, + "lighthouse-core/audits/resource-budget.js | title": { + "message": "R̂éŝóûŕĉé b̂úd̂ǵêt́" + }, "lighthouse-core/audits/resource-summary.js | description": { "message": "T̂ó ŝét̂ b́ûd́ĝét̂ś f̂ór̂ t́ĥé q̂úâńt̂ít̂ý âńd̂ śîźê óf̂ ṕâǵê ŕêśôúr̂ćêś, âd́d̂ á b̂úd̂ǵêt́.ĵśôń f̂íl̂é. [L̂éâŕn̂ ḿôŕê](https://developers.google.com/web/tools/lighthouse/audits/budgets)." }, diff --git a/lighthouse-core/lib/i18n/locales/es-419.json b/lighthouse-core/lib/i18n/locales/es-419.json index 0e29bea54648..3f006322b160 100644 --- a/lighthouse-core/lib/i18n/locales/es-419.json +++ b/lighthouse-core/lib/i18n/locales/es-419.json @@ -815,18 +815,6 @@ "lighthouse-core/audits/offline-start-url.js | warningCantStart": { "message": "Lighthouse no pudo leer el atributo `start_url` del manifiesto. Por lo tanto, se tomó como `start_url` la URL del documento. Mensaje de error: \"{manifestWarning}\"." }, - "lighthouse-core/audits/performance-budget.js | columnOverBudget": { - "message": "Superior a la estimación" - }, - "lighthouse-core/audits/performance-budget.js | description": { - "message": "Asegúrate de que la cantidad y el tamaño de las solicitudes de red sean menores que los valores objetivo establecidos en la estimación de rendimiento. [Obtén más información](https://developers.google.com/web/tools/lighthouse/audits/budgets)." - }, - "lighthouse-core/audits/performance-budget.js | requestCountOverBudget": { - "message": "{count,plural, =1{1 solicitud}other{# solicitudes}}" - }, - "lighthouse-core/audits/performance-budget.js | title": { - "message": "Estimación de rendimiento" - }, "lighthouse-core/audits/redirects-http.js | description": { "message": "Si ya configuraste el protocolo HTTPS, asegúrate de redireccionar el tráfico de HTTP a HTTPS a fin de habilitar las características de protección de la Web para todos los usuarios. [Obtén más información](https://web.dev/redirects-http)." }, diff --git a/lighthouse-core/lib/i18n/locales/es.json b/lighthouse-core/lib/i18n/locales/es.json index e44c20631fb2..e322150a920f 100644 --- a/lighthouse-core/lib/i18n/locales/es.json +++ b/lighthouse-core/lib/i18n/locales/es.json @@ -815,18 +815,6 @@ "lighthouse-core/audits/offline-start-url.js | warningCantStart": { "message": "Lighthouse no ha podido leer la propiedad `start_url` en el archivo de manifiesto. Por ello, se considera que el valor de `start_url` es la URL del documento. Mensaje de error: \"{manifestWarning}\"." }, - "lighthouse-core/audits/performance-budget.js | columnOverBudget": { - "message": "Por encima del límite" - }, - "lighthouse-core/audits/performance-budget.js | description": { - "message": "Mantiene la cantidad y el tamaño de las solicitudes de red por debajo de los límites definidos en los límites de rendimiento. [Más información](https://developers.google.com/web/tools/lighthouse/audits/budgets)" - }, - "lighthouse-core/audits/performance-budget.js | requestCountOverBudget": { - "message": "{count,plural, =1{1 solicitud}other{# solicitudes}}" - }, - "lighthouse-core/audits/performance-budget.js | title": { - "message": "Límites de rendimiento" - }, "lighthouse-core/audits/redirects-http.js | description": { "message": "Si ya has configurado HTTPS, asegúrate de redirigir todo el tráfico HTTP a HTTPS para habilitar funciones de seguridad web para todos los usuarios. [Más información](https://web.dev/redirects-http)" }, diff --git a/lighthouse-core/lib/i18n/locales/fi.json b/lighthouse-core/lib/i18n/locales/fi.json index 69c16385b44d..35105e8e8b14 100644 --- a/lighthouse-core/lib/i18n/locales/fi.json +++ b/lighthouse-core/lib/i18n/locales/fi.json @@ -815,18 +815,6 @@ "lighthouse-core/audits/offline-start-url.js | warningCantStart": { "message": "`start_url` ei ollut Lighthousen luettavissa luettelossa. Siksi oletimme, että `start_url` on dokumentin URL-osoite. Virheilmoitus: {manifestWarning}" }, - "lighthouse-core/audits/performance-budget.js | columnOverBudget": { - "message": "Ylittää budjetin" - }, - "lighthouse-core/audits/performance-budget.js | description": { - "message": "Pidä verkkopyyntöjen määrä ja koko tehokkuusbudjetissa määritettyjen tavoitteiden rajoissa. [Lue lisää](https://developers.google.com/web/tools/lighthouse/audits/budgets)." - }, - "lighthouse-core/audits/performance-budget.js | requestCountOverBudget": { - "message": "{count,plural, =1{1 pyyntö}other{# pyyntöä}}" - }, - "lighthouse-core/audits/performance-budget.js | title": { - "message": "Tehokkuusbudjetti" - }, "lighthouse-core/audits/redirects-http.js | description": { "message": "Jos määritit jo HTTPS:n, varmista että ohjaat kaiken HTTP-liikenteen HTTPS:ään, jotta kaikki käyttäjät saavat turvalliset verkko-ominaisuudet. [Lue lisää](https://web.dev/redirects-http)." }, diff --git a/lighthouse-core/lib/i18n/locales/fil.json b/lighthouse-core/lib/i18n/locales/fil.json index 872fcc43c653..646e3a586c6a 100644 --- a/lighthouse-core/lib/i18n/locales/fil.json +++ b/lighthouse-core/lib/i18n/locales/fil.json @@ -815,18 +815,6 @@ "lighthouse-core/audits/offline-start-url.js | warningCantStart": { "message": "Hindi mabasa ng Lighthouse ang `start_url` na galing sa manifest. Dahil dito, ipinagpapalagay na `start_url` ang URL ng dokumento. Mensahe ng error: '{manifestWarning}.'" }, - "lighthouse-core/audits/performance-budget.js | columnOverBudget": { - "message": "Lampas sa Badyet" - }, - "lighthouse-core/audits/performance-budget.js | description": { - "message": "Panatilihin ang dami at laki ng mga kahilingan sa network sa ilalim ng mga target na itinakda ng ibinigay na badyet sa performance. [Matuto pa](https://developers.google.com/web/tools/lighthouse/audits/budgets)." - }, - "lighthouse-core/audits/performance-budget.js | requestCountOverBudget": { - "message": "{count,plural, =1{1 kahilingan}one{# kahilingan}other{# na kahilingan}}" - }, - "lighthouse-core/audits/performance-budget.js | title": { - "message": "Badyet sa performance" - }, "lighthouse-core/audits/redirects-http.js | description": { "message": "Kung na-set up mo na ang HTTPS, tiyaking ire-redirect mo sa HTTPS ang lahat ng trapiko sa HTTP para ma-enable ang mga ligtas na feature sa web para sa lahat ng iyong user. [Matuto pa](https://web.dev/redirects-http)." }, diff --git a/lighthouse-core/lib/i18n/locales/fr.json b/lighthouse-core/lib/i18n/locales/fr.json index 686ba613a67b..7544a25507fa 100644 --- a/lighthouse-core/lib/i18n/locales/fr.json +++ b/lighthouse-core/lib/i18n/locales/fr.json @@ -815,18 +815,6 @@ "lighthouse-core/audits/offline-start-url.js | warningCantStart": { "message": "Lighthouse ne parvient pas à lire l'attribut `start_url` du fichier manifeste et considère donc `start_url` comme étant l'URL du document. Message d'erreur : \"{manifestWarning}\"." }, - "lighthouse-core/audits/performance-budget.js | columnOverBudget": { - "message": "Au-dessus du budget" - }, - "lighthouse-core/audits/performance-budget.js | description": { - "message": "Maintenez le volume et la taille des requêtes réseau sous les objectifs définis par le budget de performances fourni. [En savoir plus](https://developers.google.com/web/tools/lighthouse/audits/budgets)" - }, - "lighthouse-core/audits/performance-budget.js | requestCountOverBudget": { - "message": "{count,plural, =1{1 requête}one{# requête}other{# requêtes}}" - }, - "lighthouse-core/audits/performance-budget.js | title": { - "message": "Budget de performances" - }, "lighthouse-core/audits/redirects-http.js | description": { "message": "Si vous avez déjà configuré le protocole HTTPS, veillez à rediriger tout le trafic HTTP vers HTTPS afin de proposer des fonctionnalités Web sûres à tous vos utilisateurs. [Découvrez-en davantage](https://web.dev/redirects-http)." }, diff --git a/lighthouse-core/lib/i18n/locales/he.json b/lighthouse-core/lib/i18n/locales/he.json index 7d0fc3be3642..6cb250b4382d 100644 --- a/lighthouse-core/lib/i18n/locales/he.json +++ b/lighthouse-core/lib/i18n/locales/he.json @@ -815,18 +815,6 @@ "lighthouse-core/audits/offline-start-url.js | warningCantStart": { "message": "מערכת Lighthouse לא הצליחה לקרוא את `start_url` מהמניפסט. כתוצאה מכך, התבצעה הנחה ש-`start_url` היא כתובת ה-URL של המסמך. הודעת שגיאה: '{manifestWarning}'." }, - "lighthouse-core/audits/performance-budget.js | columnOverBudget": { - "message": "גובה החריגה מהתקציב" - }, - "lighthouse-core/audits/performance-budget.js | description": { - "message": "הכמות והגודל של בקשות ברשת צריכים להיות מתחת ליעדים שהוגדרו בתקציב הביצועים הרלוונטי. [מידע נוסף](https://developers.google.com/web/tools/lighthouse/audits/budgets)." - }, - "lighthouse-core/audits/performance-budget.js | requestCountOverBudget": { - "message": "{count,plural, =1{בקשה אחת}two{# בקשות}many{# בקשות}other{# בקשות}}" - }, - "lighthouse-core/audits/performance-budget.js | title": { - "message": "תקציב ביצועים" - }, "lighthouse-core/audits/redirects-http.js | description": { "message": "אם כבר הגדרת HTTPS, יש לוודא שכל תנועת ה-HTTP מופנית אוטומטית ל-HTTPS כדי להפעיל תכונות רשת מאובטחות לכל המשתמשים שלך. [מידע נוסף](https://web.dev/redirects-http)." }, diff --git a/lighthouse-core/lib/i18n/locales/hi.json b/lighthouse-core/lib/i18n/locales/hi.json index 38e30ba70c69..9a55df9db6de 100644 --- a/lighthouse-core/lib/i18n/locales/hi.json +++ b/lighthouse-core/lib/i18n/locales/hi.json @@ -815,18 +815,6 @@ "lighthouse-core/audits/offline-start-url.js | warningCantStart": { "message": "Lighthouse, मेनिफ़ेस्ट फ़ाइल से `start_url` को नहीं ढूंढ सका. इसी वजह से, `start_url` को दस्तावेज़ का यूआरएल मान लिया गया. गड़बड़ी का मैसेज: '{manifestWarning}'." }, - "lighthouse-core/audits/performance-budget.js | columnOverBudget": { - "message": "बजट से ज़्यादा" - }, - "lighthouse-core/audits/performance-budget.js | description": { - "message": "नेटवर्क अनुरोधों की संख्या और उनकी क्वालिटी, आपको दिए गए परफ़ॉर्मेंस बजट की ओर से सेट किए गए लक्ष्यों के हिसाब से होनी चाहिए. [ज़्यादा जानें](https://developers.google.com/web/tools/lighthouse/audits/budgets)." - }, - "lighthouse-core/audits/performance-budget.js | requestCountOverBudget": { - "message": "{count,plural, =1{अनुरोध}one{# अनुरोध}other{# अनुरोध}}" - }, - "lighthouse-core/audits/performance-budget.js | title": { - "message": "परफ़ॉर्मेंस बजट" - }, "lighthouse-core/audits/redirects-http.js | description": { "message": "अगर आप एचटीटीपीएस पहले ही सेट अप कर चुके हैं, तो पक्का करें कि अपने सभी उपयोगकर्ताओं के लिए सुरक्षित वेब फ़ीचर चालू करने के मकसद से आप सभी एचटीटीपी ट्रैफ़िक को एचटीटीपीएस पर रीडायरेक्ट करें. [ज़्यादा जानें](https://web.dev/redirects-http)." }, diff --git a/lighthouse-core/lib/i18n/locales/hr.json b/lighthouse-core/lib/i18n/locales/hr.json index fa87e4f00661..a8aea25356d6 100644 --- a/lighthouse-core/lib/i18n/locales/hr.json +++ b/lighthouse-core/lib/i18n/locales/hr.json @@ -815,18 +815,6 @@ "lighthouse-core/audits/offline-start-url.js | warningCantStart": { "message": "Lighthouse nije mogao pročitati `start_url` iz manifesta. Zbog toga se pretpostavilo da je `start_url` URL dokumenta. Poruka pogreške: \"{manifestWarning}\"." }, - "lighthouse-core/audits/performance-budget.js | columnOverBudget": { - "message": "Više od proračuna" - }, - "lighthouse-core/audits/performance-budget.js | description": { - "message": "Zahtjeve za količinom i veličinom mreže održavajte ispod ciljeva utvrđenih danim proračunom za izvršavanje. [Saznajte više](https://developers.google.com/web/tools/lighthouse/audits/budgets)." - }, - "lighthouse-core/audits/performance-budget.js | requestCountOverBudget": { - "message": "{count,plural, =1{Jedan zahtjev}one{Broj zahtjeva: #}few{Broj zahtjeva: #}other{Broj zahtjeva: #}}" - }, - "lighthouse-core/audits/performance-budget.js | title": { - "message": "Proračun za izvedbu" - }, "lighthouse-core/audits/redirects-http.js | description": { "message": "Ako ste već postavili HTTPS, provjerite preusmjeravate li sav HTTP promet na HTTPS kako biste omogućili sigurne web-značajke za sve korisnike. [Saznajte više](https://web.dev/redirects-http)." }, diff --git a/lighthouse-core/lib/i18n/locales/hu.json b/lighthouse-core/lib/i18n/locales/hu.json index 6da4c62ca21f..2aed5657b7d6 100644 --- a/lighthouse-core/lib/i18n/locales/hu.json +++ b/lighthouse-core/lib/i18n/locales/hu.json @@ -815,18 +815,6 @@ "lighthouse-core/audits/offline-start-url.js | warningCantStart": { "message": "A Lighthouse nem tudta olvasni a manifest `start_url` elemét. Ennek következtében azt feltételezi, hogy a(z) `start_url` a dokumentum URL-címe. Hibaüzenet: „{manifestWarning}”." }, - "lighthouse-core/audits/performance-budget.js | columnOverBudget": { - "message": "Büdzsén kívül" - }, - "lighthouse-core/audits/performance-budget.js | description": { - "message": "A hálózati kérések száma és mérete maradjon a megadott teljesítménybüdzsé célpontjai alatt. [További információ](https://developers.google.com/web/tools/lighthouse/audits/budgets)." - }, - "lighthouse-core/audits/performance-budget.js | requestCountOverBudget": { - "message": "{count,plural, =1{1 kérés}other{# kérés}}" - }, - "lighthouse-core/audits/performance-budget.js | title": { - "message": "Teljesítménybüdzsé" - }, "lighthouse-core/audits/redirects-http.js | description": { "message": "Ha már beállította a HTTPS protokollt, gondoskodjon a teljes HTTP-forgalom HTTPS-re történő átirányításáról, hogy a biztonságos webes funkciók az összes felhasználó számára rendelkezésre álljanak. [További információ](https://web.dev/redirects-http)." }, diff --git a/lighthouse-core/lib/i18n/locales/id.json b/lighthouse-core/lib/i18n/locales/id.json index 801a2999cc61..ca1956ec4d74 100644 --- a/lighthouse-core/lib/i18n/locales/id.json +++ b/lighthouse-core/lib/i18n/locales/id.json @@ -815,18 +815,6 @@ "lighthouse-core/audits/offline-start-url.js | warningCantStart": { "message": "Lighthouse tidak dapat membaca `start_url` dari manifes tersebut. Oleh karena itu, `start_url` dianggap sebagai URL dokumen. Pesan error: '{manifestWarning}'." }, - "lighthouse-core/audits/performance-budget.js | columnOverBudget": { - "message": "Melebihi Anggaran" - }, - "lighthouse-core/audits/performance-budget.js | description": { - "message": "Pertahankan jumlah dan ukuran permintaan jaringan di bawah target yang ditetapkan oleh anggaran performa yang disediakan. [Pelajari lebih lanjut](https://developers.google.com/web/tools/lighthouse/audits/budgets)." - }, - "lighthouse-core/audits/performance-budget.js | requestCountOverBudget": { - "message": "{count,plural, =1{1 permintaan}other{# permintaan}}" - }, - "lighthouse-core/audits/performance-budget.js | title": { - "message": "Anggaran performa" - }, "lighthouse-core/audits/redirects-http.js | description": { "message": "Jika Anda sudah menyiapkan HTTPS, pastikan mengalihkan semua traffic HTTP ke HTTPS agar dapat menyediakan fitur web yang aman bagi semua pengguna. [Pelajari lebih lanjut](https://web.dev/redirects-http)." }, diff --git a/lighthouse-core/lib/i18n/locales/it.json b/lighthouse-core/lib/i18n/locales/it.json index 6cea46b6be39..5b3a3be0d2ad 100644 --- a/lighthouse-core/lib/i18n/locales/it.json +++ b/lighthouse-core/lib/i18n/locales/it.json @@ -815,18 +815,6 @@ "lighthouse-core/audits/offline-start-url.js | warningCantStart": { "message": "Impossibile leggere `start_url` dal file manifest in Lighthouse. Di conseguenza si presume che `start_url` sia l'URL del documento. Messaggio di errore: \"{manifestWarning}\"." }, - "lighthouse-core/audits/performance-budget.js | columnOverBudget": { - "message": "Oltre il budget" - }, - "lighthouse-core/audits/performance-budget.js | description": { - "message": "Mantieni la quantità e le dimensioni delle richieste di rete al di sotto dei target impostati tramite il budget per le prestazioni fornito. [Ulteriori informazioni](https://developers.google.com/web/tools/lighthouse/audits/budgets)." - }, - "lighthouse-core/audits/performance-budget.js | requestCountOverBudget": { - "message": "{count,plural, =1{1 richiesta}other{# richieste}}" - }, - "lighthouse-core/audits/performance-budget.js | title": { - "message": "Budget per le prestazioni" - }, "lighthouse-core/audits/redirects-http.js | description": { "message": "Se hai già configurato HTTPS, assicurati di reindirizzare tutto il traffico HTTP a HTTPS per attivare funzionalità web sicure per tutti i tuoi utenti. [Ulteriori informazioni](https://web.dev/redirects-http)." }, diff --git a/lighthouse-core/lib/i18n/locales/ja.json b/lighthouse-core/lib/i18n/locales/ja.json index 16c453dc8ea0..8b60dd7c2898 100644 --- a/lighthouse-core/lib/i18n/locales/ja.json +++ b/lighthouse-core/lib/i18n/locales/ja.json @@ -815,18 +815,6 @@ "lighthouse-core/audits/offline-start-url.js | warningCantStart": { "message": "Lighthouse でマニフェストから `start_url` を読み取れませんでした。その結果、`start_url` はドキュメントの URL と認識されています。エラー メッセージ: 「{manifestWarning}」。" }, - "lighthouse-core/audits/performance-budget.js | columnOverBudget": { - "message": "予算超過" - }, - "lighthouse-core/audits/performance-budget.js | description": { - "message": "ネットワーク リクエストの数とサイズが、指定したパフォーマンス予算の設定目標内に収まるよう維持します。[詳細](https://developers.google.com/web/tools/lighthouse/audits/budgets)" - }, - "lighthouse-core/audits/performance-budget.js | requestCountOverBudget": { - "message": "{count,plural, =1{1 件のリクエスト}other{# 件のリクエスト}}" - }, - "lighthouse-core/audits/performance-budget.js | title": { - "message": "パフォーマンス予算" - }, "lighthouse-core/audits/redirects-http.js | description": { "message": "HTTPS を設定済みの場合は、すべてのユーザーに安全なウェブ機能を提供できるように、すべての HTTP トラフィックが HTTPS にリダイレクトされることを確認してください。[詳細](https://web.dev/redirects-http)" }, diff --git a/lighthouse-core/lib/i18n/locales/ko.json b/lighthouse-core/lib/i18n/locales/ko.json index b8cf129987e9..6c43059565da 100644 --- a/lighthouse-core/lib/i18n/locales/ko.json +++ b/lighthouse-core/lib/i18n/locales/ko.json @@ -815,18 +815,6 @@ "lighthouse-core/audits/offline-start-url.js | warningCantStart": { "message": "Lighthouse가 매니페스트에서 `start_url`을(를) 읽지 못했습니다. 그 결과 `start_url`은(는) 문서 URL인 것으로 간주되었습니다. 오류 메시지는 '{manifestWarning}'입니다." }, - "lighthouse-core/audits/performance-budget.js | columnOverBudget": { - "message": "예산 초과" - }, - "lighthouse-core/audits/performance-budget.js | description": { - "message": "네트워크 요청의 양과 크기는 제공된 성능 예산에 따라 설정된 목표치 아래로 유지하세요. [자세히 알아보기](https://developers.google.com/web/tools/lighthouse/audits/budgets)" - }, - "lighthouse-core/audits/performance-budget.js | requestCountOverBudget": { - "message": "{count,plural, =1{요청 1건}other{요청 #건}}" - }, - "lighthouse-core/audits/performance-budget.js | title": { - "message": "성능 예산" - }, "lighthouse-core/audits/redirects-http.js | description": { "message": "HTTPS를 이미 설정한 경우 모든 사용자가 안전한 웹 기능을 사용하기 위해서는 모든 HTTP 트래픽이 HTTPS로 리디렉션되어야 합니다. [자세히 알아보기](https://web.dev/redirects-http)" }, diff --git a/lighthouse-core/lib/i18n/locales/lt.json b/lighthouse-core/lib/i18n/locales/lt.json index 9fdb42559b90..51613ef314c1 100644 --- a/lighthouse-core/lib/i18n/locales/lt.json +++ b/lighthouse-core/lib/i18n/locales/lt.json @@ -815,18 +815,6 @@ "lighthouse-core/audits/offline-start-url.js | warningCantStart": { "message": "„Lighthouse“ nepavyko nuskaityti `start_url` iš aprašo. Dėl to `start_url` buvo laikomas dokumento URL. Klaidos pranešimas: „{manifestWarning}“." }, - "lighthouse-core/audits/performance-budget.js | columnOverBudget": { - "message": "Viršijo biudžetą" - }, - "lighthouse-core/audits/performance-budget.js | description": { - "message": "Tinklo užklausų kiekis ir dydis neturi viršyti tikslinių verčių, nustatytų našumo biudžete. [Sužinokite daugiau](https://developers.google.com/web/tools/lighthouse/audits/budgets)." - }, - "lighthouse-core/audits/performance-budget.js | requestCountOverBudget": { - "message": "{count,plural, =1{1 užklausa}one{# užklausa}few{# užklausos}many{# užklausos}other{# užklausų}}" - }, - "lighthouse-core/audits/performance-budget.js | title": { - "message": "Našumo biudžetas" - }, "lighthouse-core/audits/redirects-http.js | description": { "message": "Jei jau nustatėte HTTPS, būtinai peradresuokite visą HTTP srautą į HTTPS, kad visi naudotojai galėtų naudotis saugiomis žiniatinklio funkcijomis. [Sužinokite daugiau](https://web.dev/redirects-http)" }, diff --git a/lighthouse-core/lib/i18n/locales/lv.json b/lighthouse-core/lib/i18n/locales/lv.json index d7e3f26b27e2..264df2bc6b76 100644 --- a/lighthouse-core/lib/i18n/locales/lv.json +++ b/lighthouse-core/lib/i18n/locales/lv.json @@ -815,18 +815,6 @@ "lighthouse-core/audits/offline-start-url.js | warningCantStart": { "message": "Rīkā Lighthouse neizdevās no manifesta nolasīt `start_url`. Tāpēc tika pieņemts, ka `start_url` ir dokumenta URL. Kļūdas ziņojums: “{manifestWarning}”." }, - "lighthouse-core/audits/performance-budget.js | columnOverBudget": { - "message": "Pārsniegts budžets" - }, - "lighthouse-core/audits/performance-budget.js | description": { - "message": "Saglabājiet tīkla pieprasījumu daudzumu un lielumu zem mērķiem, kas noteikti sniegtajā izpildes budžetā. [Uzziniet vairāk](https://developers.google.com/web/tools/lighthouse/audits/budgets)." - }, - "lighthouse-core/audits/performance-budget.js | requestCountOverBudget": { - "message": "{count,plural, =1{1 pieprasījums}zero{# pieprasījumi}one{# pieprasījums}other{# pieprasījumi}}" - }, - "lighthouse-core/audits/performance-budget.js | title": { - "message": "Izpildes budžets" - }, "lighthouse-core/audits/redirects-http.js | description": { "message": "Ja HTTPS protokols jau ir iestatīts, noteikti novirziet visu HTTP datplūsmu uz HTTPS, lai visiem lietotājiem iespējotu droša tīmekļa funkcijas. [Uzziniet vairāk](https://web.dev/redirects-http)." }, diff --git a/lighthouse-core/lib/i18n/locales/nl.json b/lighthouse-core/lib/i18n/locales/nl.json index 4908ccd82e2f..88db5a14451f 100644 --- a/lighthouse-core/lib/i18n/locales/nl.json +++ b/lighthouse-core/lib/i18n/locales/nl.json @@ -815,18 +815,6 @@ "lighthouse-core/audits/offline-start-url.js | warningCantStart": { "message": "Lighthouse kan de `start_url` in het manifest niet lezen. Daarom is aangenomen dat de `start_url` de URL van het document is. Foutmelding: '{manifestWarning}'." }, - "lighthouse-core/audits/performance-budget.js | columnOverBudget": { - "message": "Over het budget" - }, - "lighthouse-core/audits/performance-budget.js | description": { - "message": "Houd de hoeveelheid en grootte van netwerkverzoeken onder de door het verstrekte prestatiebudget ingestelde doelen. [Meer informatie](https://developers.google.com/web/tools/lighthouse/audits/budgets)" - }, - "lighthouse-core/audits/performance-budget.js | requestCountOverBudget": { - "message": "{count,plural, =1{1 verzoek}other{# verzoeken}}" - }, - "lighthouse-core/audits/performance-budget.js | title": { - "message": "Prestatiebudget" - }, "lighthouse-core/audits/redirects-http.js | description": { "message": "Als je HTTPS al hebt ingesteld, zorg je ervoor dat je al het HTTP-verkeer omleidt naar HTTPS om beveiligde webfuncties voor alle gebruikers te activeren. [Meer informatie](https://web.dev/redirects-http)" }, diff --git a/lighthouse-core/lib/i18n/locales/no.json b/lighthouse-core/lib/i18n/locales/no.json index 1965ebac07fd..da0d88281642 100644 --- a/lighthouse-core/lib/i18n/locales/no.json +++ b/lighthouse-core/lib/i18n/locales/no.json @@ -815,18 +815,6 @@ "lighthouse-core/audits/offline-start-url.js | warningCantStart": { "message": "Lighthouse kunne ikke lese `start_url` i manifestet. Derfor ble det antatt at `start_url` var dokumentets nettadresse. Feilmelding: «{manifestWarning}»." }, - "lighthouse-core/audits/performance-budget.js | columnOverBudget": { - "message": "Over budsjett" - }, - "lighthouse-core/audits/performance-budget.js | description": { - "message": "Sørg for at antall nettverksforespørsler og størrelsen på disse er lavere enn målene som er angitt i det aktuelle ytelsesbudsjettet. [Finn ut mer](https://developers.google.com/web/tools/lighthouse/audits/budgets)." - }, - "lighthouse-core/audits/performance-budget.js | requestCountOverBudget": { - "message": "{count,plural, =1{1 forespørsel}other{# forespørsler}}" - }, - "lighthouse-core/audits/performance-budget.js | title": { - "message": "Ytelsesbudsjett" - }, "lighthouse-core/audits/redirects-http.js | description": { "message": "Hvis du allerede har satt opp HTTPS, må du sørge for at du viderekobler all HTTP-trafikk til HTTPS, slik at du gir alle brukerne dine tilgang til sikker nettfunksjonalitet. [Finn ut mer](https://web.dev/redirects-http)." }, diff --git a/lighthouse-core/lib/i18n/locales/pl.json b/lighthouse-core/lib/i18n/locales/pl.json index de4687ee8882..f04021cffbbc 100644 --- a/lighthouse-core/lib/i18n/locales/pl.json +++ b/lighthouse-core/lib/i18n/locales/pl.json @@ -815,18 +815,6 @@ "lighthouse-core/audits/offline-start-url.js | warningCantStart": { "message": "Narzędziu Lighthouse nie udało się odczytać elementu `start_url` z pliku manifestu. Dlatego uznano, że `start_url` to URL dokumentu. Komunikat o błędzie: „{manifestWarning}”." }, - "lighthouse-core/audits/performance-budget.js | columnOverBudget": { - "message": "Przekroczenie budżetu" - }, - "lighthouse-core/audits/performance-budget.js | description": { - "message": "Liczba ani rozmiar żądań sieciowych nie mogą przekraczać wartości określonych przez podany budżet wydajności. [Więcej informacji](https://developers.google.com/web/tools/lighthouse/audits/budgets)" - }, - "lighthouse-core/audits/performance-budget.js | requestCountOverBudget": { - "message": "{count,plural, =1{1 żądanie}few{# żądania}many{# żądań}other{# żądania}}" - }, - "lighthouse-core/audits/performance-budget.js | title": { - "message": "Budżet wydajności" - }, "lighthouse-core/audits/redirects-http.js | description": { "message": "Jeśli HTTPS jest już skonfigurowany, upewnij się, że cały ruch HTTP jest przekierowywany do HTTPS, by wszyscy użytkownicy mogli korzystać z bezpiecznych funkcji. [Więcej informacji](https://web.dev/redirects-http)" }, diff --git a/lighthouse-core/lib/i18n/locales/pt-PT.json b/lighthouse-core/lib/i18n/locales/pt-PT.json index 84fcf2f93e0c..adfbf4e6e780 100644 --- a/lighthouse-core/lib/i18n/locales/pt-PT.json +++ b/lighthouse-core/lib/i18n/locales/pt-PT.json @@ -815,18 +815,6 @@ "lighthouse-core/audits/offline-start-url.js | warningCantStart": { "message": "O Lighthouse não conseguiu ler o `start_url` do manifesto. Como resultado, o `start_url` foi assumido como o URL do documento. Mensagem de erro: \"{manifestWarning}\"." }, - "lighthouse-core/audits/performance-budget.js | columnOverBudget": { - "message": "Superior ao orçamento" - }, - "lighthouse-core/audits/performance-budget.js | description": { - "message": "Mantenha a quantidade e o tamanho dos pedidos de rede abaixo dos alvos estabelecidos pelo orçamento de desempenho fornecido. [Saiba mais](https://developers.google.com/web/tools/lighthouse/audits/budgets)." - }, - "lighthouse-core/audits/performance-budget.js | requestCountOverBudget": { - "message": "{count,plural, =1{1 pedido}other{# pedidos}}" - }, - "lighthouse-core/audits/performance-budget.js | title": { - "message": "Orçamento de desempenho" - }, "lighthouse-core/audits/redirects-http.js | description": { "message": "Se já tiver configurado o HTTPS, certifique-se de que redireciona todo o tráfego HTTP para HTTPS de modo a ativar as funcionalidades Web seguras para todos os seus utilizadores. [Saiba mais](https://web.dev/redirects-http)." }, diff --git a/lighthouse-core/lib/i18n/locales/pt.json b/lighthouse-core/lib/i18n/locales/pt.json index 43cc6913e360..1120d66b9119 100644 --- a/lighthouse-core/lib/i18n/locales/pt.json +++ b/lighthouse-core/lib/i18n/locales/pt.json @@ -815,18 +815,6 @@ "lighthouse-core/audits/offline-start-url.js | warningCantStart": { "message": "A propriedade `start_url` não pode ser lida pelo Lighthouse no manifesto. Como resultado, a URL do documento foi considerada como `start_url`. Mensagem de erro: \"{manifestWarning}\"." }, - "lighthouse-core/audits/performance-budget.js | columnOverBudget": { - "message": "Acima do orçamento" - }, - "lighthouse-core/audits/performance-budget.js | description": { - "message": "Mantenha a quantidade e o tamanho de solicitações de rede de acordo com os destinos definidos pelo orçamento de desempenho informado. [Saiba mais](https://developers.google.com/web/tools/lighthouse/audits/budgets)." - }, - "lighthouse-core/audits/performance-budget.js | requestCountOverBudget": { - "message": "{count,plural, =1{1 solicitação}one{# solicitação}other{# solicitações}}" - }, - "lighthouse-core/audits/performance-budget.js | title": { - "message": "Orçamento de desempenho" - }, "lighthouse-core/audits/redirects-http.js | description": { "message": "Se você já definiu o HTTPS, redirecione todo o tráfego HTTP para HTTPS para garantir recursos da Web para todos os seus usuários. [Saiba mais](https://web.dev/redirects-http)." }, diff --git a/lighthouse-core/lib/i18n/locales/ro.json b/lighthouse-core/lib/i18n/locales/ro.json index 14ca46d71c1d..ecae09ac2929 100644 --- a/lighthouse-core/lib/i18n/locales/ro.json +++ b/lighthouse-core/lib/i18n/locales/ro.json @@ -815,18 +815,6 @@ "lighthouse-core/audits/offline-start-url.js | warningCantStart": { "message": "Lighthouse nu a putut citi `start_url` din manifest. Prin urmare, s-a presupus că `start_url` este adresa URL a documentului. Mesaj de eroare: „{manifestWarning}”." }, - "lighthouse-core/audits/performance-budget.js | columnOverBudget": { - "message": "Peste buget" - }, - "lighthouse-core/audits/performance-budget.js | description": { - "message": "Păstrează cantitatea și dimensiunea solicitărilor din rețea sub obiectivele stabilite de bugetul de performanță solicitat. [Află mai multe](https://developers.google.com/web/tools/lighthouse/audits/budgets)." - }, - "lighthouse-core/audits/performance-budget.js | requestCountOverBudget": { - "message": "{count,plural, =1{O solicitare}few{# solicitări}other{# de solicitări}}" - }, - "lighthouse-core/audits/performance-budget.js | title": { - "message": "Buget de performanță" - }, "lighthouse-core/audits/redirects-http.js | description": { "message": "Dacă ai configurat deja HTTPS, redirecționează tot traficul HTTP spre HTTPS, ca să activezi funcțiile web sigure pentru toți utilizatorii. [Află mai multe](https://web.dev/redirects-http)." }, diff --git a/lighthouse-core/lib/i18n/locales/ru.json b/lighthouse-core/lib/i18n/locales/ru.json index 5bbd59e5727e..6eaad0ac4a8d 100644 --- a/lighthouse-core/lib/i18n/locales/ru.json +++ b/lighthouse-core/lib/i18n/locales/ru.json @@ -815,18 +815,6 @@ "lighthouse-core/audits/offline-start-url.js | warningCantStart": { "message": "Lighthouse не удалось прочитать `start_url` в файле манифеста. По этой причине в качестве URL документа была выбрана ссылка `start_url`. Сообщение об ошибке: \"{manifestWarning}\"." }, - "lighthouse-core/audits/performance-budget.js | columnOverBudget": { - "message": "Сверх бюджета" - }, - "lighthouse-core/audits/performance-budget.js | description": { - "message": "Следите за тем, чтобы количество и размер сетевых запросов соответствовали целям, установленным в бюджете производительности. [Подробнее…](https://developers.google.com/web/tools/lighthouse/audits/budgets)" - }, - "lighthouse-core/audits/performance-budget.js | requestCountOverBudget": { - "message": "{count,plural, =1{1 запрос}one{# запрос}few{# запроса}many{# запросов}other{# запроса}}" - }, - "lighthouse-core/audits/performance-budget.js | title": { - "message": "Бюджет производительности" - }, "lighthouse-core/audits/redirects-http.js | description": { "message": "Если у вас уже настроен протокол HTTPS, убедитесь, что весь трафик перенаправляется с HTTP на HTTPS, чтобы обеспечить безопасность для всех своих пользователей. [Подробнее…](https://web.dev/redirects-http)" }, diff --git a/lighthouse-core/lib/i18n/locales/sk.json b/lighthouse-core/lib/i18n/locales/sk.json index ba248796bb16..59a5ad060bb2 100644 --- a/lighthouse-core/lib/i18n/locales/sk.json +++ b/lighthouse-core/lib/i18n/locales/sk.json @@ -815,18 +815,6 @@ "lighthouse-core/audits/offline-start-url.js | warningCantStart": { "message": "Nástroju Lighthouse sa nepodarilo prečítať vlastnosť `start_url` z manifestu. Na základe toho sa za webovú adresu dokumentu považuje `start_url`. Chybové hlásenie: {manifestWarning}." }, - "lighthouse-core/audits/performance-budget.js | columnOverBudget": { - "message": "Cez rozpočet" - }, - "lighthouse-core/audits/performance-budget.js | description": { - "message": "Udržujte množstvo a veľkosť žiadostí siete pod cieľovými hodnotami stanovenými poskytnutým rozpočtom výkonnosti. [Ďalšie informácie](https://developers.google.com/web/tools/lighthouse/audits/budgets)" - }, - "lighthouse-core/audits/performance-budget.js | requestCountOverBudget": { - "message": "{count,plural, =1{1 žiadosť}few{# žiadosti}many{# requests}other{# žiadostí}}" - }, - "lighthouse-core/audits/performance-budget.js | title": { - "message": "Rozpočet výkonnosti" - }, "lighthouse-core/audits/redirects-http.js | description": { "message": "Ak ste už nastavili HTTPS, zaistite presmerovanie všetkej návštevnosti cez HTTP na HTTPS a poskytnite tak funkcie zabezpečeného webu všetkým používateľom. [Ďalšie informácie](https://web.dev/redirects-http)" }, diff --git a/lighthouse-core/lib/i18n/locales/sl.json b/lighthouse-core/lib/i18n/locales/sl.json index d67db901ba9a..eba8a9aa508f 100644 --- a/lighthouse-core/lib/i18n/locales/sl.json +++ b/lighthouse-core/lib/i18n/locales/sl.json @@ -815,18 +815,6 @@ "lighthouse-core/audits/offline-start-url.js | warningCantStart": { "message": "Lighthouse ni mogel prebrati URL-ja `start_url` v manifestu. Za URL dokumenta se je posledično imelo ta URL: `start_url`. Sporočilo o napaki: »{manifestWarning}«." }, - "lighthouse-core/audits/performance-budget.js | columnOverBudget": { - "message": "Prek proračuna" - }, - "lighthouse-core/audits/performance-budget.js | description": { - "message": "Količino in velikosti omrežnih zahtev imejte pod cilji, ki so nastavljeni z navedenim proračunom za uspešnost. [Več o tem](https://developers.google.com/web/tools/lighthouse/audits/budgets)." - }, - "lighthouse-core/audits/performance-budget.js | requestCountOverBudget": { - "message": "{count,plural, =1{1 zahteva}one{# zahteva}two{# zahtevi}few{# zahteve}other{# zahtev}}" - }, - "lighthouse-core/audits/performance-budget.js | title": { - "message": "Proračun za uspešnost" - }, "lighthouse-core/audits/redirects-http.js | description": { "message": "Če ste že nastavili protokol HTTPS, poskrbite za preusmeritev vsega prometa prek protokola HTTP na protokol HTTPS, da zagotovite varne spletne funkcije vsem uporabnikom. [Več o tem](https://web.dev/redirects-http)." }, diff --git a/lighthouse-core/lib/i18n/locales/sr-Latn.json b/lighthouse-core/lib/i18n/locales/sr-Latn.json index a7444c49fa16..2ff8012e91a7 100644 --- a/lighthouse-core/lib/i18n/locales/sr-Latn.json +++ b/lighthouse-core/lib/i18n/locales/sr-Latn.json @@ -815,18 +815,6 @@ "lighthouse-core/audits/offline-start-url.js | warningCantStart": { "message": "Lighthouse nije uspeo da pročita `start_url` iz manifesta. Kao posledica toga, pretpostavili smo da je `start_url` URL dokumenta. Poruka o grešci: „{manifestWarning}“." }, - "lighthouse-core/audits/performance-budget.js | columnOverBudget": { - "message": "Premašuje cilj" - }, - "lighthouse-core/audits/performance-budget.js | description": { - "message": "Zahteve za količinu i veličinu mreže održavajte ispod granica određenih ciljevima za učinak. [Saznajte više](https://developers.google.com/web/tools/lighthouse/audits/budgets)." - }, - "lighthouse-core/audits/performance-budget.js | requestCountOverBudget": { - "message": "{count,plural, =1{1 zahtev}one{# zahtev}few{# zahteva}other{# zahteva}}" - }, - "lighthouse-core/audits/performance-budget.js | title": { - "message": "Cilj za učinak" - }, "lighthouse-core/audits/redirects-http.js | description": { "message": "Ako ste već podesili HTTPS, uverite se da preusmeravate sav HTTP saobraćaj na HTTPS da biste omogućili bezbedne veb-funkcije za sve korisnike. [Saznajte više](https://web.dev/redirects-http)." }, diff --git a/lighthouse-core/lib/i18n/locales/sr.json b/lighthouse-core/lib/i18n/locales/sr.json index 98c910ac9775..78519b4454fe 100644 --- a/lighthouse-core/lib/i18n/locales/sr.json +++ b/lighthouse-core/lib/i18n/locales/sr.json @@ -815,18 +815,6 @@ "lighthouse-core/audits/offline-start-url.js | warningCantStart": { "message": "Lighthouse није успео да прочита `start_url` из манифеста. Као последица тога, претпоставили смо да је `start_url` URL документа. Порука о грешци: „{manifestWarning}“." }, - "lighthouse-core/audits/performance-budget.js | columnOverBudget": { - "message": "Премашује циљ" - }, - "lighthouse-core/audits/performance-budget.js | description": { - "message": "Захтеве за количину и величину мреже одржавајте испод граница одређених циљевима за учинак. [Сазнајте више](https://developers.google.com/web/tools/lighthouse/audits/budgets)." - }, - "lighthouse-core/audits/performance-budget.js | requestCountOverBudget": { - "message": "{count,plural, =1{1 захтев}one{# захтев}few{# захтева}other{# захтева}}" - }, - "lighthouse-core/audits/performance-budget.js | title": { - "message": "Циљ за учинак" - }, "lighthouse-core/audits/redirects-http.js | description": { "message": "Ако сте већ подесили HTTPS, уверите се да преусмеравате сав HTTP саобраћај на HTTPS да бисте омогућили безбедне веб-функције за све кориснике. [Сазнајте више](https://web.dev/redirects-http)." }, diff --git a/lighthouse-core/lib/i18n/locales/sv.json b/lighthouse-core/lib/i18n/locales/sv.json index 5a62c48547ec..092ceab17fae 100644 --- a/lighthouse-core/lib/i18n/locales/sv.json +++ b/lighthouse-core/lib/i18n/locales/sv.json @@ -815,18 +815,6 @@ "lighthouse-core/audits/offline-start-url.js | warningCantStart": { "message": "Lighthouse kunde inte läsa `start_url` i manifestet. Därför antogs det att `start_url` var dokumentets webbadress. Felmeddelande: {manifestWarning}." }, - "lighthouse-core/audits/performance-budget.js | columnOverBudget": { - "message": "Över budget" - }, - "lighthouse-core/audits/performance-budget.js | description": { - "message": "Håll antal och storlek för nätverksbegäranden under de mål som anges i den angivna prestandabudgeten. [Läs mer](https://developers.google.com/web/tools/lighthouse/audits/budgets)." - }, - "lighthouse-core/audits/performance-budget.js | requestCountOverBudget": { - "message": "{count,plural, =1{1 begäran}other{# begäranden}}" - }, - "lighthouse-core/audits/performance-budget.js | title": { - "message": "Prestandabudget" - }, "lighthouse-core/audits/redirects-http.js | description": { "message": "Om du redan har konfigurerat HTTPS ska du omdirigera all HTTP-trafik till HTTPS för att se till att webbfunktionerna är säkra för alla användare. [Läs mer](https://web.dev/redirects-http)." }, diff --git a/lighthouse-core/lib/i18n/locales/ta.json b/lighthouse-core/lib/i18n/locales/ta.json index c350147e1d19..6c576b71ad5a 100644 --- a/lighthouse-core/lib/i18n/locales/ta.json +++ b/lighthouse-core/lib/i18n/locales/ta.json @@ -815,18 +815,6 @@ "lighthouse-core/audits/offline-start-url.js | warningCantStart": { "message": "மெனிஃபெஸ்ட்டில் இருந்து `start_url`ஐ Lighthouseஸால் படிக்க முடியவில்லை. இதனால் `start_url` இந்த ஆவணத்தின் URL ஆகக் கருதப்பட்டது. பிழைச் செய்தி: '{manifestWarning}'." }, - "lighthouse-core/audits/performance-budget.js | columnOverBudget": { - "message": "பட்ஜெட்டைத் தாண்டிவிட்டது" - }, - "lighthouse-core/audits/performance-budget.js | description": { - "message": "நெட்வொர்க் கோரிக்கைகளின் அளவையும் எண்ணிக்கையையும் செயல்திறன் பட்ஜெட் அமைத்துள்ள இலக்கீடுகளுக்குள் வைத்திருக்கவும். [மேலும் அறிக](https://developers.google.com/web/tools/lighthouse/audits/budgets)." - }, - "lighthouse-core/audits/performance-budget.js | requestCountOverBudget": { - "message": "{count,plural, =1{1 கோரிக்கை}other{# கோரிக்கைகள்}}" - }, - "lighthouse-core/audits/performance-budget.js | title": { - "message": "செயல்திறன் பட்ஜெட்" - }, "lighthouse-core/audits/redirects-http.js | description": { "message": "HTTPSஐ ஏற்கனவே நீங்கள் அமைத்திருந்தால் உங்களின் அனைத்துப் பயனர்களுக்கும் பாதுகாப்பான இணைய அம்சங்களைச் செயல்படுத்தும் வகையில் எல்லா HTTP ட்ராஃபிக்கையும் HTTPSக்குத் திசைதிருப்பவும். [மேலும் அறிக](https://web.dev/redirects-http)." }, diff --git a/lighthouse-core/lib/i18n/locales/te.json b/lighthouse-core/lib/i18n/locales/te.json index 8f1584c1f732..5c56782a82ff 100644 --- a/lighthouse-core/lib/i18n/locales/te.json +++ b/lighthouse-core/lib/i18n/locales/te.json @@ -815,18 +815,6 @@ "lighthouse-core/audits/offline-start-url.js | warningCantStart": { "message": "మానిఫెస్ట్ నుండి '`start_url`'ను Lighthouse చదవలేకపోయింది. దీని ఫలితంగా, '`start_url`' అన్నది పత్రం యొక్క URLగా పరిగణించబడింది. ఎర్రర్ సందేశం: '{manifestWarning}'." }, - "lighthouse-core/audits/performance-budget.js | columnOverBudget": { - "message": "బడ్జెట్ దాటిపోయింది" - }, - "lighthouse-core/audits/performance-budget.js | description": { - "message": "నెట్‌వర్క్ అభ్యర్థనల సంఖ్య, పరిమాణాన్ని అందించబడిన పనితీరు బడ్జెట్ ప్రకారం నిర్దేశించిన లక్ష్యాల కంటే తక్కువకు ఉంచండి. [మరింత తెలుసుకోండి](https://developers.google.com/web/tools/lighthouse/audits/budgets)." - }, - "lighthouse-core/audits/performance-budget.js | requestCountOverBudget": { - "message": "{count,plural, =1{1 అభ్యర్థన}other{# అభ్యర్థనలు}}" - }, - "lighthouse-core/audits/performance-budget.js | title": { - "message": "పనితీరు బడ్జెట్" - }, "lighthouse-core/audits/redirects-http.js | description": { "message": "మీరు ఇప్పటికే 'HTTPS' సెటప్ చేసుకుని ఉంటే, మొత్తం 'HTTP' ట్రాఫిక్‌ను 'HTTPS'కు మళ్లించేలా జాగ్రత్త తీసుకోవడం ద్వారా మీ వినియోగదారులందరికీ సురక్షితమైన వెబ్ ఫీచర్‌లను అందించండి. [మరింత తెలుసుకోండి](https://web.dev/redirects-http)." }, diff --git a/lighthouse-core/lib/i18n/locales/th.json b/lighthouse-core/lib/i18n/locales/th.json index ff82a1c31212..cedbf77abdcf 100644 --- a/lighthouse-core/lib/i18n/locales/th.json +++ b/lighthouse-core/lib/i18n/locales/th.json @@ -815,18 +815,6 @@ "lighthouse-core/audits/offline-start-url.js | warningCantStart": { "message": "Lighthouse อ่าน `start_url` จากไฟล์ Manifest ไม่ได้ ด้วยเหตุนี้ ระบบจึงสันนิษฐานว่า `start_url` เป็น URL ของเอกสาร ข้อความแสดงข้อผิดพลาด: \"{manifestWarning}\"" }, - "lighthouse-core/audits/performance-budget.js | columnOverBudget": { - "message": "เกินงบประมาณ" - }, - "lighthouse-core/audits/performance-budget.js | description": { - "message": "ควบคุมให้จำนวนและขนาดของคำขอเครือข่ายอยู่ภายในเป้าหมายที่กำหนดตามงบประมาณประสิทธิภาพที่ให้มา [ดูข้อมูลเพิ่มเติม](https://developers.google.com/web/tools/lighthouse/audits/budgets)" - }, - "lighthouse-core/audits/performance-budget.js | requestCountOverBudget": { - "message": "{count,plural, =1{1 คำขอ}other{# คำขอ}}" - }, - "lighthouse-core/audits/performance-budget.js | title": { - "message": "งบประมาณประสิทธิภาพ" - }, "lighthouse-core/audits/redirects-http.js | description": { "message": "หากคุณตั้งค่า HTTPS ไว้แล้ว ให้ตรวจสอบว่าได้เปลี่ยนเส้นทางการเข้าชมผ่าน HTTP ทั้งหมดไปยัง HTTPS เพื่อให้ผู้ใช้ทุกคนใช้ฟีเจอร์เว็บที่ปลอดภัยได้ [ดูข้อมูลเพิ่มเติม](https://web.dev/redirects-http)" }, diff --git a/lighthouse-core/lib/i18n/locales/tr.json b/lighthouse-core/lib/i18n/locales/tr.json index 6a092c592e7b..3d28d1e7f2de 100644 --- a/lighthouse-core/lib/i18n/locales/tr.json +++ b/lighthouse-core/lib/i18n/locales/tr.json @@ -815,18 +815,6 @@ "lighthouse-core/audits/offline-start-url.js | warningCantStart": { "message": "Lighthouse, manifest dosyasından `start_url` öğesini okuyamadı. Bu yüzden `start_url` dokümanın URL'si olarak kabul edildi. Hata mesajı: \"{manifestWarning}\"." }, - "lighthouse-core/audits/performance-budget.js | columnOverBudget": { - "message": "Bütçe Aşımı" - }, - "lighthouse-core/audits/performance-budget.js | description": { - "message": "Ağ isteklerinin miktarını ve büyüklüğünü, performans bütçesi tarafından belirlenen hedeflerin altında tutun. [Daha fazla bilgi](https://developers.google.com/web/tools/lighthouse/audits/budgets)." - }, - "lighthouse-core/audits/performance-budget.js | requestCountOverBudget": { - "message": "{count,plural, =1{1 istek}other{# istek}}" - }, - "lighthouse-core/audits/performance-budget.js | title": { - "message": "Performans bütçesi" - }, "lighthouse-core/audits/redirects-http.js | description": { "message": "Zaten HTTPS kurduysanız kullanıcılarınıza güvenli web özellikleri sağlayabilmek için tüm HTTP trafiğini HTTPS'ye yönlendirdiğinizden emin olun. [Daha fazla bilgi](https://web.dev/redirects-http)." }, diff --git a/lighthouse-core/lib/i18n/locales/uk.json b/lighthouse-core/lib/i18n/locales/uk.json index 85b40c5d07b8..99ed368674f9 100644 --- a/lighthouse-core/lib/i18n/locales/uk.json +++ b/lighthouse-core/lib/i18n/locales/uk.json @@ -815,18 +815,6 @@ "lighthouse-core/audits/offline-start-url.js | warningCantStart": { "message": "Lighthouse не може прочитати `start_url` з маніфесту. Через це `start_url` вважається URL-адресою документа. Повідомлення про помилку: \"{manifestWarning}\"." }, - "lighthouse-core/audits/performance-budget.js | columnOverBudget": { - "message": "Перевищення бюджету" - }, - "lighthouse-core/audits/performance-budget.js | description": { - "message": "Стежте, щоб кількість і розмір мережевих запитів не перевищували цільових значень, указаних у бюджеті ефективності. [Докладніше](https://developers.google.com/web/tools/lighthouse/audits/budgets)." - }, - "lighthouse-core/audits/performance-budget.js | requestCountOverBudget": { - "message": "{count,plural, =1{1 запит}one{# запит}few{# запити}many{# запитів}other{# запиту}}" - }, - "lighthouse-core/audits/performance-budget.js | title": { - "message": "Бюджет ефективності" - }, "lighthouse-core/audits/redirects-http.js | description": { "message": "Якщо ви вже налаштували HTTPS, переконайтеся, що весь трафік HTTP переспрямовується на HTTPS, щоб увімкнути безпечні веб-функції для всіх користувачів. [Докладніше](https://web.dev/redirects-http)." }, diff --git a/lighthouse-core/lib/i18n/locales/vi.json b/lighthouse-core/lib/i18n/locales/vi.json index 8e97d82ee92a..a5f077b82e0f 100644 --- a/lighthouse-core/lib/i18n/locales/vi.json +++ b/lighthouse-core/lib/i18n/locales/vi.json @@ -815,18 +815,6 @@ "lighthouse-core/audits/offline-start-url.js | warningCantStart": { "message": "Lighthouse không đọc được `start_url` trong tệp kê khai. Do đó, `start_url` được giả định là URL của tài liệu. Thông báo lỗi: '{manifestWarning}'." }, - "lighthouse-core/audits/performance-budget.js | columnOverBudget": { - "message": "Vượt ngân sách" - }, - "lighthouse-core/audits/performance-budget.js | description": { - "message": "Đảm bảo số lượng và quy mô của yêu cầu mạng thấp hơn mục tiêu đặt ra của ngân sách hiệu suất đã cung cấp. [Tìm hiểu thêm](https://developers.google.com/web/tools/lighthouse/audits/budgets)." - }, - "lighthouse-core/audits/performance-budget.js | requestCountOverBudget": { - "message": "{count,plural, =1{1 yêu cầu}other{# yêu cầu}}" - }, - "lighthouse-core/audits/performance-budget.js | title": { - "message": "Ngân sách hiệu suất" - }, "lighthouse-core/audits/redirects-http.js | description": { "message": "Nếu bạn thiết lập HTTPS từ trước, hãy nhớ chuyển hướng toàn bộ lưu lượng truy cập HTTP tới HTTPS để bật các tính năng web an toàn cho tất cả người dùng. [Tìm hiểu thêm](https://web.dev/redirects-http)" }, diff --git a/lighthouse-core/lib/i18n/locales/zh-HK.json b/lighthouse-core/lib/i18n/locales/zh-HK.json index 5f3faa58c030..cf2539ee8d34 100644 --- a/lighthouse-core/lib/i18n/locales/zh-HK.json +++ b/lighthouse-core/lib/i18n/locales/zh-HK.json @@ -815,18 +815,6 @@ "lighthouse-core/audits/offline-start-url.js | warningCantStart": { "message": "Lighthouse 無法從資訊清單中讀取 `start_url`,因此將 `start_url` 假設為文件的網址。錯誤訊息:「{manifestWarning}」。" }, - "lighthouse-core/audits/performance-budget.js | columnOverBudget": { - "message": "超出預算" - }, - "lighthouse-core/audits/performance-budget.js | description": { - "message": "讓網絡要求的數量和大小低於使用者根據效能預算所設定的目標。[瞭解詳情](https://developers.google.com/web/tools/lighthouse/audits/budgets)。" - }, - "lighthouse-core/audits/performance-budget.js | requestCountOverBudget": { - "message": "{count,plural, =1{1 個要求}other{# 個要求}}" - }, - "lighthouse-core/audits/performance-budget.js | title": { - "message": "效能預算" - }, "lighthouse-core/audits/redirects-http.js | description": { "message": "如果您已設定 HTTPS,請確認是否已將所有 HTTP 流量重新導向至 HTTPS,以便為所有使用者提供安全的網絡功能。[瞭解詳情](https://web.dev/redirects-http)。" }, diff --git a/lighthouse-core/lib/i18n/locales/zh-TW.json b/lighthouse-core/lib/i18n/locales/zh-TW.json index 357b6dfe0df5..4f8663fd0bf2 100644 --- a/lighthouse-core/lib/i18n/locales/zh-TW.json +++ b/lighthouse-core/lib/i18n/locales/zh-TW.json @@ -815,18 +815,6 @@ "lighthouse-core/audits/offline-start-url.js | warningCantStart": { "message": "Lighthouse 無法從資訊清單中讀取 `start_url`,因此將 `start_url` 假設為文件的網址。錯誤訊息:「{manifestWarning}」。" }, - "lighthouse-core/audits/performance-budget.js | columnOverBudget": { - "message": "超過預算" - }, - "lighthouse-core/audits/performance-budget.js | description": { - "message": "讓網路要求的數量和大小低於使用者根據效能預算所設定的目標。[瞭解詳情](https://developers.google.com/web/tools/lighthouse/audits/budgets)。" - }, - "lighthouse-core/audits/performance-budget.js | requestCountOverBudget": { - "message": "{count,plural, =1{1 個要求}other{# 個要求}}" - }, - "lighthouse-core/audits/performance-budget.js | title": { - "message": "效能預算" - }, "lighthouse-core/audits/redirects-http.js | description": { "message": "如果你已設定 HTTPS,請確認是否已將所有 HTTP 流量都重新導向至 HTTPS,以便為所有使用者提供安全的網路功能。[瞭解詳情](https://web.dev/redirects-http)。" }, diff --git a/lighthouse-core/lib/i18n/locales/zh.json b/lighthouse-core/lib/i18n/locales/zh.json index dbaa063434c8..567c206b46bc 100644 --- a/lighthouse-core/lib/i18n/locales/zh.json +++ b/lighthouse-core/lib/i18n/locales/zh.json @@ -815,18 +815,6 @@ "lighthouse-core/audits/offline-start-url.js | warningCantStart": { "message": "Lighthouse 无法从清单读取 `start_url`。因此,系统已将 `start_url` 视为该文档的网址。错误消息:“{manifestWarning}”。" }, - "lighthouse-core/audits/performance-budget.js | columnOverBudget": { - "message": "超出预算" - }, - "lighthouse-core/audits/performance-budget.js | description": { - "message": "请将网络请求的数量和数据大小保持在提供的性能预算所设定的目标之内。[了解详情](https://developers.google.com/web/tools/lighthouse/audits/budgets)。" - }, - "lighthouse-core/audits/performance-budget.js | requestCountOverBudget": { - "message": "{count,plural, =1{1 条请求}other{# 条请求}}" - }, - "lighthouse-core/audits/performance-budget.js | title": { - "message": "性能预算" - }, "lighthouse-core/audits/redirects-http.js | description": { "message": "如果您已设置 HTTPS,请确保将所有 HTTP 流量重定向到 HTTPS,以便让所有用户都能使用安全的网络功能。[了解详情](https://web.dev/redirects-http)。" }, diff --git a/lighthouse-core/report/html/renderer/performance-category-renderer.js b/lighthouse-core/report/html/renderer/performance-category-renderer.js index 51e2b630143e..0cfff87cb33a 100644 --- a/lighthouse-core/report/html/renderer/performance-category-renderer.js +++ b/lighthouse-core/report/html/renderer/performance-category-renderer.js @@ -166,7 +166,7 @@ class PerformanceCategoryRenderer extends CategoryRenderer { } // Budgets - const budgetAudit = category.auditRefs.find(audit => audit.id === 'performance-budget'); + const budgetAudit = category.auditRefs.find(audit => audit.id === 'resource-budget'); if (budgetAudit && budgetAudit.result.details) { const table = this.detailsRenderer.render(budgetAudit.result.details); if (table) { diff --git a/lighthouse-core/test/audits/performance-budget-test.js b/lighthouse-core/test/audits/resource-budget-test.js similarity index 98% rename from lighthouse-core/test/audits/performance-budget-test.js rename to lighthouse-core/test/audits/resource-budget-test.js index 4d2bf4c878f3..8a2021f6e60a 100644 --- a/lighthouse-core/test/audits/performance-budget-test.js +++ b/lighthouse-core/test/audits/resource-budget-test.js @@ -5,7 +5,7 @@ */ 'use strict'; -const ResourceBudgetAudit = require('../../audits/performance-budget.js'); +const ResourceBudgetAudit = require('../../audits/resource-budget.js'); const networkRecordsToDevtoolsLog = require('../network-records-to-devtools-log.js'); /* eslint-env jest */ diff --git a/lighthouse-core/test/report/html/renderer/performance-category-renderer-test.js b/lighthouse-core/test/report/html/renderer/performance-category-renderer-test.js index 7078d1e6cb67..447090a1e5d3 100644 --- a/lighthouse-core/test/report/html/renderer/performance-category-renderer-test.js +++ b/lighthouse-core/test/report/html/renderer/performance-category-renderer-test.js @@ -163,7 +163,7 @@ describe('PerfCategoryRenderer', () => { const passedSection = categoryDOM.querySelector('.lh-category > .lh-clump--passed'); const passedAudits = category.auditRefs.filter(audit => - audit.group && audit.group !== 'metrics' && audit.id !== 'performance-budget' + audit.group && audit.group !== 'metrics' && audit.id !== 'resource-budget' && Util.showAsPassed(audit.result)); const passedElements = passedSection.querySelectorAll('.lh-audit'); assert.equal(passedElements.length, passedAudits.length); @@ -198,17 +198,17 @@ describe('PerfCategoryRenderer', () => { const header = budgetsGroup.querySelector('.lh-audit-group__header'); assert.ok(header); - const budgetTable = budgetsGroup.querySelector('#performance-budget.lh-table'); + const budgetTable = budgetsGroup.querySelector('#resource-budget.lh-table'); assert.ok(budgetTable); - const lhrBudgetEntries = sampleResults.audits['performance-budget'].details.items; + const lhrBudgetEntries = sampleResults.audits['resource-budget'].details.items; const tableRows = budgetTable.querySelectorAll('tbody > tr'); assert.strictEqual(tableRows.length, lhrBudgetEntries.length); }); - it('does not render a budget table when performance-budget audit is notApplicable', () => { + it('does not render a budget table when resource-budget audit is notApplicable', () => { const budgetlessCategory = JSON.parse(JSON.stringify(category)); - const budgetRef = budgetlessCategory.auditRefs.find(a => a.id === 'performance-budget'); + const budgetRef = budgetlessCategory.auditRefs.find(a => a.id === 'resource-budget'); budgetRef.result.scoreDisplayMode = 'notApplicable'; delete budgetRef.result.details; diff --git a/lighthouse-core/test/report/html/renderer/report-renderer-test.js b/lighthouse-core/test/report/html/renderer/report-renderer-test.js index 821e65aa4c03..f10e8c2de079 100644 --- a/lighthouse-core/test/report/html/renderer/report-renderer-test.js +++ b/lighthouse-core/test/report/html/renderer/report-renderer-test.js @@ -237,8 +237,8 @@ describe('ReportRenderer', () => { let notApplicableCount = 0; Object.values(clonedSampleResult.audits).forEach(audit => { - // The performance-budget audit is omitted from the DOM when it is not applicable - if (audit.scoreDisplayMode === 'notApplicable' && audit.id !== 'performance-budget') { + // The resource-budget audit is omitted from the DOM when it is not applicable + if (audit.scoreDisplayMode === 'notApplicable' && audit.id !== 'resource-budget') { notApplicableCount++; audit.scoreDisplayMode = 'not_applicable'; } diff --git a/lighthouse-core/test/results/sample_v2.json b/lighthouse-core/test/results/sample_v2.json index c46178d4ceee..872cfc3eaa60 100644 --- a/lighthouse-core/test/results/sample_v2.json +++ b/lighthouse-core/test/results/sample_v2.json @@ -1295,9 +1295,9 @@ "explanation": "No usable web app manifest found on page.", "warnings": [] }, - "performance-budget": { - "id": "performance-budget", - "title": "Performance budget", + "resource-budget": { + "id": "resource-budget", + "title": "Resource budget", "description": "Keep the quantity and size of network requests under the targets set by the provided performance budget. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/budgets).", "score": null, "scoreDisplayMode": "informative", @@ -3612,7 +3612,7 @@ "group": "diagnostics" }, { - "id": "performance-budget", + "id": "resource-budget", "weight": 0, "group": "budgets" }, @@ -4671,7 +4671,7 @@ }, { "startTime": 0, - "name": "lh:audit:performance-budget", + "name": "lh:audit:resource-budget", "duration": 100, "entryType": "measure" }, @@ -5650,93 +5650,93 @@ "lighthouse-core/audits/offline-start-url.js | description": [ "audits[offline-start-url].description" ], - "lighthouse-core/audits/performance-budget.js | title": [ - "audits[performance-budget].title" + "lighthouse-core/audits/resource-budget.js | title": [ + "audits[resource-budget].title" ], - "lighthouse-core/audits/performance-budget.js | description": [ - "audits[performance-budget].description" + "lighthouse-core/audits/resource-budget.js | description": [ + "audits[resource-budget].description" ], "lighthouse-core/lib/i18n/i18n.js | columnResourceType": [ - "audits[performance-budget].details.headings[0].text", + "audits[resource-budget].details.headings[0].text", "audits[resource-summary].details.headings[0].text" ], "lighthouse-core/lib/i18n/i18n.js | columnRequests": [ - "audits[performance-budget].details.headings[1].text", + "audits[resource-budget].details.headings[1].text", "audits[resource-summary].details.headings[1].text" ], "lighthouse-core/lib/i18n/i18n.js | columnTransferSize": [ - "audits[performance-budget].details.headings[2].text", + "audits[resource-budget].details.headings[2].text", "audits[resource-summary].details.headings[2].text" ], - "lighthouse-core/audits/performance-budget.js | columnOverBudget": [ - "audits[performance-budget].details.headings[4].text" + "lighthouse-core/audits/resource-budget.js | columnOverBudget": [ + "audits[resource-budget].details.headings[4].text" ], "lighthouse-core/lib/i18n/i18n.js | scriptResourceType": [ - "audits[performance-budget].details.items[0].label", + "audits[resource-budget].details.items[0].label", "audits[resource-summary].details.items[1].label" ], - "lighthouse-core/audits/performance-budget.js | requestCountOverBudget": [ + "lighthouse-core/audits/resource-budget.js | requestCountOverBudget": [ { "values": { "count": 2 }, - "path": "audits[performance-budget].details.items[0].countOverBudget" + "path": "audits[resource-budget].details.items[0].countOverBudget" }, { "values": { "count": 8 }, - "path": "audits[performance-budget].details.items[1].countOverBudget" + "path": "audits[resource-budget].details.items[1].countOverBudget" }, { "values": { "count": 1 }, - "path": "audits[performance-budget].details.items[3].countOverBudget" + "path": "audits[resource-budget].details.items[3].countOverBudget" }, { "values": { "count": 5 }, - "path": "audits[performance-budget].details.items[4].countOverBudget" + "path": "audits[resource-budget].details.items[4].countOverBudget" }, { "values": { "count": 2 }, - "path": "audits[performance-budget].details.items[8].countOverBudget" + "path": "audits[resource-budget].details.items[8].countOverBudget" } ], "lighthouse-core/lib/i18n/i18n.js | totalResourceType": [ - "audits[performance-budget].details.items[1].label", + "audits[resource-budget].details.items[1].label", "audits[resource-summary].details.items[0].label" ], "lighthouse-core/lib/i18n/i18n.js | otherResourceType": [ - "audits[performance-budget].details.items[2].label", + "audits[resource-budget].details.items[2].label", "audits[resource-summary].details.items[4].label" ], "lighthouse-core/lib/i18n/i18n.js | thirdPartyResourceType": [ - "audits[performance-budget].details.items[3].label", + "audits[resource-budget].details.items[3].label", "audits[resource-summary].details.items[8].label" ], "lighthouse-core/lib/i18n/i18n.js | stylesheetResourceType": [ - "audits[performance-budget].details.items[4].label", + "audits[resource-budget].details.items[4].label", "audits[resource-summary].details.items[5].label" ], "lighthouse-core/lib/i18n/i18n.js | imageResourceType": [ - "audits[performance-budget].details.items[5].label", + "audits[resource-budget].details.items[5].label", "audits[resource-summary].details.items[2].label" ], "lighthouse-core/lib/i18n/i18n.js | mediaResourceType": [ - "audits[performance-budget].details.items[6].label", + "audits[resource-budget].details.items[6].label", "audits[resource-summary].details.items[6].label" ], "lighthouse-core/lib/i18n/i18n.js | fontResourceType": [ - "audits[performance-budget].details.items[7].label", + "audits[resource-budget].details.items[7].label", "audits[resource-summary].details.items[7].label" ], "lighthouse-core/lib/i18n/i18n.js | documentResourceType": [ - "audits[performance-budget].details.items[8].label", + "audits[resource-budget].details.items[8].label", "audits[resource-summary].details.items[3].label" ], "lighthouse-core/audits/resource-summary.js | title": [ diff --git a/proto/sample_v2_round_trip.json b/proto/sample_v2_round_trip.json index a54e99e57091..5b59f62ed09e 100644 --- a/proto/sample_v2_round_trip.json +++ b/proto/sample_v2_round_trip.json @@ -2139,108 +2139,6 @@ "scoreDisplayMode": "binary", "title": "Prevents users to paste into password fields" }, - "performance-budget": { - "description": "Keep the quantity and size of network requests under the targets set by the provided performance budget. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/budgets).", - "details": { - "headings": [ - { - "itemType": "text", - "key": "label", - "text": "Resource Type" - }, - { - "itemType": "numeric", - "key": "requestCount", - "text": "Requests" - }, - { - "itemType": "bytes", - "key": "size", - "text": "Transfer Size" - }, - { - "itemType": "text", - "key": "countOverBudget" - }, - { - "itemType": "bytes", - "key": "sizeOverBudget", - "text": "Over Budget" - } - ], - "items": [ - { - "countOverBudget": "2 requests", - "label": "Script", - "requestCount": 4.0, - "resourceType": "script", - "size": 103675.0, - "sizeOverBudget": 72955.0 - }, - { - "countOverBudget": "8 requests", - "label": "Total", - "requestCount": 18.0, - "resourceType": "total", - "size": 160738.0, - "sizeOverBudget": 58338.0 - }, - { - "label": "Other", - "requestCount": 2.0, - "resourceType": "other", - "size": 12861.0, - "sizeOverBudget": 7741.0 - }, - { - "countOverBudget": "1 request", - "label": "Third-party", - "requestCount": 2.0, - "resourceType": "third-party", - "size": 30174.0, - "sizeOverBudget": 4574.0 - }, - { - "countOverBudget": "5 requests", - "label": "Stylesheet", - "requestCount": 7.0, - "resourceType": "stylesheet", - "size": 5352.0, - "sizeOverBudget": 232.0 - }, - { - "label": "Image", - "requestCount": 2.0, - "resourceType": "image", - "size": 24741.0 - }, - { - "label": "Media", - "requestCount": 0.0, - "resourceType": "media", - "size": 0.0 - }, - { - "label": "Font", - "requestCount": 0.0, - "resourceType": "font", - "size": 0.0 - }, - { - "countOverBudget": "2 requests", - "label": "Document", - "requestCount": 3.0, - "resourceType": "document", - "size": 14109.0 - } - ], - "type": "table" - }, - "id": "performance-budget", - "score": null, - "scoreDisplayMode": "informative", - "title": "Performance budget" - }, "plugins": { "description": "Search engines can't index plugin content, and many devices restrict plugins or don't support them. [Learn more](https://web.dev/plugins).", "details": { @@ -2352,6 +2250,108 @@ "scoreDisplayMode": "numeric", "title": "Eliminate render-blocking resources" }, + "resource-budget": { + "description": "Keep the quantity and size of network requests under the targets set by the provided performance budget. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/budgets).", + "details": { + "headings": [ + { + "itemType": "text", + "key": "label", + "text": "Resource Type" + }, + { + "itemType": "numeric", + "key": "requestCount", + "text": "Requests" + }, + { + "itemType": "bytes", + "key": "size", + "text": "Transfer Size" + }, + { + "itemType": "text", + "key": "countOverBudget" + }, + { + "itemType": "bytes", + "key": "sizeOverBudget", + "text": "Over Budget" + } + ], + "items": [ + { + "countOverBudget": "2 requests", + "label": "Script", + "requestCount": 4.0, + "resourceType": "script", + "size": 103675.0, + "sizeOverBudget": 72955.0 + }, + { + "countOverBudget": "8 requests", + "label": "Total", + "requestCount": 18.0, + "resourceType": "total", + "size": 160738.0, + "sizeOverBudget": 58338.0 + }, + { + "label": "Other", + "requestCount": 2.0, + "resourceType": "other", + "size": 12861.0, + "sizeOverBudget": 7741.0 + }, + { + "countOverBudget": "1 request", + "label": "Third-party", + "requestCount": 2.0, + "resourceType": "third-party", + "size": 30174.0, + "sizeOverBudget": 4574.0 + }, + { + "countOverBudget": "5 requests", + "label": "Stylesheet", + "requestCount": 7.0, + "resourceType": "stylesheet", + "size": 5352.0, + "sizeOverBudget": 232.0 + }, + { + "label": "Image", + "requestCount": 2.0, + "resourceType": "image", + "size": 24741.0 + }, + { + "label": "Media", + "requestCount": 0.0, + "resourceType": "media", + "size": 0.0 + }, + { + "label": "Font", + "requestCount": 0.0, + "resourceType": "font", + "size": 0.0 + }, + { + "countOverBudget": "2 requests", + "label": "Document", + "requestCount": 3.0, + "resourceType": "document", + "size": 14109.0 + } + ], + "type": "table" + }, + "id": "resource-budget", + "score": null, + "scoreDisplayMode": "informative", + "title": "Resource budget" + }, "resource-summary": { "description": "To set budgets for the quantity and size of page resources, add a budget.json file. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/budgets).", "details": { @@ -3777,7 +3777,7 @@ }, { "group": "budgets", - "id": "performance-budget", + "id": "resource-budget", "weight": 0.0 }, { @@ -4573,7 +4573,7 @@ { "duration": 100.0, "entryType": "measure", - "name": "lh:audit:performance-budget", + "name": "lh:audit:resource-budget", "startTime": 0.0 }, { From 9f3e78578935ecc5d4fec8795a8991a74d7a900e Mon Sep 17 00:00:00 2001 From: Katie Hempenius Date: Thu, 31 Oct 2019 17:16:09 -0400 Subject: [PATCH 2/2] Include perf-budget audit, but in deprecated state --- .../test/cli/__snapshots__/index-test.js.snap | 8 + lighthouse-core/config/default-config.js | 2 + lighthouse-core/lib/i18n/locales/en-US.json | 12 + lighthouse-core/lib/i18n/locales/en-XL.json | 12 + .../renderer/performance-category-renderer.js | 5 +- .../scripts/i18n/collect-strings.js | 2 +- .../test/audits/performance-budget-test.js | 218 ++++++++++++++++++ .../performance-category-renderer-test.js | 17 +- .../html/renderer/report-renderer-test.js | 5 +- lighthouse-core/test/results/sample_v2.json | 170 ++++++++++++++ proto/sample_v2_round_trip.json | 116 ++++++++++ 11 files changed, 559 insertions(+), 8 deletions(-) create mode 100644 lighthouse-core/test/audits/performance-budget-test.js diff --git a/lighthouse-cli/test/cli/__snapshots__/index-test.js.snap b/lighthouse-cli/test/cli/__snapshots__/index-test.js.snap index b8c5811cf52e..231987238486 100644 --- a/lighthouse-cli/test/cli/__snapshots__/index-test.js.snap +++ b/lighthouse-cli/test/cli/__snapshots__/index-test.js.snap @@ -129,6 +129,9 @@ Object { Object { "path": "resource-budget", }, + Object { + "path": "performance-budget", + }, Object { "path": "resource-summary", }, @@ -879,6 +882,11 @@ Object { "id": "font-display", "weight": 0, }, + Object { + "group": "budgets", + "id": "performance-budget", + "weight": 0, + }, Object { "group": "budgets", "id": "resource-budget", diff --git a/lighthouse-core/config/default-config.js b/lighthouse-core/config/default-config.js index 50f6bf40b35b..c5b474100aa0 100644 --- a/lighthouse-core/config/default-config.js +++ b/lighthouse-core/config/default-config.js @@ -211,6 +211,7 @@ const defaultConfig = { 'metrics', 'offline-start-url', 'resource-budget', + 'performance-budget', 'resource-summary', 'third-party-summary', 'manual/pwa-cross-browser', @@ -409,6 +410,7 @@ const defaultConfig = { {id: 'bootup-time', weight: 0, group: 'diagnostics'}, {id: 'mainthread-work-breakdown', weight: 0, group: 'diagnostics'}, {id: 'font-display', weight: 0, group: 'diagnostics'}, + {id: 'performance-budget', weight: 0, group: 'budgets'}, {id: 'resource-budget', weight: 0, group: 'budgets'}, {id: 'resource-summary', weight: 0, group: 'diagnostics'}, {id: 'third-party-summary', weight: 0, group: 'diagnostics'}, diff --git a/lighthouse-core/lib/i18n/locales/en-US.json b/lighthouse-core/lib/i18n/locales/en-US.json index 40e270d320ef..0dd57901672c 100644 --- a/lighthouse-core/lib/i18n/locales/en-US.json +++ b/lighthouse-core/lib/i18n/locales/en-US.json @@ -887,6 +887,18 @@ "lighthouse-core/audits/offline-start-url.js | warningCantStart": { "message": "Lighthouse couldn't read the `start_url` from the manifest. As a result, the `start_url` was assumed to be the document's URL. Error message: '{manifestWarning}'." }, + "lighthouse-core/audits/performance-budget.js | columnOverBudget": { + "message": "Over Budget" + }, + "lighthouse-core/audits/performance-budget.js | description": { + "message": "Keep the quantity and size of network requests under the targets set by the provided performance budget. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/budgets)." + }, + "lighthouse-core/audits/performance-budget.js | requestCountOverBudget": { + "message": "{count, plural,\n =1 {1 request}\n other {# requests}\n }" + }, + "lighthouse-core/audits/performance-budget.js | title": { + "message": "Performance budget" + }, "lighthouse-core/audits/redirects-http.js | description": { "message": "If you've already set up HTTPS, make sure that you redirect all HTTP traffic to HTTPS in order to enable secure web features for all your users. [Learn more](https://web.dev/redirects-http)." }, diff --git a/lighthouse-core/lib/i18n/locales/en-XL.json b/lighthouse-core/lib/i18n/locales/en-XL.json index 58d40e0cb6ba..bb9a702c3dfa 100644 --- a/lighthouse-core/lib/i18n/locales/en-XL.json +++ b/lighthouse-core/lib/i18n/locales/en-XL.json @@ -887,6 +887,18 @@ "lighthouse-core/audits/offline-start-url.js | warningCantStart": { "message": "L̂íĝh́t̂h́ôúŝé ĉóûĺd̂ń't̂ ŕêád̂ t́ĥé `start_url` f̂ŕôḿ t̂h́ê ḿâńîf́êśt̂. Áŝ á r̂éŝúl̂t́, t̂h́ê `start_url` ẃâś âśŝúm̂éd̂ t́ô b́ê t́ĥé d̂óĉúm̂én̂t́'ŝ ÚR̂Ĺ. Êŕr̂ór̂ ḿêśŝáĝé: '{manifestWarning}'." }, + "lighthouse-core/audits/performance-budget.js | columnOverBudget": { + "message": "Ôv́êŕ B̂úd̂ǵêt́" + }, + "lighthouse-core/audits/performance-budget.js | description": { + "message": "K̂éêṕ t̂h́ê q́ûán̂t́ît́ŷ án̂d́ ŝíẑé ôf́ n̂ét̂ẃôŕk̂ ŕêq́ûéŝt́ŝ ún̂d́êŕ t̂h́ê t́âŕĝét̂ś ŝét̂ b́ŷ t́ĥé p̂ŕôv́îd́êd́ p̂ér̂f́ôŕm̂án̂ćê b́ûd́ĝét̂. [Ĺêár̂ń m̂ór̂é](https://developers.google.com/web/tools/lighthouse/audits/budgets)." + }, + "lighthouse-core/audits/performance-budget.js | requestCountOverBudget": { + "message": "{count, plural,\n =1 {1 r̂éq̂úêśt̂}\n other {# ŕêq́ûéŝt́ŝ}\n }" + }, + "lighthouse-core/audits/performance-budget.js | title": { + "message": "P̂ér̂f́ôŕm̂án̂ćê b́ûd́ĝét̂" + }, "lighthouse-core/audits/redirects-http.js | description": { "message": "Îf́ ŷóû'v́ê ál̂ŕêád̂ý ŝét̂ úp̂ H́T̂T́P̂Ś, m̂ák̂é ŝúr̂é t̂h́ât́ ŷóû ŕêd́îŕêćt̂ ál̂ĺ ĤT́T̂Ṕ t̂ŕâf́f̂íĉ t́ô H́T̂T́P̂Ś îń ôŕd̂ér̂ t́ô én̂áb̂ĺê śêćûŕê ẃêb́ f̂éât́ûŕêś f̂ór̂ ál̂ĺ ŷóûŕ ûśêŕŝ. [Ĺêár̂ń m̂ór̂é](https://web.dev/redirects-http)." }, diff --git a/lighthouse-core/report/html/renderer/performance-category-renderer.js b/lighthouse-core/report/html/renderer/performance-category-renderer.js index 0cfff87cb33a..1669e3857212 100644 --- a/lighthouse-core/report/html/renderer/performance-category-renderer.js +++ b/lighthouse-core/report/html/renderer/performance-category-renderer.js @@ -166,7 +166,10 @@ class PerformanceCategoryRenderer extends CategoryRenderer { } // Budgets - const budgetAudit = category.auditRefs.find(audit => audit.id === 'resource-budget'); + // The 'performance-budget' audit is a fallback for the 'resource-budget' audit. + // The 'resource-budget' audit will ultimately replace the 'performance-budget' audit. + const budgetAudit = category.auditRefs.find(audit => audit.id === 'resource-budget') || + category.auditRefs.find(audit => audit.id === 'performance-budget'); if (budgetAudit && budgetAudit.result.details) { const table = this.detailsRenderer.render(budgetAudit.result.details); if (table) { diff --git a/lighthouse-core/scripts/i18n/collect-strings.js b/lighthouse-core/scripts/i18n/collect-strings.js index efa89284e62f..a47b39569921 100644 --- a/lighthouse-core/scripts/i18n/collect-strings.js +++ b/lighthouse-core/scripts/i18n/collect-strings.js @@ -565,7 +565,7 @@ if (require.main === module) { console.log('Collected from Stack Packs!'); if ((collisions) > 0) { - assert.equal(collisions, 15, 'The number of duplicate strings have changed, update this assertion if that is expected, or reword strings.'); + assert.equal(collisions, 21, 'The number of duplicate strings have changed, update this assertion if that is expected, or reword strings.'); console.log(`MEANING COLLISION: ${collisions} string(s) have the same content.`); } diff --git a/lighthouse-core/test/audits/performance-budget-test.js b/lighthouse-core/test/audits/performance-budget-test.js new file mode 100644 index 000000000000..cbd5244c38aa --- /dev/null +++ b/lighthouse-core/test/audits/performance-budget-test.js @@ -0,0 +1,218 @@ +/** + * @license Copyright 2019 Google Inc. All Rights Reserved. + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. + */ +'use strict'; + +const PerformanceBudgetAudit = require('../../audits/performance-budget.js'); +const networkRecordsToDevtoolsLog = require('../network-records-to-devtools-log.js'); + +/* eslint-env jest */ + +describe('Performance: Resource budgets audit', () => { + let artifacts; + let context; + beforeEach(() => { + artifacts = { + devtoolsLogs: { + defaultPass: networkRecordsToDevtoolsLog([ + {url: 'http://example.com/file.html', resourceType: 'Document', transferSize: 30}, + {url: 'http://example.com/app.js', resourceType: 'Script', transferSize: 10}, + {url: 'http://third-party.com/script.js', resourceType: 'Script', transferSize: 50}, + {url: 'http://third-party.com/file.jpg', resourceType: 'Image', transferSize: 70}, + ]), + }, + URL: {requestedUrl: 'http://example.com', finalUrl: 'http://example.com'}, + }; + context = {computedCache: new Map(), settings: {}}; + }); + + describe('with a budget.json', () => { + beforeEach(() => { + context.settings.budgets = [{ + path: '/', + resourceSizes: [ + { + resourceType: 'script', + budget: 0, + }, + { + resourceType: 'image', + budget: 1000, + }, + ], + resourceCounts: [ + { + resourceType: 'script', + budget: 0, + }, + { + resourceType: 'image', + budget: 1000, + }, + ], + }]; + }); + + it('warns of audit id being renamed to resource-budget', async () => { + const result = await PerformanceBudgetAudit.audit(artifacts, context); + expect(result.warnings[0]).toBeDisplayString(`The id for this audit will be changing ` + + `from 'performance-budget' to 'resource-budget'. Update your scripts accordingly.`); + }); + + it('includes table columns for requet & file size overages', async () => { + const result = await PerformanceBudgetAudit.audit(artifacts, context); + expect(result.details.headings).toHaveLength(5); + }); + + it('table item information is correct', async () => { + const result = await PerformanceBudgetAudit.audit(artifacts, context); + const item = result.details.items[0]; + expect(item.label).toBeDisplayString('Script'); + expect(item.requestCount).toBe(2); + expect(item.size).toBe(60); + expect(item.sizeOverBudget).toBe(60); + expect(item.countOverBudget).toBeDisplayString('2 requests'); + }); + + describe('request & transfer size overage', () => { + it('are displayed', async () => { + const result = await PerformanceBudgetAudit.audit(artifacts, context); + const scriptRow = result.details.items.find(r => r.resourceType === 'script'); + expect(scriptRow.sizeOverBudget).toBe(60); + expect(scriptRow.countOverBudget).toBeDisplayString('2 requests'); + }); + + it('are empty for passing budgets', async () => { + const result = await PerformanceBudgetAudit.audit(artifacts, context); + const imageRow = result.details.items.find(r => r.resourceType === 'image'); + expect(imageRow.sizeOverBudget).toBeUndefined(); + expect(imageRow.countOverBudget).toBeUndefined(); + }); + + it('convert budgets from kilobytes to bytes during calculations', async () => { + context.settings.budgets = [{ + path: '/', + resourceSizes: [ + { + resourceType: 'document', + budget: 20, + }, + ], + }]; + const result = await PerformanceBudgetAudit.audit(artifacts, context); + expect(result.details.items[0].siveOverBudget).toBeUndefined(); + }); + }); + + it('only includes rows for resource types with budgets', async () => { + const result = await PerformanceBudgetAudit.audit(artifacts, context); + expect(result.details.items).toHaveLength(2); + }); + + it('sorts rows by descending file size overage', async () => { + context.settings.budgets = [{ + path: '/', + resourceSizes: [ + { + resourceType: 'document', + budget: 0, + }, + { + resourceType: 'script', + budget: 0, + }, + { + resourceType: 'image', + budget: 0, + }, + ], + }]; + const result = await PerformanceBudgetAudit.audit(artifacts, context); + const items = result.details.items; + items.slice(0, -1).forEach((item, index) => { + expect(item.size).toBeGreaterThanOrEqual(items[index + 1].size); + }); + }); + }); + + describe('budget selection', () => { + describe('with a matching budget', () => { + it('applies the correct budget', async () => { + context.settings.budgets = [{ + path: '/', + resourceSizes: [ + { + resourceType: 'script', + budget: 0, + }, + ], + }, + { + path: '/file.html', + resourceSizes: [ + { + resourceType: 'image', + budget: 0, + }, + ], + }, + { + path: '/not-a-match', + resourceSizes: [ + { + resourceType: 'document', + budget: 0, + }, + ], + }, + ]; + const result = await PerformanceBudgetAudit.audit(artifacts, context); + expect(result.details.items[0].resourceType).toBe('image'); + }); + }); + + describe('without a matching budget', () => { + beforeEach(() => { + context.settings.budgets = [{ + path: '/not-a-match', + resourceSizes: [ + { + resourceType: 'script', + budget: 0, + }, + ], + }, + ]; + }); + it('returns "audit does not apply"', async () => { + const result = await PerformanceBudgetAudit.audit(artifacts, context); + expect(result.details).toBeUndefined(); + expect(result.notApplicable).toBe(true); + }); + + it('does not warn of audit id being renamed to resource-budget', async () => { + const result = await PerformanceBudgetAudit.audit(artifacts, context); + expect(result.warnings).toBeUndefined(); + }); + }); + + describe('without a budget.json', () => { + beforeEach(() => { + context.settings.budgets = null; + }); + + it('returns "audit does not apply"', async () => { + const result = await PerformanceBudgetAudit.audit(artifacts, context); + expect(result.details).toBeUndefined(); + expect(result.notApplicable).toBe(true); + }); + + it('does not warn of audit id being renamed to resource-budget', async () => { + const result = await PerformanceBudgetAudit.audit(artifacts, context); + expect(result.warnings).toBeUndefined(); + }); + }); + }); +}); diff --git a/lighthouse-core/test/report/html/renderer/performance-category-renderer-test.js b/lighthouse-core/test/report/html/renderer/performance-category-renderer-test.js index 447090a1e5d3..ca936b0eed4e 100644 --- a/lighthouse-core/test/report/html/renderer/performance-category-renderer-test.js +++ b/lighthouse-core/test/report/html/renderer/performance-category-renderer-test.js @@ -162,9 +162,12 @@ describe('PerfCategoryRenderer', () => { const categoryDOM = renderer.render(category, sampleResults.categoryGroups); const passedSection = categoryDOM.querySelector('.lh-category > .lh-clump--passed'); - const passedAudits = category.auditRefs.filter(audit => - audit.group && audit.group !== 'metrics' && audit.id !== 'resource-budget' - && Util.showAsPassed(audit.result)); + const passedAudits = category.auditRefs.filter(audit => { + // Budget audits are not rendered if there is no budget, so they are excluded from count. + const budgetAudit = ['resource-budget', 'performance-budget'].includes(audit.id); + return audit.group && audit.group !== 'metrics' && !budgetAudit + && Util.showAsPassed(audit.result); + }); const passedElements = passedSection.querySelectorAll('.lh-audit'); assert.equal(passedElements.length, passedAudits.length); }); @@ -189,7 +192,7 @@ describe('PerfCategoryRenderer', () => { }); describe('budgets', () => { - it('renders a performance budget', () => { + it('renders the resource-budget audit', () => { const categoryDOM = renderer.render(category, sampleResults.categoryGroups); const budgetsGroup = categoryDOM.querySelector('.lh-audit-group.lh-audit-group--budgets'); @@ -206,6 +209,12 @@ describe('PerfCategoryRenderer', () => { assert.strictEqual(tableRows.length, lhrBudgetEntries.length); }); + it('does not render the performance-budget audit', () => { + const categoryDOM = renderer.render(category, sampleResults.categoryGroups); + const performanceBudget = categoryDOM.querySelector('#performance-budget'); + assert.strictEqual(performanceBudget, null); + }); + it('does not render a budget table when resource-budget audit is notApplicable', () => { const budgetlessCategory = JSON.parse(JSON.stringify(category)); const budgetRef = budgetlessCategory.auditRefs.find(a => a.id === 'resource-budget'); diff --git a/lighthouse-core/test/report/html/renderer/report-renderer-test.js b/lighthouse-core/test/report/html/renderer/report-renderer-test.js index f10e8c2de079..76d940193216 100644 --- a/lighthouse-core/test/report/html/renderer/report-renderer-test.js +++ b/lighthouse-core/test/report/html/renderer/report-renderer-test.js @@ -237,8 +237,9 @@ describe('ReportRenderer', () => { let notApplicableCount = 0; Object.values(clonedSampleResult.audits).forEach(audit => { - // The resource-budget audit is omitted from the DOM when it is not applicable - if (audit.scoreDisplayMode === 'notApplicable' && audit.id !== 'resource-budget') { + // Budget audits are omitted from the DOM when not applicable + const isBudgetAudit = ['performance-budget', 'resource-budget'].includes(audit.id); + if (audit.scoreDisplayMode === 'notApplicable' && !isBudgetAudit) { notApplicableCount++; audit.scoreDisplayMode = 'not_applicable'; } diff --git a/lighthouse-core/test/results/sample_v2.json b/lighthouse-core/test/results/sample_v2.json index 872cfc3eaa60..9ec3800e48d5 100644 --- a/lighthouse-core/test/results/sample_v2.json +++ b/lighthouse-core/test/results/sample_v2.json @@ -1398,6 +1398,112 @@ ] } }, + "performance-budget": { + "id": "performance-budget", + "title": "Performance budget", + "description": "Keep the quantity and size of network requests under the targets set by the provided performance budget. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/budgets).", + "score": null, + "scoreDisplayMode": "informative", + "warnings": [ + "The id for this audit will be changing from 'performance-budget' to 'resource-budget'. Update your scripts accordingly." + ], + "details": { + "type": "table", + "headings": [ + { + "key": "label", + "itemType": "text", + "text": "Resource Type" + }, + { + "key": "requestCount", + "itemType": "numeric", + "text": "Requests" + }, + { + "key": "size", + "itemType": "bytes", + "text": "Transfer Size" + }, + { + "key": "countOverBudget", + "itemType": "text", + "text": "" + }, + { + "key": "sizeOverBudget", + "itemType": "bytes", + "text": "Over Budget" + } + ], + "items": [ + { + "resourceType": "script", + "label": "Script", + "requestCount": 4, + "size": 103675, + "countOverBudget": "2 requests", + "sizeOverBudget": 72955 + }, + { + "resourceType": "total", + "label": "Total", + "requestCount": 18, + "size": 160738, + "countOverBudget": "8 requests", + "sizeOverBudget": 58338 + }, + { + "resourceType": "other", + "label": "Other", + "requestCount": 2, + "size": 12861, + "sizeOverBudget": 7741 + }, + { + "resourceType": "third-party", + "label": "Third-party", + "requestCount": 2, + "size": 30174, + "countOverBudget": "1 request", + "sizeOverBudget": 4574 + }, + { + "resourceType": "stylesheet", + "label": "Stylesheet", + "requestCount": 7, + "size": 5352, + "countOverBudget": "5 requests", + "sizeOverBudget": 232 + }, + { + "resourceType": "image", + "label": "Image", + "requestCount": 2, + "size": 24741 + }, + { + "resourceType": "media", + "label": "Media", + "requestCount": 0, + "size": 0 + }, + { + "resourceType": "font", + "label": "Font", + "requestCount": 0, + "size": 0 + }, + { + "resourceType": "document", + "label": "Document", + "requestCount": 3, + "size": 14109, + "countOverBudget": "2 requests" + } + ] + } + }, "resource-summary": { "id": "resource-summary", "title": "Keep request counts low and transfer sizes small", @@ -3611,6 +3717,11 @@ "weight": 0, "group": "diagnostics" }, + { + "id": "performance-budget", + "weight": 0, + "group": "budgets" + }, { "id": "resource-budget", "weight": 0, @@ -4681,6 +4792,12 @@ "duration": 100, "entryType": "measure" }, + { + "startTime": 0, + "name": "lh:audit:performance-budget", + "duration": 100, + "entryType": "measure" + }, { "startTime": 0, "name": "lh:audit:resource-summary", @@ -5658,14 +5775,17 @@ ], "lighthouse-core/lib/i18n/i18n.js | columnResourceType": [ "audits[resource-budget].details.headings[0].text", + "audits[performance-budget].details.headings[0].text", "audits[resource-summary].details.headings[0].text" ], "lighthouse-core/lib/i18n/i18n.js | columnRequests": [ "audits[resource-budget].details.headings[1].text", + "audits[performance-budget].details.headings[1].text", "audits[resource-summary].details.headings[1].text" ], "lighthouse-core/lib/i18n/i18n.js | columnTransferSize": [ "audits[resource-budget].details.headings[2].text", + "audits[performance-budget].details.headings[2].text", "audits[resource-summary].details.headings[2].text" ], "lighthouse-core/audits/resource-budget.js | columnOverBudget": [ @@ -5673,6 +5793,7 @@ ], "lighthouse-core/lib/i18n/i18n.js | scriptResourceType": [ "audits[resource-budget].details.items[0].label", + "audits[performance-budget].details.items[0].label", "audits[resource-summary].details.items[1].label" ], "lighthouse-core/audits/resource-budget.js | requestCountOverBudget": [ @@ -5709,36 +5830,85 @@ ], "lighthouse-core/lib/i18n/i18n.js | totalResourceType": [ "audits[resource-budget].details.items[1].label", + "audits[performance-budget].details.items[1].label", "audits[resource-summary].details.items[0].label" ], "lighthouse-core/lib/i18n/i18n.js | otherResourceType": [ "audits[resource-budget].details.items[2].label", + "audits[performance-budget].details.items[2].label", "audits[resource-summary].details.items[4].label" ], "lighthouse-core/lib/i18n/i18n.js | thirdPartyResourceType": [ "audits[resource-budget].details.items[3].label", + "audits[performance-budget].details.items[3].label", "audits[resource-summary].details.items[8].label" ], "lighthouse-core/lib/i18n/i18n.js | stylesheetResourceType": [ "audits[resource-budget].details.items[4].label", + "audits[performance-budget].details.items[4].label", "audits[resource-summary].details.items[5].label" ], "lighthouse-core/lib/i18n/i18n.js | imageResourceType": [ "audits[resource-budget].details.items[5].label", + "audits[performance-budget].details.items[5].label", "audits[resource-summary].details.items[2].label" ], "lighthouse-core/lib/i18n/i18n.js | mediaResourceType": [ "audits[resource-budget].details.items[6].label", + "audits[performance-budget].details.items[6].label", "audits[resource-summary].details.items[6].label" ], "lighthouse-core/lib/i18n/i18n.js | fontResourceType": [ "audits[resource-budget].details.items[7].label", + "audits[performance-budget].details.items[7].label", "audits[resource-summary].details.items[7].label" ], "lighthouse-core/lib/i18n/i18n.js | documentResourceType": [ "audits[resource-budget].details.items[8].label", + "audits[performance-budget].details.items[8].label", "audits[resource-summary].details.items[3].label" ], + "lighthouse-core/audits/performance-budget.js | title": [ + "audits[performance-budget].title" + ], + "lighthouse-core/audits/performance-budget.js | description": [ + "audits[performance-budget].description" + ], + "lighthouse-core/audits/performance-budget.js | columnOverBudget": [ + "audits[performance-budget].details.headings[4].text" + ], + "lighthouse-core/audits/performance-budget.js | requestCountOverBudget": [ + { + "values": { + "count": 2 + }, + "path": "audits[performance-budget].details.items[0].countOverBudget" + }, + { + "values": { + "count": 8 + }, + "path": "audits[performance-budget].details.items[1].countOverBudget" + }, + { + "values": { + "count": 1 + }, + "path": "audits[performance-budget].details.items[3].countOverBudget" + }, + { + "values": { + "count": 5 + }, + "path": "audits[performance-budget].details.items[4].countOverBudget" + }, + { + "values": { + "count": 2 + }, + "path": "audits[performance-budget].details.items[8].countOverBudget" + } + ], "lighthouse-core/audits/resource-summary.js | title": [ "audits[resource-summary].title" ], diff --git a/proto/sample_v2_round_trip.json b/proto/sample_v2_round_trip.json index 5b59f62ed09e..d77728cf9ec3 100644 --- a/proto/sample_v2_round_trip.json +++ b/proto/sample_v2_round_trip.json @@ -2139,6 +2139,111 @@ "scoreDisplayMode": "binary", "title": "Prevents users to paste into password fields" }, + "performance-budget": { + "description": "Keep the quantity and size of network requests under the targets set by the provided performance budget. [Learn more](https://developers.google.com/web/tools/lighthouse/audits/budgets).", + "details": { + "headings": [ + { + "itemType": "text", + "key": "label", + "text": "Resource Type" + }, + { + "itemType": "numeric", + "key": "requestCount", + "text": "Requests" + }, + { + "itemType": "bytes", + "key": "size", + "text": "Transfer Size" + }, + { + "itemType": "text", + "key": "countOverBudget" + }, + { + "itemType": "bytes", + "key": "sizeOverBudget", + "text": "Over Budget" + } + ], + "items": [ + { + "countOverBudget": "2 requests", + "label": "Script", + "requestCount": 4.0, + "resourceType": "script", + "size": 103675.0, + "sizeOverBudget": 72955.0 + }, + { + "countOverBudget": "8 requests", + "label": "Total", + "requestCount": 18.0, + "resourceType": "total", + "size": 160738.0, + "sizeOverBudget": 58338.0 + }, + { + "label": "Other", + "requestCount": 2.0, + "resourceType": "other", + "size": 12861.0, + "sizeOverBudget": 7741.0 + }, + { + "countOverBudget": "1 request", + "label": "Third-party", + "requestCount": 2.0, + "resourceType": "third-party", + "size": 30174.0, + "sizeOverBudget": 4574.0 + }, + { + "countOverBudget": "5 requests", + "label": "Stylesheet", + "requestCount": 7.0, + "resourceType": "stylesheet", + "size": 5352.0, + "sizeOverBudget": 232.0 + }, + { + "label": "Image", + "requestCount": 2.0, + "resourceType": "image", + "size": 24741.0 + }, + { + "label": "Media", + "requestCount": 0.0, + "resourceType": "media", + "size": 0.0 + }, + { + "label": "Font", + "requestCount": 0.0, + "resourceType": "font", + "size": 0.0 + }, + { + "countOverBudget": "2 requests", + "label": "Document", + "requestCount": 3.0, + "resourceType": "document", + "size": 14109.0 + } + ], + "type": "table" + }, + "id": "performance-budget", + "score": null, + "scoreDisplayMode": "informative", + "title": "Performance budget", + "warnings": [ + "The id for this audit will be changing from 'performance-budget' to 'resource-budget'. Update your scripts accordingly." + ] + }, "plugins": { "description": "Search engines can't index plugin content, and many devices restrict plugins or don't support them. [Learn more](https://web.dev/plugins).", "details": { @@ -3775,6 +3880,11 @@ "id": "font-display", "weight": 0.0 }, + { + "group": "budgets", + "id": "performance-budget", + "weight": 0.0 + }, { "group": "budgets", "id": "resource-budget", @@ -4582,6 +4692,12 @@ "name": "lh:computed:ResourceSummary", "startTime": 0.0 }, + { + "duration": 100.0, + "entryType": "measure", + "name": "lh:audit:performance-budget", + "startTime": 0.0 + }, { "duration": 100.0, "entryType": "measure",