How to Fix a Slow-Loading Website
Diagnose and fix slow website loading times with caching, image optimisation, and database cleanup — without changing your hosting plan.
Fixing a Slow-Loading Website
A slow website loses visitors and ranks lower in Google. Here is a systematic approach to diagnosing and fixing speed issues.
Step 1 — Measure Your Current Speed
Use these free tools to get a baseline:
- Google PageSpeed Insights (pagespeed.web.dev)
- GTmetrix (gtmetrix.com)
- Pingdom (tools.pingdom.com)
Run tests from a Nairobi or Johannesburg server for accurate local results.
Step 2 — Enable Caching
For WordPress — Install WP Super Cache or W3 Total Cache:- WordPress admin → Plugins → Add New
- Search for "WP Super Cache"
- Install and activate
- Go to Settings → WP Super Cache → Enable Caching → Update Status
- cPanel → Software → LiteSpeed Web Cache Manager
- Enable LiteSpeed Cache
Step 3 — Optimise Images
Large images are the #1 cause of slow websites.
For WordPress:- Install Smush or ShortPixel plugin
- Run bulk optimisation on all existing images
- Enable WebP conversion for modern browsers
- Use squoosh.app to compress images before uploading
- Target: under 200 KB per image for photos, under 50 KB for logos
Step 4 — Enable GZIP Compression
Add to your .htaccess file:
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css
AddOutputFilterByType DEFLATE application/javascript application/json
</IfModule>
Step 5 — Clean Up Your WordPress Database
- Install WP-Optimize plugin
- Run database cleanup: remove post revisions, spam comments, transients
- Schedule weekly automatic cleanup
Step 6 — Use a CDN
A Content Delivery Network (CDN) serves your static files from servers closer to your visitors.
Free option: Cloudflare (cloudflare.com)- Sign up for free
- Add your domain
- Update nameservers to Cloudflare's nameservers
- Enable Auto Minify for HTML, CSS, and JavaScript
Step 7 — Upgrade PHP Version
Newer PHP versions are significantly faster.
- cPanel → Software → MultiPHP Manager
- Switch to PHP 8.2 (fastest current version)
- Test your site for compatibility
Still need help?
Our Kenyan support team is on WhatsApp — real people, not bots. We respond in under 15 minutes.