--- url: "https://web.dev/articles/use-lighthouse-for-performance-budgets" titulek: "Use Lighthouse for performance budgets | Articles | web.dev" h1: "Use Lighthouse for performance budgets Stay organized with collections Save and categorize content based on your preferences." popis: "Lighthouse now supports performance budgets. This feature, LightWallet, can be set up in under five minutes and provides feedvack on the size and quantity of page resources." jazyk: "en" kanonicka: "https://web.dev/articles/use-lighthouse-for-performance-budgets" drobecky: ["Articles", "Use Lighthouse for performance budgets"] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 01:48:01" znaku: 2465 slov: 345 kodovani: "iso-8859-2" sha256: "e1189f1b2bc036998ccd01a3163204d1b6d899a94c5bae24d6168c1456b7b9f3" --- Use Lighthouse for performance budgets Stay organized with collections Save and categorize content based on your preferences. Katie Hempenius [Lighthouse](https://github.com/GoogleChrome/lighthouse) now supports performance budgets. This feature, known as LightWallet, can be set up in under five minutes and provides feedback on performance metrics and the size and quantity of page resources. Install Lighthouse LightWallet is available in the command line version of Lighthouse v5+. To get started, install Lighthouse: `npm install -g lighthouse` Create a Budget Create a file named `budget.json`. In this file add the following JSON: `[ { "path": "/*", "timings": [ { "metric": "interactive", "budget": 3000 }, { "metric": "first-meaningful-paint", "budget": 1000 } ], "resourceSizes": [ { "resourceType": "script", "budget": 125 }, { "resourceType": "total", "budget": 300 } ], "resourceCounts": [ { "resourceType": "third-party", "budget": 10 } ] } ]` This example `budget.json` file sets five separate budgets: A budget of 3000ms for Time to Interactive. A budget of 1000ms for First Meaningful Paint A budget of 125 KB for the total amount of JavaScript on the page. A budget of 300 KB for the overall size of the page. A budget of 10 requests for the number of requests made to third-party origins. For a complete list of supported performance metrics and resource types, refer to the [Performance Budgets](https://github.com/GoogleChrome/lighthouse/blob/master/docs/performance-budgets.md) section of the Lighthouse docs. Run Lighthouse Run Lighthouse using the `--budget-path` flag. This flag tells Lighthouse the location of your budget file. `lighthouse https://example.com --budget-path=./budget.json` View the Results If LightWallet has been configured correctly, the Lighthouse report will contain a **Budgets** section within the **Performance** category. In the JSON version of the Lighthouse report, Lightwallet results can be found within the audit findings for the `performance-budget` audit. Except as otherwise noted, the content of this page is licensed under the [Creative Commons Attribution 4.0 License](https://creativecommons.org/licenses/by/4.0/), and code samples are licensed under the [Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0). For details, see the [Google Developers Site Policies](https://developers.google.com/site-policies). Java is a registered trademark of Oracle and/or its affiliates. Last updated 2019-06-14 UTC.