Back to Blog

How to Optimise Images for Faster Website Load Times

How to Optimise Images for Faster Website Load Times

Images are the single largest contributor to page weight on the modern web. For UK businesses, where Google's Core Web Vitals directly influence search rankings and user experience metrics determine whether visitors convert or bounce, image optimisation is not a cosmetic concern — it is a fundamental business requirement. A slow-loading website costs you customers, damages your search visibility, and undermines the credibility you have worked hard to build.

Research consistently shows that UK consumers are impatient with slow websites. A one-second delay in page load time reduces conversions by 7%, and 53% of mobile users abandon a page that takes longer than three seconds to load. Given that images typically account for 50-80% of total page weight, optimising them is the single most impactful performance improvement most UK businesses can make.

This guide provides a comprehensive, practical framework for image optimisation. It covers format selection, compression techniques, responsive images, lazy loading, CDN delivery, and the tools and workflows that make optimisation sustainable. Whether you are a business owner managing your own WordPress site or a developer building custom web applications, these techniques will help you deliver faster, better-performing websites.

53%
of mobile users abandon pages loading over 3 seconds
70%
average page weight reduction achievable through image optimisation
£2.3m
revenue lost annually by slow UK e-commerce sites
4.7s
average UK mobile page load time (target: under 2.5s)

Understanding Image Formats

Choosing the right image format is the foundation of effective optimisation. Each format has specific strengths and weaknesses, and using the wrong format for a given image type can result in files that are many times larger than necessary.

JPEG remains the workhorse format for photographs and complex images with many colours and gradients. JPEG uses lossy compression, meaning it discards some image data to achieve smaller file sizes. At quality settings between 75 and 85, JPEG produces visually indistinguishable results from the original while reducing file size by 60-80%. JPEG does not support transparency.

PNG is ideal for images that require transparency (such as logos with transparent backgrounds), images with sharp edges and text, and graphics with limited colour palettes. PNG uses lossless compression, meaning no image data is discarded, but file sizes are typically larger than JPEG for photographic content. PNG-8 (256 colours) produces very small files for simple graphics, while PNG-24 (16 million colours) is larger but supports full transparency.

WebP is Google's modern image format that provides superior compression for both photographic and graphic content. WebP typically produces files 25-35% smaller than equivalent JPEG images and 26% smaller than PNG images, with comparable visual quality. WebP supports both lossy and lossless compression, as well as transparency and animation. Browser support is now universal across all modern browsers.

AVIF is the newest format, offering even better compression than WebP — typically 20% smaller at equivalent quality. Browser support is growing rapidly and now covers Chrome, Firefox, and Safari. AVIF is particularly effective for photographic content and is becoming the preferred format for performance-focused websites.

Format Best For Compression Transparency Browser Support Typical Saving vs JPEG
JPEG Photographs, complex images Lossy No Universal Baseline
PNG Logos, graphics, transparency Lossless Yes Universal Larger (use for graphics only)
WebP All image types Both Yes 97%+ global 25-35% smaller
AVIF Photographs, hero images Both Yes 90%+ global 40-50% smaller
SVG Icons, illustrations, logos Vector (scalable) Yes Universal N/A (resolution independent)

Compression Techniques That Work

Compression is where the most dramatic file size reductions occur. The key is finding the quality threshold below which compression artefacts become visible, then compressing to just above that threshold. For most images on UK business websites, this sweet spot delivers files 60-80% smaller than the original with no perceptible quality loss.

For JPEG images, a quality setting of 80 (on a scale of 1-100) typically produces excellent results for web display. Below 70, compression artefacts — banding, blurring, and blockiness — become visible, particularly in areas of smooth gradients such as skies and skin tones. Above 85, file size increases significantly with negligible visual improvement. The difference between quality 85 and quality 100 is often a 300% increase in file size with no visible difference on screen.

For WebP images, a quality setting of 75-80 produces results comparable to JPEG at quality 85, with significantly smaller file sizes. WebP's compression algorithm is more efficient at preserving detail at lower quality settings, which is one reason it produces consistently smaller files.

Average file size reduction with JPEG quality 80 72%
Additional savings with WebP conversion 30%
Additional savings with AVIF conversion 45%
Savings from proper image dimensions (no upscaling) 55%

Responsive Images: Serving the Right Size

One of the most common mistakes on UK business websites is serving the same large image to every device. A 2000px-wide hero image designed for desktop displays is entirely wasted on a mobile phone with a 375px-wide viewport — the browser downloads the full 2000px image and then scales it down, wasting bandwidth and slowing the page load for mobile users who are often on slower connections.

Responsive images solve this problem by serving different image sizes based on the viewer's device and viewport. HTML provides two mechanisms for this: the srcset attribute and the picture element.

The srcset attribute tells the browser about multiple versions of the same image at different sizes, allowing the browser to choose the most appropriate one based on the viewport width and device pixel ratio. For example, you might provide a 400px version for mobile, an 800px version for tablets, and a 1200px version for desktops. The browser downloads only the version it needs.

