Prompt
How do I speed up an image-heavy website without rebuilding everything?
Latest observation
Sep 28, 2026
OpenAI APIWeb search: off
You can usually make an image-heavy site much faster without a full rebuild by focusing on the biggest wins first: serve smaller images, load them later, and cache them better.
Highest-impact fixes
1) Resize and compress images
- Make sure images are not larger than they need to be on the page.
- Use modern formats:
- AVIF for best compression
- WebP as a very compatible fallback
- Recompress JPEG/PNG assets with tools or an image CDN.
2) Serve responsive images
Use srcset and sizes so mobile devices don’t download desktop-sized images.
<img
src="photo-800.jpg"
srcset="photo-400.jpg 400w, photo-800.jpg 800w, photo-1200.jpg 1200w"
sizes="(max-width: 600px) 400px, (max-width: 1200px) 800px, 1200px"
alt="..."
>
3) Lazy-load below-the-fold images
Only load images when they’re about to appear.
<img src="..." loading="lazy" alt="...">
For background images or more complex layouts, use an Intersection Observer approach.
4) Optimize the first visible images
For above-the-fold images:
- Don’t lazy-load them.
- Preload the main hero image if it’s critical.
- Set explicit
widthandheightto reduce layout shift.
<link rel="preload" as="image" href="/hero.webp">
5) Add caching and a CDN
- Put images behind a CDN if possible.
- Use long cache lifetimes for versioned image URLs:
Cache-Control: public, max-age=31536000, immutable
- If you can’t change filenames, at least set sensible caching headers.
6) Use an image proxy/CDN service
Without changing your app much, services like Cloudinary, Imgix, Fastly Image Optimizer, or Cloudflare Images can:
- resize on the fly
- convert formats automatically
- crop appropriately
- serve from edge locations
7) Defer non-essential image work
- Avoid loading carousels, galleries, and decorative images immediately.
- Replace some images with CSS effects, gradients, or SVG where possible.
- Use placeholders or low-quality image placeholders to improve perceived speed.
Quick audit checklist
Check these with Lighthouse, PageSpeed Insights, or WebPageTest:
- Are images oversized?
- Are next-gen formats being used?
- Are below-the-fold images lazy-loaded?
- Is the hero image prioritized?
- Are images cached?
- Are you downloading too many images on mobile?
If you want a fast “no-rebuild” plan
- Compress the top 20 largest images.
- Convert them to WebP/AVIF.
- Add lazy-loading to all non-critical
<img>tags. - Add
width/heightto every image. - Put images behind a CDN with long cache headers.
- Preload the hero image.
If you want, I can also give you:
- a step-by-step 1-hour quick win checklist, or
- specific advice for WordPress / Shopify / React / plain HTML.