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:
budget.json file sets three separate budgets:
- A budget of 300 KB for the overall size of the page.
- A budget of 10 requests for the numer of requests made to third-party origins.
You can set budgets for any of the following resource types:
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
Note: A budget file does not have to be named
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
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.