A one-second delay in load time can cut conversions by 7% — and since 2021, speed is an official Google ranking signal. The good news: most slow sites are slow for the same handful of fixable reasons. Here's the complete playbook.
Step 1 — Measure Properly
Before optimizing, establish a baseline with free tools:
- PageSpeed Insights — lab data plus real-user CrUX data, with specific fixes.
- WebPageTest — waterfall breakdown of every request.
- Chrome DevTools → Lighthouse — test locally as you change things.
Focus on the three Core Web Vitals: LCP (main content paint < 2.5s), INP (interactivity < 200ms), CLS (visual stability < 0.1).
Step 2 — Fix Images First (Biggest Win)
Images are usually 60–70% of a page's weight. Do all four:
- Resize: serve images at the size they're actually displayed — never 4000px wide for a 800px slot.
- Modern formats: WebP or AVIF instead of JPEG/PNG (30–60% smaller at equal quality).
- Compress: tools like Squoosh, or automated plugins/pipelines.
- Lazy-load:
loading="lazy"on every below-the-fold image;fetchpriority="high"on the hero.
<img src="hero.webp" fetchpriority="high" alt="...">
<img src="diagram.webp" loading="lazy" alt="...">
Step 3 — Trim JavaScript and CSS
- Remove unused libraries — a date-picker library for one input is not a trade-off, it's waste.
- Defer non-critical scripts:
<script defer>, and load third-party widgets after interaction. - Minify and bundle; split code so above-the-fold content isn't blocked.
- Inline critical CSS for the header/hero; load the rest asynchronously.
Step 4 — Optimize Fonts
- Use
font-display: swapso text renders immediately. - Subset fonts to the characters you need and serve WOFF2.
- Preconnect to font origins:
<link rel="preconnect" href="https://fonts.gstatic.com">
Step 5 — Hosting, Caching, CDN
- Caching: set proper
Cache-Controlheaders — static assets should be cached for a year with fingerprinted filenames. - CDN: Cloudflare's free tier puts your content on servers worldwide and adds free compression.
- Compression: enable Brotli or gzip on the server.
- Server response: shared hosting with a 1s TTFB will ruin every other optimization — measure it in WebPageTest.
Step 6 — Kill Layout Shift (CLS)
- Always set
widthandheight(or aspect-ratio) on images and video. - Reserve space for ads, embeds and cookie banners.
- Never inject content above existing content after load.
The Bottom Line
Speed optimization follows the 80/20 rule: compress your images, lazy-load everything below the fold, trim third-party scripts, and put the site behind a CDN. Do those four things and you'll outperform most of the web.