How to Optimize a WordPress Hero Image for Faster Loading
A slow hero image can wreck your LCP score. Here's exactly how to fix it, in plain steps, with real numbers.

If your WordPress hero image is slowing down your site, the fix comes down to three things: the right file format, the right size, and telling the browser to load it first instead of last. Get those three right and the Largest Contentful Paint (LCP) score tied to that image usually drops within minutes of the change.
The hero image, the big banner or photo sitting at the top of a homepage, is very often the single largest element on the page. That makes it the one Google’s Chrome team singles out as the most common cause of a failing LCP score, according to web.dev, Google’s own developer documentation site. LCP measures how long it takes for the biggest visible element to finish rendering, and Google checks this at the 75th percentile of real visits: at least three out of four visits have to load fast enough, not just your own test.
What counts as “fast enough” in 2026
Despite some confusion circulating this year, Google’s documented thresholds for LCP have not changed: under 2.5 seconds is “good,” 2.5 to 4 seconds is “needs improvement,” and anything above 4 seconds is “poor,” according to web.dev. A handful of industry blogs claimed Google tightened this to 2 seconds in a March 2026 update, but that figure doesn’t appear in Google’s own published guidance, so treat it as unconfirmed and keep aiming for the 2.5-second mark that’s actually documented.

Step 1: pick the right image format
Export your hero image as WebP or AVIF instead of JPEG or PNG. Both formats compress far more efficiently at the same visual quality, and AVIF generally produces the smaller file of the two. WordPress has supported WebP uploads natively since version 5.8, and most current image-optimization plugins can convert and serve AVIF automatically where browser support allows.
A practical target repeated across performance guides this year: keep the desktop hero file under roughly 200 KB at a width of around 1920 pixels, then let WordPress’s responsive srcset output serve smaller crops to mobile visitors automatically.
Step 2: never lazy-load the hero image
This is the mistake that causes the most damage. WordPress enables lazy loading on images by default since version 5.5, but the hero image sits above the fold, it’s visible the instant the page loads, so lazy loading it actively delays LCP instead of helping it. The browser’s preload scanner normally spots an image early in the HTML and starts fetching it immediately; a loading="lazy" attribute blocks that early fetch and forces the browser to wait until the rest of the page has rendered before it even starts downloading the hero.
In practice, that means manually removing the lazy-loading attribute from your hero image, either through your theme’s settings, a code snippet, or a plugin that lets you exclude specific images from lazy loading.
Step 3: use fetchpriority to jump the queue
Once lazy loading is off, add fetchpriority="high" to the hero image tag. According to web.dev, Google’s own documentation, this attribute tells the browser to fetch that specific image at the highest priority level immediately, rather than waiting its turn behind scripts, fonts, and other images. In Google’s own published example using its Flights page, adding this single attribute took LCP from 2.6 seconds down to 1.9 seconds, no other change involved.
Google’s guidance is explicit that this only works if you apply it sparingly: setting fetchpriority="high" on more than one or two elements on a page cancels out the benefit, because the browser can no longer tell which resource actually matters most. Use it on the hero image and, if relevant, on one critical font, nothing else.
A simple WordPress checklist
loading="lazy" from the hero image specifically.fetchpriority="high" to the hero image element (and its preload tag if your theme preloads it).These four or five changes typically apply in minutes through a theme’s customizer, a child theme override, or a performance plugin, no rebuild required. If your theme makes this awkward to control, it may be worth checking whether a faster, more lightweight WordPress theme handles above-the-fold images more cleanly out of the box.
Beyond the hero image
Fixing the hero image moves the needle on LCP specifically, but it’s one piece of the broader Core Web Vitals picture for WordPress, which also covers interaction responsiveness (INP) and layout stability (CLS). Caching is the other lever worth pulling at the same time: a properly configured cache reduces server response time, which matters because LCP timing includes how long the browser waits for the very first byte of the page before it can even start looking for that hero image. A look at how different WordPress caching plugins compare is a natural next step once the image itself is sorted.
None of these fixes require a developer or a site rebuild. They’re markup-level changes, format, priority, and loading behavior, that any WordPress site owner can apply directly to a theme’s header or hero template, and the before-and-after is usually visible the next time you run a speed test.
Related guides
Priya Nair
Priya covers hosting, performance, security and backups. She reads changelogs and pricing pages so readers don't have to, and flags what changed since the last update.
Updated on November 15, 2026