The picture element provides more control by allowing you to specify different image formats as well as sizes. This enables you to serve AVIF to browsers that support it, WebP to those that support WebP but not AVIF, and JPEG as a fallback for older browsers. This format negotiation happens automatically in the browser without any JavaScript.

Image CDNs: Automatic Optimisation at Scale

For UK businesses that manage large volumes of images — e-commerce sites, property portals, media companies — an image CDN (Content Delivery Network) automates the entire optimisation process. Services such as Cloudflare Images, Imgix, and Cloudinary accept your original images and automatically generate optimised versions in the right format, size, and quality for each visitor. The CDN also serves images from edge locations close to the user, further reducing load times. For a UK user, images might be served from a London or Manchester edge node, delivering sub-50ms response times regardless of where the origin server is located. Pricing typically starts at £15-£50 per month for SME-level usage.

Lazy Loading: Defer What Is Not Visible

Lazy loading is a technique that defers the loading of images that are not currently visible in the browser viewport. Instead of downloading every image on the page when it first loads, lazy loading downloads images only when the user scrolls them into view (or is about to scroll them into view). This dramatically reduces the initial page load time, particularly for long pages with many images.

Modern browsers support native lazy loading through the loading="lazy" attribute on img elements. This requires no JavaScript, no external libraries, and no complex configuration — simply add the attribute to any image that is below the fold (not visible in the initial viewport). The browser handles the rest, loading images as the user scrolls down the page.

For images that are visible in the initial viewport — hero images, above-the-fold product photos, and header logos — do not use lazy loading. These images should load immediately to ensure the fastest possible Largest Contentful Paint (LCP), which is one of Google's Core Web Vitals and a direct ranking factor.

Optimised Image Strategy

  • Modern formats (WebP/AVIF) with JPEG fallback
  • Responsive srcset for every viewport size
  • Compression at quality 75-85 threshold
  • Lazy loading for below-the-fold images
  • Preload hints for critical above-fold images
  • CDN delivery from UK edge locations
  • Automated optimisation in build pipeline
  • Regular performance audits with Lighthouse

Common Image Mistakes

  • Uploading original camera files (5MB+ each)
  • Using PNG for photographs (3-5x larger than JPEG)
  • Serving 2000px images to mobile devices
  • Loading all images on page load regardless
  • No preload for hero images (slow LCP)
  • Images served from origin server only
  • Manual optimisation (inconsistent, forgotten)
  • Never measuring actual page performance

Tools for Image Optimisation

A range of tools is available for UK businesses and developers, from simple online tools to sophisticated build-pipeline integrations. The right choice depends on your technical capability and the volume of images you manage.

For non-technical users managing a small business website, tools like TinyPNG (free for up to 500 images per month) and Squoosh (Google's free browser-based tool) provide simple drag-and-drop optimisation. These tools are excellent for occasional use but impractical for sites with hundreds or thousands of images.

For WordPress sites — which power a significant percentage of UK business websites — plugins such as ShortPixel, Imagify, and Smush automate the optimisation of every image uploaded to the media library. These plugins compress images on upload, generate WebP versions automatically, and can bulk-optimise existing images. Pricing starts from free (with limits) to approximately £5-£15 per month for unlimited usage.

For developers building custom websites, command-line tools such as Sharp (Node.js), Pillow (Python), and ImageMagick provide programmatic image processing. These tools integrate into build pipelines and CI/CD workflows, ensuring that every image is optimised before deployment. Modern frameworks like Next.js include built-in image optimisation components that handle format conversion, resizing, and lazy loading automatically.

Impact of Image Optimisation on Core Web Vitals
LCP Before
4.7s
LCP After
1.8s
Page Size Before
5.2MB
Page Size After
1.1MB

Measuring the Impact

Image optimisation is only effective if you measure the results. Use Google Lighthouse (built into Chrome DevTools), Google PageSpeed Insights, and WebPageTest to audit your pages before and after optimisation. These tools identify specific images that need attention, measure the impact of changes on Core Web Vitals, and provide actionable recommendations.

For UK businesses competing in local search, Core Web Vitals are particularly important. Google uses these metrics as ranking signals, and pages that meet the "good" thresholds for LCP (under 2.5 seconds), FID/INP (under 200 milliseconds), and CLS (under 0.1) receive a ranking boost compared to slower competitors. Since image optimisation is the single most impactful way to improve LCP, it directly affects your search visibility and the traffic — and revenue — that follows.

Establish a regular performance monitoring cadence. Check your Core Web Vitals monthly using Google Search Console's Core Web Vitals report, which shows real-world performance data from actual users visiting your site. If scores decline, investigate whether new unoptimised images have been added or whether other changes have affected performance.

Need a Faster Website?

Cloudswitched builds and optimises websites for UK businesses, with performance at the core of every project. From image optimisation and CDN configuration to full web development and hosting, we deliver websites that load fast, rank well, and convert visitors into customers.

Improve Your Website Performance
Tags:Image OptimisationPerformanceWeb Development
CloudSwitched
CloudSwitched

Centrally located in London, Shoreditch, we offer a range of IT services and solutions to small/medium sized companies.