Every Lighthouse and PageSpeed Warning, Explained in Plain English

What each Lighthouse and PageSpeed Insights warning actually means, why it appeared on your page, whether it matters for you — several are safe to ignore — and what to change.

Lighthouse and PageSpeed Insights describe problems in their own vocabulary, and the warnings are easy to misread. Here is what each one actually means, why it appeared, whether it matters for your site, and what to do about it.

Eliminate render-blocking resources

Your page is waiting for a stylesheet or a script to download before it will show anything at all. The content has already arrived — the browser is just refusing to paint it yet.

Why it appeared: Stylesheets in the document head block rendering by design: the browser will not show unstyled content and then restyle it in front of the visitor. A `<script>` tag without `defer` or `async` blocks the HTML parser too, so everything after it waits.

Does it matter: This one is usually worth acting on, because it delays the moment anything appears. But check the real cost first: if the blocking file is small and served quickly, the saving may be 50 ms, not the second the estimate implies.

Reduce unused JavaScript

You are sending code to the browser that this page never runs. It still has to be downloaded, parsed and compiled before it can be ignored.

Why it appeared: Usually a single bundle serving the whole site, so a product page downloads the checkout code too. Also caused by libraries imported whole when one function was needed, and by third-party scripts that ship features you do not use.

Does it matter: Worth acting on when the numbers are large, and the parse-and-compile cost matters more than the download on phones. Be careful with the estimate though: "unused" means unused *during the measured load*, and code used later on interaction is counted as unused.

Serve images in next-gen formats

Your images are in older formats like JPEG or PNG. Newer formats — AVIF and WebP — produce much smaller files that look the same.

Why it appeared: The images were exported or uploaded as JPEG or PNG and nothing converts them on the way out.

Does it matter: Usually genuinely worth doing, and often one of the largest single savings available. But it is not the first thing to check: an image that is the wrong *dimensions* wastes far more than one in the wrong format. Fix size first, then format.

Properly size images

You are sending images much larger than the space they are displayed in. A 3000-pixel-wide photo shown in a 600-pixel box means the browser downloads every byte and throws most of the detail away.

Why it appeared: One image is uploaded for every screen size, so phones receive the version prepared for desktop. Often the file came straight from a camera or a stock library.

Does it matter: This is usually the biggest and cheapest win in the whole report, and it is almost always worth acting on. It is also the one most often skipped in favour of format conversion, which saves less.

Reduce initial server response time

Your server took a long time to start answering. Until it does, the browser has nothing at all to work with, so nothing else you optimise can help.

Why it appeared: Most often no caching, so every visit rebuilds the page from scratch. Also slow database queries, redirects before the real response, a third-party API called while building the page, or an origin far from the visitor.

Does it matter: Always worth investigating, because it caps how fast the page can possibly be. But the warning does not tell you *which* of those causes is yours, and the fixes are completely different.

Minimize main-thread work

The browser spent a long time busy, doing one thing at a time. While it is busy, your page cannot respond to taps or clicks.

Why it appeared: Script evaluation is usually the largest part, followed by style and layout recalculation. Caused by large amounts of JavaScript running at load, framework hydration, and third-party scripts initialising.

Does it matter: Matters a great deal if your INP is poor, and matters very little if your INP is fine. This is a diagnostic rather than a problem in itself — read it alongside your field INP, not on its own.

Serve static assets with an efficient cache policy

Returning visitors are downloading files they already have. Your server is not telling browsers how long they may keep them.

Why it appeared: Missing or very short `Cache-Control` headers. Sometimes deliberate, because asset filenames change on every deploy and long caching would serve stale files.

Does it matter: It changes nothing for a first-time visitor, so it will not improve the metric a new visitor experiences — and Lighthouse measures a first visit. Worth fixing for returning visitors and for your own bandwidth, but do not expect your score to move much.

Ensure text remains visible during webfont load

Some of your text is invisible while its font downloads. Visitors see a blank space where words should be.

Why it appeared: By default a browser hides text for up to three seconds waiting for a web font. Without `font-display`, that is what happens.

Does it matter: Worth fixing, and the fix is one line. Note that it trades one problem for another: showing a fallback immediately means the text changes appearance when the real font arrives, which can cause layout shift. Both halves need handling.

Reduce unused CSS

You are sending styling rules this page never uses. They still have to be downloaded and parsed.

Why it appeared: One stylesheet for the whole site, or a framework shipped whole when a fraction is used.

Does it matter: Act with care. "Unused" means unused in the state the page was measured in — it does not know about hover states, dropdowns, responsive breakpoints, print styles, or classes added by JavaScript. A Coverage report is not a delete list, and deleting from one has broken a great many live sites.

Enable text compression

Your text files are being sent uncompressed. Compressed, they would be a fraction of the size.

Why it appeared: Compression is not configured on the server for these content types, or is configured for HTML but not CSS, JavaScript, SVG and JSON.

Does it matter: Nearly always worth fixing, and usually a one-line server change. Hosted platforms already do it, so the warning may not apply to you.

