Back to Blog

Website Speed Optimisation: A Practical Guide

Website Speed Optimisation: A Practical Guide

Website speed is no longer a technical nicety — it is a fundamental business metric. Google has used page speed as a ranking factor since 2010 and introduced Core Web Vitals as explicit ranking signals in 2021. Research consistently shows that 53% of mobile users abandon a page that takes longer than three seconds to load. For UK businesses competing in increasingly crowded digital markets, a slow website is not just a poor user experience — it is a measurable drag on revenue, conversions, and search visibility.

Yet despite the well-documented importance of website performance, a significant number of UK business websites remain painfully slow. Bloated images, unoptimised code, excessive third-party scripts, poor hosting choices, and a general lack of performance awareness combine to create websites that frustrate users and underperform in search results. The good news is that most speed problems are solvable, and the improvements can be dramatic — often reducing page load times by 50-80% with a structured optimisation approach.

This guide provides a practical, actionable framework for improving your website's speed, covering the most impactful optimisation techniques in order of priority. Whether you are running a WordPress site, a custom-built application, or an e-commerce platform, these principles apply universally.

53%
of mobile visitors abandon sites that take over 3 seconds to load
7%
decrease in conversions for every 1 second delay in page load
2.5s
Google's recommended Largest Contentful Paint target
£47K
Estimated annual revenue loss for a slow UK e-commerce site (£500K turnover)

Understanding Core Web Vitals

Before diving into optimisation techniques, it is essential to understand the metrics that matter. Google's Core Web Vitals are the three performance metrics that directly influence your search rankings and reflect real user experience.

Largest Contentful Paint (LCP)

LCP measures how long it takes for the largest visible element on the page — typically a hero image, heading, or text block — to render in the viewport. Google considers an LCP of 2.5 seconds or less as "good," between 2.5 and 4 seconds as "needs improvement," and over 4 seconds as "poor." LCP is the metric most closely correlated with perceived loading speed — it represents the moment when the user feels the page has loaded enough to be useful.

Interaction to Next Paint (INP)

INP replaced First Input Delay in March 2024 and measures the responsiveness of the page to user interactions throughout its entire lifecycle. It captures the latency of all clicks, taps, and keyboard interactions, reporting the worst interaction (with some outliers excluded). An INP of 200 milliseconds or less is considered "good." Poor INP typically results from heavy JavaScript execution blocking the main thread.

Cumulative Layout Shift (CLS)

CLS measures visual stability — how much the page layout shifts unexpectedly as it loads. We have all experienced the frustration of trying to click a button only to have it jump away as an image or advertisement loads above it. A CLS score of 0.1 or less is considered "good." Layout shifts are most commonly caused by images without specified dimensions, dynamically injected content, and web fonts that cause text to reflow.

Core Web Vital What It Measures Good Needs Improvement Poor
LCP (Largest Contentful Paint) Loading performance ≤ 2.5 seconds 2.5 - 4.0 seconds > 4.0 seconds
INP (Interaction to Next Paint) Interactivity responsiveness ≤ 200ms 200 - 500ms > 500ms
CLS (Cumulative Layout Shift) Visual stability ≤ 0.1 0.1 - 0.25 > 0.25

Image Optimisation: The Biggest Win

Images typically account for 50-80% of a web page's total weight. Optimising images is almost always the single most impactful change you can make to improve page speed. The key techniques are format selection, compression, responsive sizing, and lazy loading.

Modern Image Formats

WebP and AVIF are modern image formats that provide significantly better compression than JPEG and PNG. A WebP image is typically 25-35% smaller than an equivalent JPEG at the same visual quality. AVIF offers even better compression — up to 50% smaller than JPEG — but browser support, while growing, is not yet universal. Use the HTML picture element to serve WebP or AVIF with a JPEG fallback, ensuring all users see images while modern browsers benefit from the smaller file sizes.

Responsive Images

Serving a 2000-pixel-wide hero image to a mobile phone with a 400-pixel-wide screen wastes enormous amounts of bandwidth. Use the srcset attribute to provide multiple image sizes, allowing the browser to choose the appropriate version for the user's screen. Generate image variants at common breakpoints — typically 400, 800, 1200, and 1600 pixels — and let the browser handle the selection.

Lazy Loading

Images below the fold — those not visible when the page first loads — should be lazy loaded, meaning they are only downloaded when the user scrolls near them. The native HTML loading="lazy" attribute provides this functionality without any JavaScript. This technique can reduce initial page weight by 40-60% on content-heavy pages, dramatically improving LCP for the content that users actually see first.

Image optimisation
Highest impact
JavaScript optimisation
High impact
Caching strategy
High impact
Server / hosting upgrade
Moderate-high
CSS optimisation
Moderate impact
Font optimisation
Moderate impact

JavaScript Optimisation

