My website feels slow. What should I check first?
Before you change host, buy a bigger server or let someone sell you a "speed package", find out where the time is going. A slow website is nearly always one of three things: the server is slow to answer, the page is too heavy, or the code behind it is doing too much work.
They have different fixes, and the free tools will usually tell you which one you've got in about ten minutes.
First, check it isn't just you
"It feels slow" on your office wifi isn't the same as slow for your customers. Try it on your phone with the wifi off, on a page you don't normally visit.
Then get a proper measurement.
Run it through PageSpeed Insights
Google's PageSpeed Insights is free and needs nothing installed. Paste in your address and it gives you two sets of results, and the difference matters.
The top part, if your site gets enough visitors, is real data from people using Chrome over the previous 28 days. That's what your customers actually experienced. A small site may not have enough visits for this, in which case you'll only see the second part.
The second part is a lab test: one load on a simulated phone on a mobile connection. Useful for spotting problems, but the score wobbles a bit each run.
Don't chase 100. Look at the three numbers Google calls the Core Web Vitals:
- LCP (how long the main content takes to appear). Good is 2.5 seconds or less.
- INP (how quickly the page responds when someone taps or clicks). Good is 200 milliseconds or less.
- CLS (how much things jump about while it loads). Good is 0.1 or less.
If all three are green on the real-user data, your site is fine for most people, whatever it feels like on the office wifi.
Then ask: is it the server or the page?
This is the useful bit. Further down the PageSpeed report there's a figure for how long the server took to send the first part of the page, often shown as TTFB (time to first byte). Google's guidance is that most sites should aim for 0.8 seconds or less.
If you're comfortable with a terminal, you can check it yourself:
curl -o /dev/null -s -w "%{time_starttransfer}\n" https://www.yourbusiness.co.uk/That prints the time in seconds until the first byte came back. Run it a few times, on a few different pages.
If the first byte is quick but the page is still slow, the problem is the page itself. Usually it's huge images, too many plugins each loading their own scripts, a slider nobody looks at, web fonts, chat widgets and tracking tags. The PageSpeed report lists these under its suggestions, roughly in order of how much they'd help.
If the first byte is slow, the time is going before the page even starts to arrive. That's the server, the database or the code, and no amount of image squashing will fix it.
If it's the page
This is often the cheapest fix, and you may be able to do some of it yourself. Resize photos before you upload them, because a picture straight off a phone is far bigger than it ever appears on screen. Remove plugins and widgets you don't use. On WordPress, a decent caching plugin can make a big difference on a site that's mostly pages.
If it's the server or the code
Now you need someone to look behind the scenes. The usual suspects are a server that's simply too small or overloaded, an old version of PHP or the database, no caching at all, or a database that's grown for years without anyone tidying it.
On a bespoke app it's often the code. Pages that fetch every record and filter them afterwards, or ask the database the same question hundreds of times, are fine with 50 customers and painful with 50,000. The team at Dev Partners wrote up one case where a dashboard went from 23 seconds to 200 milliseconds by fixing exactly that kind of thing, without a rewrite.
A bigger server only helps if the server really is the bottleneck. If it's the code, you'll pay more every month and it'll still be slow.
Does it matter for Google?
A bit. Google says Core Web Vitals are used by its ranking systems, but a good score doesn't guarantee the top spot, and relevance still comes first. Speed matters more to your customers than to Google. People don't wait.
What to do this week
- Run your home page and your busiest page through PageSpeed Insights. Note the three Core Web Vitals and the TTFB.
- If the vitals are green, stop worrying.
- If they're not, look at TTFB. Under 0.8 seconds, work on the page. Over it, look at the server and the code.
- Write the numbers down, so you can tell if whatever you change actually helped.
If the server end looks slow and you're not sure why, a health check is a good place to start. I'll go through the server, the software versions and the load, and tell you plainly whether more hardware would help or not. If it turns out to be the code, that's the team at Dev Partners' world, and their support and maintenance work covers exactly that.
Liked that? Get the next one by email
When a security flaw lands that could affect your server, I'll email you what it means and what to do. Plus the odd opinion piece. Not often, no spam.