How to speed up a slow website: the fixes with the biggest payoff
Slow sites lose visitors and rankings. The highest-impact fixes: image sizes, JavaScript weight, compression, caching and render-blocking scripts.
Google uses Core Web Vitals (loading, interactivity and layout stability) as a ranking signal, and visitors leave slow pages. Most slow sites have the same few causes.
Biggest wins first
- Images: serve them at the size they're shown, in WebP or AVIF, with
loading="lazy"below the fold andwidth/heightset to stop layout shift. - JavaScript weight: some AI-built apps ship 2+ MB bundles. Remove unused libraries, split code by page and lazy-load heavy widgets (chat, maps, video).
- Render-blocking scripts: add
deferorasyncto scripts in<head>that don't need to run first. - Compression: make sure your host sends gzip or brotli (most CDNs do; old shared hosting may not).
- Caching: long cache lifetimes for versioned assets, and a CDN in front of your site.
- WordPress: a caching plugin, fewer plugins and a lighter theme often matter more than anything else.
- Mixed content:
http://images or scripts on anhttps://page get blocked or warned about. Switch them tohttps://.
Measure before and after with PageSpeed Insights (it shows real-user data when available).
KeyMoat flags heavy JavaScript, blocking scripts, missing compression, layout-shift images and mixed content. Run a free scan.
Sources: web.dev performance audit, Fixing slow LCP in vibe-coded apps.
Run a free, read-only scan of your live app
Paste your URL. Checks leaked keys, exposed files, security headers and anonymous Supabase access. Only scan sites you own.
Scan my site free →