Open Lighthouse in Chrome · Install the command-line version · Download source code (ZIP)
Lighthouse checks page loading, interface accessibility and basic technical SEO settings. Use it to find an oversized image, a delayed main section or a missing page description, fix the cause and compare the result.
Where to run a check
The simplest route needs no extra package: open your page in Chrome, open developer tools and select Lighthouse. Choose a page-load audit and a mobile or desktop device, then run the analysis. In English, the buttons are Analyze page load and Run audit. A local site needs its project server running first.
For repeatable checks, ask Work/Codex to use the command-line tool. This is a separate program it operates through a terminal, not an MCP server or a plugin that automatically appears in chat. If a terminal or browser is unavailable, it explains which check remains to be run in Chrome.
The checked Lighthouse 13.5.0 release needs Node.js 22.19 or later and installed Chrome. The assistant checks versions and any existing Lighthouse installation first. Install only if a suitable tool is missing and you approve. Downloading the source ZIP is not necessary.
How to check a page with Work or Codex
Start with one page and a specific question. For example: why does the landing page's main section appear slowly on mobile? For a larger site, later add one page from each important template. Run measurements sequentially, not concurrently on one computer.
- Ask the assistant to find the working URL and check its content. It must show the intended page, not sign-in, a subscription preview or an error. Preserve the initial project version and test conditions: URL, Chrome and Lighthouse versions, device and throttling.
- Generate separate mobile and desktop reports. Save HTML for reading and JSON for comparison. Repeat each configuration, for example three times, keeping every report. The assistant compares median values, the middle results, and shows the spread.
- Select an evidenced cause, approve a fix and repeat the same tests. Also check navigation, the main action and the form without submitting a real enquiry. Count the speed improvement together with keeping the interface working.
Below are the installation method and example runs. These commands are for the assistant: it finds the URL and sets SITE_URL, chooses unused report names and checks the working directory. Do not install without approval or replace an existing suitable version. Each repeat needs new filenames.
npm install -g lighthouse@13.5.0
lighthouse "$SITE_URL" --output=html --output=json --output-path=./lighthouse-mobile-before-1 --no-enable-error-reporting
lighthouse "$SITE_URL" --preset=desktop --output=html --output=json --output-path=./lighthouse-desktop-before-1 --no-enable-error-reporting
Each run produces .report.html and .report.json files. The first uses default mobile settings; desktop needs preset=desktop, not just a different window size. Avoid heavy builds and other measurements during a test.
How to read the report and choose a fix
First check the final URL, page screenshot and absence of a run error. Then open a specific finding: which file, element or request is involved and what change is suggested? Keep the evidence with the task that addresses it.
LCP measures when the main large element appears; CLS reflects content shifts; TBT helps identify main-thread blocking during loading. Compare the values under matching conditions, not just the overall score. Mobile mode models conditions rather than measuring your physical phone. Real visitor statistics are collected separately.
If a report identifies a large first-screen image, the assistant checks its dimensions, format and loading behaviour before proposing a change. There is no need to remove every image and animation to raise a score. Address measurement variability before concluding a fix helped. Also navigate with a keyboard for accessibility; check indexing and content separately using the SEO audit plan below.
How to check a signed-in page and keep reports private
A normal CLI run opens the page without your browser session. For a first signed-in check, use the Lighthouse panel in the Chrome session where you are logged in. If authentication relies on localStorage or IndexedDB, uncheck Clear storage. For automation, the assistant first reads the official authenticated-page guide and proposes a separate test session. Passwords and cookies do not belong in commands, Git or reports.
Local Lighthouse generates reports on your computer, but the audited page still contacts its server and external resources. Reports may contain URLs, screenshots and private interface content. Keep them locally outside the public build. PageSpeed Insights and sharing through Viewer/Gist are separate transfers to an external service.
The no-enable-error-reporting option disables CLI error reporting, regardless of the saved preference, but not the page's network requests. If a run fails, the assistant explains why; a normal browser inspection is not a Lighthouse measurement. Do not disable Chrome protection or terminate someone else's browser process to generate a report.
Where to use the result
The website SEO audit's speed and mobile check already uses Lighthouse to investigate delays and repeat checks. The report helps prioritise fixes rather than replacing the entire audit.
After a fix, check real visitor actions with Playwright Test. A completed result includes before-and-after reports, matching conditions, an explanation of metric changes and a working user flow. If an improvement is not repeatable, investigate before release.
What to ask Work or Codex
Paste the prompt into a task with access to your project. The assistant prepares the check and asks only for information missing from the project and conversation.
Check the current website's speed and technical page quality with Lighthouse. Find the project, working URL, existing decisions, available Chrome and installed Lighthouse yourself. Start with one important page; confirm the test sees its content rather than sign-in or an error. If installation is needed, show the official method and wait for my approval. Do not install another MCP server for this task.
Save HTML and JSON locally for mobile and desktop, along with versions and run conditions. Take three sequential measurements per configuration and show medians and spread. Identify a specific cause of delay or layout shift using the report and source files. Propose a small fix; after my approval, implement it on a separate branch and repeat the measurements under the same conditions. Check navigation, the main action and the form without a real submission. Do not replace a useful user outcome with chasing a score.
Do not send private pages, reports or authentication data to external services. Do not change credentials or publish the site. If a run is unavailable, explain why and identify the remaining step. Finish with what changed, where the reports are saved and what still needs checking.