Performance
Why does the largest image on my WordPress page load slowly?
Find your LCP element and fix the usual WordPress causes: slow server, lazy-loaded hero images, sliders, background images and oversized files.
When the largest picture or text block on your WordPress page loads slowly, Google reports it as a slow LCP (Largest Contentful Paint). To fix it, first find out which element it is, then check the four usual causes in order: the server answers late, the image is found late (a slider, a background image or lazy loading), the image file is too big, or a font or stylesheet holds the page back. Most of these are fixed in WordPress settings and your page builder, without code.
For what LCP is and how it fits with the other Core Web Vitals, see Core Web Vitals explained. This guide is only about finding and fixing a slow LCP on WordPress.
What LCP means in plain words
LCP is the moment the biggest thing in the visible part of the page appears. On most WordPress sites that is the hero image at the top, a slider, a featured image or a large heading. Google considers 2.5 seconds or less good, measured on real visitors' devices.
LCP is a chain. The browser must first get the HTML from your server, then find the image or text in it, then download it, then show it. A delay anywhere in the chain delays LCP.
Step 1: Find your LCP element
- Run the page through corewebvitals.page. It shows your LCP from real visitors if Google has enough data, and a lab test of the page.
- In the lab results, look for the item that names the Largest Contentful Paint element. It shows which image or text block it is, often with a small preview.
- Note whether it is an image, a background image (an image set in the design, for example a full-width banner in a page builder) or text.
Test your homepage and one typical post or product page. They often have different LCP elements.
Step 2: Check the server's answer time
If the first answer from your server (TTFB, time to first byte) already takes a second or more, everything after it starts late. Signs: high TTFB in the test, and LCP is slow on every page, not only on pages with big images.
Fixes, from easiest:
- Use page caching. A caching plugin, or your host's server cache, keeps finished pages so WordPress doesn't build them for every visitor.
- Update PHP in your hosting panel to a current version your plugins support.
- Serve pages from closer to your visitors. An edge cache in front of your site answers from a server near the visitor (see below).
Our guide on reducing TTFB goes deeper.
Step 3: Make sure the browser finds the image early
This is the most common WordPress cause. The browser can only start downloading the LCP image once it knows about it.
Lazy loading on the top image
Lazy loading means an image loads only when the visitor scrolls to it. That is good for images further down, but bad for the first big image. Since WordPress 6.3, WordPress itself tries to skip lazy loading for the image most likely to be the LCP and gives it a high priority hint (fetchpriority="high"). But this only works for images WordPress outputs itself, such as images in the post content and featured images.
What to check:
- Optimization plugins. If a speed plugin adds lazy loading to all images, look for a setting to exclude the first images or "above the fold" images, and exclude your hero image.
- Page builders. Many builders have their own lazy loading setting per image or per section. Turn it off for the top image.
Sliders and background images
Sliders and background images in page builders are often added by JavaScript or by the design (CSS). The browser finds them only after loading and running those files, so they start downloading late.
- Replace a slider with one static image in the first screen. Sliders are rarely worth what they cost in speed.
- Use a normal image block instead of a section background for the hero image, where your builder allows it. A normal image appears in the HTML, so the browser finds it right away and WordPress can give it priority.
Step 4: Make the image smaller
A hero image of several megabytes takes long to download on a phone, even when it is found early.
- Upload it at the size it is shown. A banner that appears 1,600 pixels wide doesn't need a 5,000 pixel original.
- Use a modern format. WebP and AVIF are usually much smaller than JPEG and PNG at similar quality.
- Check the size WordPress uses. WordPress creates several sizes of each upload. In the image block settings, choose a size close to how big it appears, not "Full size".
Our guide on optimizing images for the web explains formats and sizes.
Step 5: If the LCP element is text
When the LCP is a heading or paragraph, the image steps don't apply. The usual causes are:
- Web fonts loading late. If the font file is slow, some browsers wait before showing the text. Fewer font files and font weights help.
- Large stylesheets and scripts in the page head. The browser has to load them before it shows anything. Optimization plugins can delay non-essential scripts; test carefully after each change.
How fast.site helps with LCP
fast.site is a service in front of your WordPress site, connected by changing your domain's nameservers. It helps with two links of the LCP chain:
- The server's answer. Public pages and files are cached on fast.site's edge servers in the regions included in your plan, so a cached page is answered near the visitor without waiting for WordPress. That lowers TTFB, which every LCP starts with.
- The image download. JPEG and PNG images are converted to WebP for browsers that support it, on plans with image optimization, without a plugin.
fast.site doesn't change when your theme or page builder tells the browser about an image. A slider, a lazy-loaded hero or a background image found late still needs the fixes from Step 3. Details are on the WordPress page.
Step 6: Measure again
Run the same pages through the same tool after each change. Lab results change right away. Real-visitor data on corewebvitals.page and in Search Console looks back 28 days, so it takes a few weeks to show the full effect.
FAQ
What is a good LCP for WordPress?
Google considers an LCP of 2.5 seconds or less good, measured at the 75th percentile of real visits. That means three out of four visits should be at least that fast.
Why is my WordPress hero image the LCP element?
Because it is usually the largest thing in the first screen. That's normal. The goal is not to remove it, but to make sure it is found early, isn't lazy-loaded and isn't larger than it needs to be.
Does lazy loading hurt LCP?
On the first visible image, yes, because the browser waits before loading it. On images further down the page it helps. Exclude your hero image from lazy loading in your optimization plugin or page builder.
Can a CDN fix a slow LCP on WordPress?
A CDN or edge cache helps when the slow part is the server's answer or the download over a long distance. It doesn't fix an image that your theme reveals late, such as a slider or a background image. Most slow LCPs need both kinds of fixes.
Do I need a developer to fix LCP?
Often not. Excluding the hero from lazy loading, replacing a slider, using an image block instead of a background and uploading smaller images are all settings. You may need help if the theme itself loads the image through JavaScript.
Test it on your own site
fast.site adds edge caching, image optimization and DDoS protection in front of your existing hosting. Connect your domain and measure the difference on your own pages.
Give your website 7 days. Let the results decide.
Start with your own domain, your own traffic and a clear understanding of what comes next.