All articles

For developers

Hero Images and Page Speed: How to Stop One Picture Slowing Your Site

By the ImageBerry team · November 23, 2026 · 2 min read

The first thing a visitor sees on most websites is one large picture: the hero image. It's also very often the single biggest file on the page and the element Google's Largest Contentful Paint (LCP) metric is measuring. Get it wrong and the whole page feels slow, however light the rest of it is.

What a good result looks like

Google treats an LCP of 2.5 seconds or less as good. You can see your own number by running Lighthouse in Chrome or PageSpeed Insights. If the hero is the "LCP element", you'll see it named in the report, which tells you exactly which image to work on.

Step 1: Right-size it

A hero image rarely needs to be wider than about 1600 to 2000 pixels. Anything beyond that is data most visitors never see. Use the Image Resizer & Cropper to set the width, and crop it to the ratio your design uses, often 16:9 or a wider banner shape.

Step 2: Use a modern format

Save it as WebP, and compare the file size against the JPG. For a photographic hero, a quality of 75 to 85 percent is usually where it still looks great and the size drops a lot. Switching formats is quick with the Image Converter, or use the quality slider in the Resizer. The full story is in why I convert images to WebP.

Step 3: Don't lazy-load it

Lazy-loading is great for images further down the page, but a hero is the opposite: you want it as early as possible. If you've added loading="lazy" to everything, remove it from the hero image. It's one of the most common speed mistakes I see.

Step 4: Help the browser find it early

Browsers discover images in the HTML quickly, but images set as CSS backgrounds are found later, after the stylesheet is processed. If your hero is a CSS background, switching to a real image element often helps. You can also give the browser a nudge:

<link rel="preload" as="image" href="/images/hero-1600.webp" type="image/webp">

<img src="/images/hero-1600.webp"
     width="1600" height="900"
     fetchpriority="high"
     alt="A bright workshop with tools on the wall">

The width and height reserve space so the page doesn't jump while the image loads, and fetchpriority="high" tells the browser this image matters most.

Step 5: Serve smaller versions to phones

A phone doesn't need a 1600 pixel hero. Using srcset with a few sizes, such as 640, 1024 and 1600 pixels, lets each device download only what it needs. The Bulk Image Resizer can produce the set quickly.

A quick checklist

  • Width around 1600 to 2000 pixels at most, and smaller versions for mobile.
  • WebP, with quality checked at 100 percent zoom.
  • No lazy-loading on the hero.
  • Width and height attributes set.
  • A real image element rather than a CSS background where possible.
  • Measured before and after.

If your hero has text baked into the image, consider putting the text in HTML instead. It stays sharp on every screen, it's readable by search engines and screen readers, and the image can be compressed more.

Try the tools mentioned here