C17 lesson 12 of 13 5 min read Advanced

Image Compression and Web Performance

Photography websites are full of large images, which makes them beautiful and, often, slow. A slow site frustrates visitors, especially on phones, and can affect how search engines rank it. Good image optimisation keeps photographs looking excellent while loading quickly. This lesson explains how images affect web performance, the key speed measure that matters most for image-heavy pages, and the practical techniques that keep a photography website fast.

The question this lesson answersHow do you keep a photography website fast without sacrificing image quality?

Why images affect speed

Images are usually the largest files on a web page. Every extra megabyte takes time to download, especially on mobile connections. Compression principles were covered in image compression and file quality, and preparing image sizes and formats in preparing photographs for websites. This lesson focuses on performance.

Core Web Vitals and images

Google uses a set of measures called Core Web Vitals to assess page experience. For photography sites, the most important is Largest Contentful Paint (LCP): how long the largest visible element, often a hero image, takes to appear.

Core Web Vitals in brief
MeasureWhat it meansCommonly cited good target
Largest Contentful Paint (LCP)How fast the main content (often the hero image) appears2.5 seconds or less
Interaction to Next Paint (INP)How quickly the page responds to taps and clicksAbout 200 milliseconds or less
Cumulative Layout Shift (CLS)How much the layout jumps while loadingAbout 0.1 or less

Remember:Core Web Vitals are one of many ranking factors. A fast site matters most because visitors stay longer and see more of your work.

Practical optimisation techniques

Ways to speed up image-heavy pages
TechniqueHow it helps
Correct dimensions and responsive versionsPhones download smaller files
Efficient formats (WebP, AVIF)Smaller files at similar quality than JPEG
Sensible compression qualityAvoids unnecessarily large files
Lazy loadingImages below the visible area load only when needed
Priority for the hero imageThe main image loads first; do not lazy-load it
Set image dimensions in the layoutPrevents the page from jumping as images load
Content delivery network (CDN) and cachingServes images from servers near the visitor and avoids repeated downloads

Warning:A common mistake is lazy-loading every image, including the large hero image at the top. That delays the main image and slows LCP. Load the hero image immediately and lazy-load the rest.

Balancing quality and size

  • Compare quality settings visually at the size viewers will see, not only at 100%.
  • Smooth skies and gradients show compression problems first; check them carefully.
  • Portfolio images deserve higher quality than small thumbnails.
  • Fewer, stronger images on a page often perform and present better than many, as in editing and sequencing a body of work.

Testing your site

  1. Use free testing tools such as Google PageSpeed Insights or browser developer tools to measure speed and see image suggestions.
  2. Test on a real phone and mobile connection, not only a fast computer.
  3. Check the largest images on each page and their file sizes.
  4. Fix the biggest problems first, usually oversized hero and gallery images.
  5. Re-test after changes.

Common mistakes

  • Uploading full-size camera files: very slow pages.
  • Lazy-loading the hero image: slower main content.
  • Over-compressing portfolio images: fast but unimpressive work.
  • Testing only on a fast computer: missing real mobile experience.

How professionals keep sites fast

Professional photographers choose website platforms that create responsive versions and modern formats automatically, upload carefully prepared images, prioritise hero images, lazy-load galleries and test regularly on phones. They balance speed and quality so their work looks excellent and loads quickly. Website structure is covered in photography website structure.

Practical examples

A slow wedding portfolio

Situation
Your gallery page takes many seconds to load on phones.
What to do
You re-upload images at sensible sizes, enable WebP, lazy-load gallery images below the first screen and give the first image priority.
Why it works
Smaller files and smarter loading speed up the visible page.
Result
The page appears quickly, and visitors browse more images.

A jumping layout

Situation
Text jumps down as images load, annoying visitors.
What to do
You set image dimensions or aspect ratios in your site layout.
Why it works
Reserved space prevents layout shift.
Result
A stable, smoother page.

Key points

  • Images are usually the largest files on a page and the main cause of slow photography sites.
  • Largest Contentful Paint (good target 2.5 seconds or less) often depends on the hero image.
  • Use correct sizes, responsive versions, WebP or AVIF, sensible compression, lazy loading and CDNs.
  • Never lazy-load the hero image; set image dimensions to prevent layout shift.
  • Test on real phones and fix the largest images first.

Frequently asked questions

Why is my photography website slow?
Usually oversized images. Resize, compress, use modern formats and lazy-load images below the first screen.
What is Largest Contentful Paint?
How long the largest visible element, often the main image, takes to appear; 2.5 seconds or less is a common good target.
Should I lazy-load all images?
No. Load the main hero image immediately and lazy-load images further down the page.
How do I test my website speed?
Use free tools such as Google PageSpeed Insights and test on a real phone.

Conclusion

Fast photography websites balance quality and size: correct dimensions, responsive versions, efficient formats, smart loading and regular testing. Next, you will learn about sharing and publishing images online responsibly.

Finished reading? Track your progress through Printing and publishing.

Related lessons

0 views