![Forrest logo](/images/logo.png)
lighthouse:tldr:a32b6
lighthouse: Generate a report with device emulation and all throttling disabled.
$ lighthouse --screenEmulation.disabled --throttling-method=${provided} --no-emulatedUserAgent ${https:--example-com}
try on your machine
This command is using the "lighthouse" executable to run a performance audit on a web page. Let's break down the different options used in the command:
- "lighthouse": This is the name of the executable or tool being used.
- "--screenEmulation.disabled": This option disables screen emulation, which means the audit will not simulate how the page would render on a device with a specific screen size or resolution.
- "--throttling-method=${provided}": This option specifies the method of network throttling to be used during the audit. The value "${provided}" suggests that the method is provided externally, and it needs to be passed as an argument while using this command. For example, you can replace "${provided}" with "--throttling-method=devtools" to use the network conditions specified by the Chrome DevTools.
- "--no-emulatedUserAgent": This option disables emulating a User-Agent string, meaning the audit will not pretend to be a specific browser or device.
- "${https:--example-com}": This is the URL of the page you want to audit. You can replace "https://example.com" with any website URL you want to analyze.
By running this command, the "lighthouse" tool will perform a performance audit on the specified web page without screen emulation, without emulating a User-Agent, and with network throttling method defined externally (provided through the --throttling-method option).
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.