# Lighthouse

Automate web performance audits with Lighthouse

## Docs

- [Lighthouse](https://developer.chrome.com/docs/lighthouse.md.txt): Automate web performance audits with Lighthouse
- [Custom controls have ARIA roles](https://developer.chrome.com/docs/lighthouse/accessibility/custom-control-roles.md.txt): Learn how to improve accessibility by adding ARIA to custom controls, so assistive technologies can interpret.
- [Custom controls have associated labels](https://developer.chrome.com/docs/lighthouse/accessibility/custom-controls-labels.md.txt): Learn how to improve accessibility by making sure that all custom controls have labels that assistive technology users can access.
- [User focus is not accidentally trapped in a region](https://developer.chrome.com/docs/lighthouse/accessibility/focus-traps.md.txt): Learn how to improve accessibility for keyboard users by preventing focus from being trapped in a region of the page.
- [Interactive controls are keyboard focusable](https://developer.chrome.com/docs/lighthouse/accessibility/focusable-controls.md.txt): Learn how to make custom controls on your web page focusable so keyboard users can access them.
- [Interactive elements indicate their purpose and state](https://developer.chrome.com/docs/lighthouse/accessibility/interactive-element-affordance.md.txt): Learn how to improve the accessibility of custom controls on your web page by making their purpose and states clear to all users.
- [The page has a logical tab order](https://developer.chrome.com/docs/lighthouse/accessibility/logical-tab-order.md.txt): Learn how to make it easier for keyboard users to navigate your web page by placing tab stops in a logical order.
- [The user&#39;s focus is directed to new content added to the page](https://developer.chrome.com/docs/lighthouse/accessibility/managed-focus.md.txt): Learn how to make changes in your web app&#39;s state understandable to assistive technology users by moving focus to newly added content.
- [Offscreen content is hidden from assistive technology](https://developer.chrome.com/docs/lighthouse/accessibility/offscreen-content-hidden.md.txt): Learn how to improve accessibility for assistive technology users by hiding off-screen content from assistive technologies.
- [Lighthouse accessibility score](https://developer.chrome.com/docs/lighthouse/accessibility/scoring.md.txt): Learn how Lighthouse generates the accessibility score for your page.
- [HTML5 landmark elements are used to improve navigation](https://developer.chrome.com/docs/lighthouse/accessibility/use-landmarks.md.txt): Learn how to improve the accessibility of your web page by providing landmarks that keyboard users can use to navigate.
- [Visual order on the page follows DOM order](https://developer.chrome.com/docs/lighthouse/accessibility/visual-order-follows-dom.md.txt): Learn about visual-order-follows-dom audit.
- [Uses Application Cache](https://developer.chrome.com/docs/lighthouse/best-practices/appcache-manifest.md.txt): Learn how to migrate your web page from the deprecated Application Cache to the Cache API.
- [Charset declaration is missing or occurs too late in the HTML](https://developer.chrome.com/docs/lighthouse/best-practices/charset.md.txt): Learn how to add a character encoding declaration to your HTML.
- [Mitigate clickjacking with XFO or CSP](https://developer.chrome.com/docs/lighthouse/best-practices/clickjacking-mitigation.md.txt): Learn more about mitigating clickjacking attacks.
- [Ensure CSP is effective against XSS attacks](https://developer.chrome.com/docs/lighthouse/best-practices/csp-xss.md.txt): Learn about preventing cross-site scripting (XSS) attacks with a strict Content Security Policy (CSP).
- [Uses deprecated APIs](https://developer.chrome.com/docs/lighthouse/best-practices/deprecations.md.txt): Learn how to remove and replace deprecated APIs from your web page.
- [Page lacks the HTML doctype, thus triggering quirks mode](https://developer.chrome.com/docs/lighthouse/best-practices/doctype.md.txt): Learn how to make sure your page doesn&#39;t trigger quirks mode in older browsers.
- [Browser errors were logged to the console](https://developer.chrome.com/docs/lighthouse/best-practices/errors-in-console.md.txt): Learn how to identify and fix browser errors.
- [Links to cross-origin destinations are unsafe](https://developer.chrome.com/docs/lighthouse/best-practices/external-anchors-use-rel-noopener.md.txt): Learn how to safely link to resources on another host.
- [Requests the geolocation permission on page load](https://developer.chrome.com/docs/lighthouse/best-practices/geolocation-on-start.md.txt): Learn how to responsibly request geolocation permission, while providing good user experience.
- [Use a strong HSTS policy](https://developer.chrome.com/docs/lighthouse/best-practices/has-hsts.md.txt): Learn about configuring a strong HTTP Strict Transport Security (HSTS) policy
- [Does not use HTTPS](https://developer.chrome.com/docs/lighthouse/best-practices/is-on-https.md.txt): Learn how to protect your website with HTTPS.
- [Detected JavaScript libraries](https://developer.chrome.com/docs/lighthouse/best-practices/js-libraries.md.txt): Learn about Lighthouse&#39;s diagnostic &#34;Detected JavaScript libraries&#34; audit.
- [Includes front-end JavaScript libraries with known security vulnerabilities](https://developer.chrome.com/docs/lighthouse/best-practices/no-vulnerable-libraries.md.txt): Learn how to make your page more secure by replacing JavaScript libraries that have known vulnerabilities.
- [Requests the notification permission on page load](https://developer.chrome.com/docs/lighthouse/best-practices/notification-on-start.md.txt): Learn how to responsibly request notification permission in a way that provides good user experience.
- [Prevents users from pasting into input fields](https://developer.chrome.com/docs/lighthouse/best-practices/paste-preventing-inputs.md.txt): Learn how to improve the user experience of your site&#39;s login screen by allowing users to paste into input fields.
- [Does not redirect HTTP traffic to HTTPS](https://developer.chrome.com/docs/lighthouse/best-practices/redirects-http.md.txt): Learn how to make your site more secure by redirecting all pages to HTTPS.
- [Mitigate DOM-based XSS with Trusted Types](https://developer.chrome.com/docs/lighthouse/best-practices/trusted-types-xss.md.txt): Learn more about mitigating DOM-based XSS with Trusted Types
- [Does not use HTTP/2 for all of its resources](https://developer.chrome.com/docs/lighthouse/best-practices/uses-http2.md.txt): Learn why HTTP/2 is important for your page&#39;s load time and how to enable HTTP/2 on your server.
- [Use passive listeners to improve scrolling performance](https://developer.chrome.com/docs/lighthouse/best-practices/uses-passive-event-listeners.md.txt): Learn how to improve your page&#39;s scrolling responsiveness by avoiding passive event listeners.
- [Does not have a  tag with width or initial-scale](https://developer.chrome.com/docs/lighthouse/best-practices/viewport.md.txt): Learn about the &#34;Does not have a tag with width or initial-scale&#34; Lighthouse audit.
- [Introduction to Lighthouse](https://developer.chrome.com/docs/lighthouse/overview.md.txt): Learn how to set up Lighthouse to audit your web apps.
- [Ensure the page can be restored from the back/forward cache](https://developer.chrome.com/docs/lighthouse/performance/bf-cache.md.txt): How to use Lighthouse to test if a page can be restored from the back/forward cache.
- [Reduce JavaScript execution time](https://developer.chrome.com/docs/lighthouse/performance/bootup-time.md.txt): Learn how JavaScript execution can slow down your page performance and how you can speed it up.
- [Avoid chaining critical requests](https://developer.chrome.com/docs/lighthouse/performance/critical-request-chains.md.txt): Learn what critical request chains are, how they affect web page performance, and how you can reduce the effect.
- [Avoid an excessive DOM size](https://developer.chrome.com/docs/lighthouse/performance/dom-size.md.txt): Learn how a large DOM can reduce your web page&#39;s performance and how you can reduce the size of your DOM at load time.
- [Use video formats for animated content](https://developer.chrome.com/docs/lighthouse/performance/efficient-animated-content.md.txt): Learn about the efficient-animated-content audit.
- [Estimated Input Latency](https://developer.chrome.com/docs/lighthouse/performance/estimated-input-latency.md.txt): Learn about Lighthouse&#39;s Estimated Input Latency metric and how to measure and optimize it.
- [First Contentful Paint](https://developer.chrome.com/docs/lighthouse/performance/first-contentful-paint.md.txt): Learn about Lighthouse&#39;s First Contentful Paint metric and how to measure and optimize it.
- [First CPU Idle](https://developer.chrome.com/docs/lighthouse/performance/first-cpu-idle.md.txt): Learn about Lighthouse&#39;s deprecated First CPU Idle metric and how to optimize it.
- [First Meaningful Paint](https://developer.chrome.com/docs/lighthouse/performance/first-meaningful-paint.md.txt): Learn about Lighthouse&#39;s deprecated First Meaningful Paint metric and how to measure and optimize it.
- [Ensure text remains visible during webfont load](https://developer.chrome.com/docs/lighthouse/performance/font-display.md.txt): Learn how to use the font-display API to make sure your web page text will always be visible to your users.
- [Time to Interactive](https://developer.chrome.com/docs/lighthouse/performance/interactive.md.txt): Learn about Lighthouse&#39;s Time to Interactive metric and how to measure and optimize it.
- [Largest Contentful Paint](https://developer.chrome.com/docs/lighthouse/performance/lighthouse-largest-contentful-paint.md.txt): Learn about Lighthouse&#39;s Largest Contentful Paint metric and how to measure and optimize it.
- [Max Potential First Input Delay](https://developer.chrome.com/docs/lighthouse/performance/lighthouse-max-potential-fid.md.txt): Learn about Lighthouse&#39;s deprecated Max Potential First Input Delay metric and how to measure and optimize it.
- [Total Blocking Time](https://developer.chrome.com/docs/lighthouse/performance/lighthouse-total-blocking-time.md.txt): Learn about Lighthouse&#39;s Total Blocking Time metric and how to measure and optimize it.
- [Minimize main thread work](https://developer.chrome.com/docs/lighthouse/performance/mainthread-work-breakdown.md.txt): Learn about the browser&#39;s main thread and how you can optimize your web page to reduce main thread load and improve performance.
- [Avoid non-composited animations](https://developer.chrome.com/docs/lighthouse/performance/non-composited-animations.md.txt): How to pass the &#34;Avoid non-composited animations&#34; Lighthouse audit.
- [Defer offscreen images](https://developer.chrome.com/docs/lighthouse/performance/offscreen-images.md.txt): Learn about the offscreen-images audit.
- [Lighthouse performance scoring](https://developer.chrome.com/docs/lighthouse/performance/performance-scoring.md.txt): Learn how Lighthouse generates the overall Performance score for your page.
- [Avoid multiple page redirects](https://developer.chrome.com/docs/lighthouse/performance/redirects.md.txt): Learn why page redirects slow down your web page&#39;s load speed and how to avoid them.
- [Eliminate render-blocking resources](https://developer.chrome.com/docs/lighthouse/performance/render-blocking-resources.md.txt): Learn about the render-blocking-resources audit.
- [Keep request counts low and transfer sizes small](https://developer.chrome.com/docs/lighthouse/performance/resource-summary.md.txt): Learn how high resource counts and large transfer sizes affect load performance. Get strategies for reducing request counts and transfer sizes.
- [Reduce server response times](https://developer.chrome.com/docs/lighthouse/performance/server-response-time.md.txt): Learn about the server-response-time audit.
- [Speed Index](https://developer.chrome.com/docs/lighthouse/performance/speed-index.md.txt): Learn about Lighthouse&#39;s Speed Index metric and how to optimize it.
- [Lazy load third-party resources with facades](https://developer.chrome.com/docs/lighthouse/performance/third-party-facades.md.txt): Learn about the opportunities to lazy load third-party resources with facades.
- [Reduce the impact of third-party code](https://developer.chrome.com/docs/lighthouse/performance/third-party-summary.md.txt): Learn how third-party code, like advertising networks and analytics services, affects page load performance, and how you can optimize third-party code.
- [Avoid enormous network payloads](https://developer.chrome.com/docs/lighthouse/performance/total-byte-weight.md.txt): Learn how to improve your web page&#39;s load time by reducing the total file size of resources you serve to your users.
- [Minify CSS](https://developer.chrome.com/docs/lighthouse/performance/unminified-css.md.txt): Learn about the unminified-css audit.
- [Minify JavaScript](https://developer.chrome.com/docs/lighthouse/performance/unminified-javascript.md.txt): Learn about the unminified-javascript audit.
- [Remove unused CSS](https://developer.chrome.com/docs/lighthouse/performance/unused-css-rules.md.txt): Learn about the unused-css-rules audit.
- [Remove unused JavaScript](https://developer.chrome.com/docs/lighthouse/performance/unused-javascript.md.txt): Learn how to pass Lighthouse&#39;s &#34;Remove unused JavaScript&#34; audit.
- [User Timing marks and measures](https://developer.chrome.com/docs/lighthouse/performance/user-timings.md.txt): Learn how the User Timing API can help you get real-world performance data for your web page.
- [Serve static assets with an efficient cache policy](https://developer.chrome.com/docs/lighthouse/performance/uses-long-cache-ttl.md.txt): Learn how caching your web page&#39;s static resources can improve performance and reliability for repeat visitors.
- [Efficiently encode images](https://developer.chrome.com/docs/lighthouse/performance/uses-optimized-images.md.txt): Learn about the uses-optimized-images audit.
- [Preconnect to required origins](https://developer.chrome.com/docs/lighthouse/performance/uses-rel-preconnect.md.txt): Learn about the uses-rel-preconnect audit.
- [Preload key requests](https://developer.chrome.com/docs/lighthouse/performance/uses-rel-preload.md.txt): Learn about the uses-rel-preload audit.
- [Properly size images](https://developer.chrome.com/docs/lighthouse/performance/uses-responsive-images.md.txt): Learn about the uses-responsive-images audit.
- [Enable text compression](https://developer.chrome.com/docs/lighthouse/performance/uses-text-compression.md.txt): Learn about how enabling text compression can improve your page load performance.
- [Serve images in modern formats](https://developer.chrome.com/docs/lighthouse/performance/uses-webp-images.md.txt): Learn about the uses-webp-images audit.
- [Content is not sized correctly for the viewport](https://developer.chrome.com/docs/lighthouse/pwa/content-width.md.txt): Learn how to size your web page content to fit on mobile screens.
- [Web app manifest does not meet the installability requirements](https://developer.chrome.com/docs/lighthouse/pwa/installable-manifest.md.txt): Learn how to make your Progressive Web App installable.
- [Page load is not fast enough on mobile networks](https://developer.chrome.com/docs/lighthouse/pwa/load-fast-enough-for-pwa.md.txt): Learn how to make your web page load quickly on mobile networks.
- [Manifest doesn&#39;t have a maskable icon](https://developer.chrome.com/docs/lighthouse/pwa/maskable-icon-audit.md.txt): Learn how to add maskable icon support to your PWA.
- [start_url does not respond with a 200 when offline](https://developer.chrome.com/docs/lighthouse/pwa/offline-start-url.md.txt): Learn how to configure your Progressive Web App&#39;s start_url so your app is accessible offline.
- [Site works cross-browser](https://developer.chrome.com/docs/lighthouse/pwa/pwa-cross-browser.md.txt): Learn how to use Workbox to make sure your web page works across browsers.
- [Each page has a URL](https://developer.chrome.com/docs/lighthouse/pwa/pwa-each-page-has-url.md.txt): Learn about the Lighthouse &#34;Each page has a URL&#34; audit.
- [Page transitions don&#39;t feel like they block on the network](https://developer.chrome.com/docs/lighthouse/pwa/pwa-page-transitions.md.txt): Learn how to make transitions between web pages feel responsive, even on a slow network.
- [Does not register a service worker that controls page and start_url](https://developer.chrome.com/docs/lighthouse/pwa/service-worker.md.txt): Learn how to register a service worker that supports Progressive Web App features like offline functionality, push notifications, and installability.
- [Is not configured for a custom splash screen](https://developer.chrome.com/docs/lighthouse/pwa/splash-screen.md.txt): Learn how to create a custom splash screen for your Progressive Web App.
- [Does not set a theme color for the address bar](https://developer.chrome.com/docs/lighthouse/pwa/themed-omnibox.md.txt): Learn how to set an address bar theme color for your Progressive Web App.
- [Does not provide fallback content when JavaScript is not available](https://developer.chrome.com/docs/lighthouse/pwa/without-javascript.md.txt): Learn how to make sure users can view at least some content on your web page when JavaScript isn&#39;t available.
- [Current page does not respond with a 200 when offline](https://developer.chrome.com/docs/lighthouse/pwa/works-offline.md.txt): Learn how to make your Progressive Web App work offline.
- [Document does not have a valid rel=canonical](https://developer.chrome.com/docs/lighthouse/seo/canonical.md.txt): Learn about the &#34;Document does not have a valid rel=canonical&#34; Lighthouse audit.
- [Document doesn&#39;t use legible font sizes](https://developer.chrome.com/docs/lighthouse/seo/font-size.md.txt): Learn about the &#34;Document doesn&#39;t use legible font sizes&#34; Lighthouse audit.
- [Document doesn&#39;t have a valid hreflang](https://developer.chrome.com/docs/lighthouse/seo/hreflang.md.txt): Learn about the &#34;Document doesn&#39;t have a valid hreflang&#34; Lighthouse audit.
- [Page has unsuccessful HTTP status code](https://developer.chrome.com/docs/lighthouse/seo/http-status-code.md.txt): Learn about the &#34;Page has unsuccessful HTTP status code&#34; Lighthouse audit.
- [robots.txt is not valid](https://developer.chrome.com/docs/lighthouse/seo/invalid-robots-txt.md.txt): Learn about the &#34;robots.txt is not valid&#34; Lighthouse audit.
- [Page is blocked from indexing](https://developer.chrome.com/docs/lighthouse/seo/is-crawlable.md.txt): Learn about the &#34;Page is blocked from indexing&#34; Lighthouse audit.
- [Links do not have descriptive text](https://developer.chrome.com/docs/lighthouse/seo/link-text.md.txt): Learn about the &#34;Links do not have descriptive text&#34; Lighthouse audit.
- [Document does not have a meta description](https://developer.chrome.com/docs/lighthouse/seo/meta-description.md.txt): Learn about the &#34;Document does not have a meta description&#34; Lighthouse audit.
- [Document uses plugins](https://developer.chrome.com/docs/lighthouse/seo/plugins.md.txt): Learn about the &#34;Document uses plugins&#34; Lighthouse audit.
- [Structured data is valid](https://developer.chrome.com/docs/lighthouse/seo/structured-data.md.txt): Learn about the &#34;Structured data is valid&#34; Lighthouse audit.
- [Tap targets are not sized appropriately](https://developer.chrome.com/docs/lighthouse/seo/tap-targets.md.txt): Learn about the &#34;Tap targets are not sized appropriately&#34; Lighthouse audit.
- [Lighthouse v3 Migration Guide](https://developer.chrome.com/docs/lighthouse/v3-migration-guide.md.txt): How to migrate from Lighthouse v2 to v3.
- [Lighthouse agentic browsing scoring](https://developer.chrome.com/docs/lighthouse/agentic-browsing/scoring.md.txt): Learn how the Agentic Browsing category is scored and how audits are determined.
- [Accessibility for agents](https://developer.chrome.com/docs/lighthouse/agentic-browsing/accessibility-for-agents.md.txt): Learn about accessibility for agents and how AI agents rely on the accessibility tree.
- [Forms missing declarative WebMCP](https://developer.chrome.com/docs/lighthouse/agentic-browsing/forms-missing-declarative-webmcp.md.txt): Learn about the Forms missing declarative WebMCP audit and how to add WebMCP metadata to forms.
- [Registered WebMCP tools](https://developer.chrome.com/docs/lighthouse/agentic-browsing/registered-webmcp-tools.md.txt): Learn about the Registered WebMCP tools audit and how to register tools using WebMCP.
- [llms.txt](https://developer.chrome.com/docs/lighthouse/agentic-browsing/llms-txt.md.txt): Learn about the llms.txt audit and how to provide a machine-readable summary of your website.
- [Layout stability](https://developer.chrome.com/docs/lighthouse/agentic-browsing/layout-stability.md.txt): Learn about layout stability for agents and how Cumulative Layout Shift affects AI agents.
- [WebMCP schema validity](https://developer.chrome.com/docs/lighthouse/agentic-browsing/webmcp-schema-validity.md.txt): Learn about the WebMCP schema validity audit and how to ensure your WebMCP schema is valid.
- [Baseline Features](https://developer.chrome.com/docs/lighthouse/best-practices/baseline-features.md.txt): Learn about Lighthouse&#39;s diagnostic &#34;Baseline Features&#34; audit.
- [Displays images with incorrect aspect ratio](https://developer.chrome.com/docs/lighthouse/best-practices/image-aspect-ratio.md.txt): Learn how to display responsive images with the correct aspect ratio.
- [Uses document.write()](https://developer.chrome.com/docs/lighthouse/best-practices/no-document-write.md.txt): Learn how to speed up your page&#39;s load time by avoiding document.write().
- [Does not provide a valid apple-touch-icon](https://developer.chrome.com/docs/lighthouse/pwa/apple-touch-icon.md.txt): Learn how to specify what icon your Progressive Web App displays on iOS home screens.
- [ard.json](https://developer.chrome.com/docs/lighthouse/agentic-browsing/ard.md.txt): Learn about the ard.json audit and how to catalog agentic resources on your domain.