Defer offscreen images

Images far down the page are being downloaded before anyone has scrolled to them.

Why it appeared: No lazy loading, so every image on the page is requested during the initial load.

Does it matter: Worth doing, with one critical exception: never apply it to an image that is visible immediately, and never to your LCP element. Lazy-loading the hero is one of the most common self-inflicted performance problems there is.

Largest Contentful Paint image was lazily loaded

You told the browser to delay the most important image on the page.

Why it appeared: A blanket lazy-loading rule, or a platform that adds lazy loading automatically and did not recognise the hero.

Does it matter: Act on this one immediately. It is a direct, self-inflicted delay to the metric Google measures, and the fix is to delete an attribute.

Preload Largest Contentful Paint image

The browser found out about your main image later than it needed to, and could have started downloading sooner.

Why it appeared: The image is referenced from a stylesheet as a background, or inserted by JavaScript, so it cannot be discovered while the HTML is being read.

Does it matter: Worth acting on, but prefer the simpler fix: make the image a real `<img>` in the initial HTML, which removes the problem instead of patching it. Preload only if you cannot.

Image elements do not have explicit width and height

Your images do not say how big they are, so the browser cannot leave room for them and the page jumps when they load.

Why it appeared: The attributes were omitted, or a page builder or editor stripped them.

Does it matter: Act on it. This is the single most common cause of layout shift, and the fix costs nothing.

Avoid large layout shifts

Content moved after it had already been drawn, which is what visitors experience as the page jumping.

Why it appeared: Images or embeds without reserved space, web fonts swapping, banners inserted above existing content, or components that resize after loading.

Does it matter: Act on it if your field CLS is poor. Check first whether the flagged shifts follow a user interaction — those are excluded from the metric and may not be worth touching.

Reduce JavaScript execution time

Your scripts spent a long time running, as opposed to downloading.

Why it appeared: Large amounts of code being parsed, compiled and executed at load, plus expensive work in scripts that run immediately.

Does it matter: Matters for responsiveness. Note the distinction this warning makes and most advice misses: this is about execution, not file size. Minifying and compressing will not change it.

Reduce the impact of third-party code

Scripts from other companies — analytics, chat, adverts, reviews, tracking — are costing you a measurable amount of time.

Why it appeared: Each third party adds a connection to another server, bytes to download, and main-thread time to execute. They also change without telling you.

Does it matter: Usually the largest single cost on a commerce site, and the hardest to act on, because the decision is commercial rather than technical. Measure each one so the trade-off is informed instead of assumed.

Avoid an excessive DOM size

Your page contains a very large number of elements, which makes every change to it more expensive to draw.

Why it appeared: Long lists rendered in full, deeply nested markup from page builders, or many hidden elements present but not shown.

Does it matter: A diagnostic rather than a problem on its own. A large DOM matters when it makes interactions slow on real devices; if your INP is good, this can wait.

Avoid multiple page redirects

The browser was sent somewhere else one or more times before reaching the real page. Each hop is a full round trip.

Why it appeared: Chains such as `http://` to `https://` to `www.` to the final address, or old URLs pointing at other old URLs.

Does it matter: Worth fixing, and cheap. On a mobile connection each redirect can cost a few hundred milliseconds before anything useful starts.

Avoid chaining critical requests

Some files can only be discovered after other files have downloaded, so they queue up one behind another instead of loading together.

Why it appeared: A stylesheet that imports another stylesheet, a font referenced from inside a CSS file, or a script that loads another script.

Does it matter: A diagnostic. It explains *why* something is late rather than being a problem itself. Useful when LCP is poor and you cannot see why.

Avoid enormous network payloads

The page as a whole is very large to download.

Why it appeared: Usually images, then JavaScript. Occasionally an uncompressed video or a font family shipped in several weights.

Does it matter: A summary rather than a specific problem — it tells you the total but not what to do. Use it to decide whether to look at images or scripts first, then work from the specific warnings.

Preconnect to required origins

Your page loads files from other servers, and the browser could start opening those connections sooner.

Why it appeared: Setting up a connection needs a DNS lookup, a handshake and an encryption negotiation, and that only starts when the browser discovers the file.

Does it matter: A modest saving, worth taking for the one or two origins that serve something critical. Preconnecting to many origins is counterproductive — each connection costs resources.

Minify CSS / Minify JavaScript

Your code files still contain the spaces, line breaks and comments that make them readable to people.

Why it appeared: The files are being served as written, without a build step that strips them.

Does it matter: Easy and worth doing, but usually a small saving once compression is enabled — compression already handles repeated whitespace well. It also does nothing for execution time.

Efficiently encode images

Your images are saved at a higher quality than anyone can see, so the files are bigger than they need to be.

Why it appeared: Exported at maximum quality, or saved without any compression step.

Does it matter: Worth doing, and best done by testing rather than by rule. There is a quality level below which nobody notices and above which you are paying for nothing, and it differs per image.