Why your website loads slowly and how to speed it up
A slow website is one of the most common questions from site owners. Visitors don't wait long: if a page takes too long to open, many of them leave before they see anything. Slow loading also hurts search rankings. Before you change anything, it's worth finding out where the problem comes from.
Hosting or the site itself: find the cause first
A slow website usually has one of two causes. Either the server can't keep up, because it has too few resources or is overloaded, or the site is too heavy: large images, too many scripts, too many plugins. Check what takes the longest. You can use the PageSpeed Insights tool, or the Network tab in your browser's developer tools (press F12).
Compression
The server can send HTML, CSS and JavaScript files in compressed form (gzip or Brotli). Text files become many times smaller after compression, so the browser downloads them faster. Check whether compression is on: in the developer tools, the response headers will show Content-Encoding.
Caching
Caching works on two levels. The browser remembers files it has already downloaded, so it doesn't fetch them again on the next visit. A server-side cache saves a ready version of the page instead of assembling it for every visitor. On WordPress, a suitable plugin does this. In a shop, be careful: the basket and the customer account must not be cached, because every visitor has different data.
Image optimisation
The most common cause of a heavy page is camera photos that weigh several megabytes. Do the following:
- resize images to the size at which they are actually displayed,
- save them in modern formats such as WebP,
- turn on lazy loading, so images below the fold load only when the visitor scrolls to them.
<img src="photo.webp" width="800" height="600" loading="lazy" alt="Photo description">
Fewer scripts and plugins
Every plugin and every external script (a chat widget, a map, an advertising pixel) adds loading time. Remove what you don't use. Load heavy elements, such as maps or chats, only after a click, or when the visitor reaches them on the page.
When hosting is the problem
- The site is fast at night and slow at peak times.
- Even a simple page without images loads slowly, and the server responds with a clear delay.
- With more traffic, the site hangs or server errors appear.
In that case, changing the images won't help. You need more resources: better hosting or a VPS server.
When the site itself is the problem
- PageSpeed shows many large images and render-blocking scripts.
- The server responds quickly, but the page still loads slowly.
- The site works well on a computer but slowly on a phone.
In that case, start with images and scripts. That is usually where most of the problem sits.
Checklist
- Checked what takes the longest.
- Compression turned on.
- Caching on for visitors, and off for the basket and the customer account.
- Images in WebP, resized to display size, with lazy loading.
- Unused plugins and scripts removed.
- Known whether the problem is the hosting or the site.
Not sure what is slowing down your site? Write to us at [email protected] and we will check the server and the site.
The Chmura.tech team