I spent an afternoon on a site that took nine seconds to load. The owner had been quoted a few hundred pounds for faster hosting. The actual problem was a single photograph on the home page, 4.2 megabytes, straight off an iPhone, displayed at about a third of its size.
Resized and converted properly it came down to 180 kilobytes. The site now loads in under two seconds. Total cost: one afternoon, and no change to the hosting at all.
Why this happens constantly
Phone cameras produce enormous files. That's correct behaviour for a camera and completely wrong for a website. When somebody updates their own site, which is a good thing and I encourage it, they upload the photo as it came off the phone, because why wouldn't you.
The browser then downloads all 4 megabytes and shrinks it on screen, so it looks fine. There's no visible symptom except that everything is slow, and slowness is easy to blame on anything.
Finding the culprit
You can do this yourself in about a minute, on a laptop, with no software.
- Open your site in Chrome.
- Press F12, or right click and choose Inspect.
- Click the Network tab.
- Reload the page.
- Click the Size column to sort by it.
Whatever's at the top is your problem. If anything on that list is over about 500 kilobytes and it's an image, you've found it. Most pages should total under 2 megabytes for everything combined.
Fixing it
Two steps, and the first matters more.
Resize before uploading. Nothing on a website needs to be wider than about 2000 pixels, and most things need far less. A photo displayed in a small box on a page can be 800 pixels wide. Your phone is producing something four or five times that.
Save it as WebP. It's a newer image format that produces much smaller files at the same quality. Every current browser supports it. Most free online converters will do it, and most website platforms will do it automatically if you turn the setting on.
If you're on WordPress, a decent image optimisation plugin will handle both of these for every image you upload from now on, which is the real fix because it stops the problem recurring.
The best image setup is the one that works when you're not thinking about it.
Why it's worth bothering
Two reasons, one obvious and one less so.
People leave. A meaningful proportion of visitors abandon a page that takes more than three seconds, and on mobile data it's worse. For a shop that's money you can count.
Google notices. Page speed is a ranking factor, and more importantly the speed experienced by real visitors on real phones is what's measured. A site that's quick on your office wifi and slow on a phone in a village is being judged on the second one.
What not to do
Don't buy faster hosting before you've checked this. Don't install four performance plugins that fight each other. Don't let anyone sell you a caching service for a five page site that has one enormous photo on it.
Check the images first. It's free, it takes a minute, and it's usually the whole answer.
Want a site people can actually use?
Three questions, real range