After images, JavaScript is the second largest contributor to slow page loads. Unlike images, which the browser can download and display progressively, JavaScript must be downloaded, parsed, compiled, and executed — and while this happens, the browser cannot do much else. Heavy JavaScript blocks rendering, delays interactivity, and is the primary cause of poor INP scores.

Audit Your Scripts

Many websites accumulate JavaScript over time like barnacles on a ship. Analytics scripts, chat widgets, social media plugins, A/B testing tools, advertising pixels, and abandoned experiments all add up. Use Chrome DevTools' Coverage tab to identify JavaScript that is downloaded but never executed — it is not uncommon to find that 50-70% of downloaded JavaScript is unused on any given page. Remove or defer everything that is not essential for the initial page render.

Defer and Async

Scripts that are not needed for the initial page render should use the defer or async attribute. Defer downloads the script in parallel with HTML parsing but delays execution until parsing is complete. Async downloads and executes the script as soon as it is available, potentially interrupting parsing. For most third-party scripts — analytics, chat, social — defer is the correct choice.

Code Splitting

For single-page applications and JavaScript-heavy sites, code splitting breaks your JavaScript bundle into smaller chunks that are loaded on demand. Instead of downloading 2MB of JavaScript before anything renders, the browser downloads only the 200KB needed for the current page, with additional modules loaded as needed. Modern build tools like webpack, Vite, and esbuild make code splitting straightforward.

The Third-Party Script Problem

Third-party scripts are the most common performance culprits on UK business websites. Google Analytics, Google Tag Manager, Facebook Pixel, HubSpot tracking, Intercom chat, cookie consent banners — each adds 50-500KB of JavaScript and potentially dozens of additional network requests. Audit every third-party script on your site and ask: does this provide measurable business value that justifies its performance cost? If you cannot answer yes with confidence, remove it. A website that loads in 1.5 seconds with three third-party scripts will always outperform one that loads in 5 seconds with fifteen.

Hosting and Infrastructure

No amount of front-end optimisation can compensate for a slow server. If your server takes 2 seconds to generate a page before the browser even starts rendering, you are starting from a significant deficit.

Choose the Right Hosting

Cheap shared hosting — where your website shares server resources with hundreds of others — is the most common cause of slow server response times for UK small business websites. A dedicated VPS or managed cloud hosting solution from a provider with UK data centres can cut server response times from 1-3 seconds to under 200 milliseconds. The cost difference is typically £20-50 per month, which is trivial compared to the revenue impact of a slow website.

Use a Content Delivery Network

A CDN caches your website's static assets (images, CSS, JavaScript) on servers distributed across multiple locations. When a user in Glasgow requests your page, they receive assets from the nearest CDN node rather than from your origin server in London, reducing latency significantly. Cloudflare offers a generous free tier that provides CDN, DDoS protection, and basic performance optimisation — there is no reason for any UK business website not to use a CDN.

Speed-Optimised Website

  • WebP/AVIF images with responsive sizing
  • Lazy loading for below-fold content
  • Minimal, deferred JavaScript
  • CDN for global static asset delivery
  • Server response under 200ms
  • Core Web Vitals all in green
  • Regular performance monitoring

Typical Slow Business Website

  • Uncompressed JPEG/PNG images at full resolution
  • All images loaded immediately regardless of position
  • 15+ third-party scripts blocking rendering
  • No CDN — everything served from one location
  • Cheap shared hosting with 1-3s response times
  • Core Web Vitals failing on all three metrics
  • Performance never measured or monitored

Measuring and Monitoring Performance

Optimisation without measurement is guesswork. You need both lab data (synthetic testing in controlled conditions) and field data (real user measurements) to understand your website's performance accurately.

Google PageSpeed Insights is the essential starting tool — it provides both lab and field data for any URL, along with specific, actionable recommendations. Google Search Console's Core Web Vitals report shows how Google classifies your pages based on real user data. For deeper analysis, Chrome DevTools' Performance and Lighthouse panels provide detailed waterfall charts and timing breakdowns.

Most importantly, establish performance budgets and monitor them continuously. Set targets for page weight (under 1.5MB), LCP (under 2.5 seconds), INP (under 200ms), and CLS (under 0.1), and configure alerts when pages exceed these budgets. Performance tends to degrade gradually as new features and content are added — without monitoring, you will not notice until the impact is significant.

UK business sites passing all Core Web Vitals38%
UK business sites using a CDN52%
UK business sites using WebP images41%
UK business sites monitoring performance regularly19%

Is Your Website Costing You Business?

Cloudswitched provides comprehensive website performance audits and speed optimisation services for UK businesses. From Core Web Vitals assessment to image optimisation, JavaScript reduction, and hosting improvements, we identify and fix the issues that are slowing your site down and costing you customers. Contact us for a free website speed assessment.

GET IN TOUCH
Tags:Website SpeedPerformanceOptimisation
CloudSwitched
CloudSwitched

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