Why is my website slow?
Ce contenu n’est pas encore disponible dans votre langue.
1. Measure first
Section titled “1. Measure first”Test your site with a free tool, so you know where the time goes and can see whether changes help:
- PageSpeed Insights (by Google)
- GTmetrix
Test the same page a few times. Look at:
| Measure | What it tells you | If it’s slow |
|---|---|---|
| Time to First Byte (TTFB) | How long the server takes to build the page | Caching, plugins, PHP version, database |
| Largest Contentful Paint (LCP) | When the main content appears | Images, fonts, scripts |
| Total page size | How much the visitor downloads | Images and videos |
2. Turn on caching (biggest win)
Section titled “2. Turn on caching (biggest win)”Without caching, WordPress builds every page from scratch for every visitor. With caching, most visitors get a ready-made copy instantly.
- WordPress: install LiteSpeed Cache. It’s free and works directly with our LiteSpeed servers.
- Object cache: for online stores and busy sites, add Redis or Memcached. See Using Redis or Memcached object cache with WordPress.
- Cloudflare serves your site from servers near your visitors. See Cloudflare CDN.
3. Shrink your images
Section titled “3. Shrink your images”Large photos are the most common reason pages are heavy.
- Resize images to the size they’re shown, usually no wider than 2000 pixels.
- Use modern formats such as WebP. LiteSpeed Cache can convert images for you. See Optimizing images with LiteSpeed Cache.
- Host videos on YouTube or Vimeo and embed them, rather than uploading them.
4. Remove what you don’t need
Section titled “4. Remove what you don’t need”- Plugins: deactivate and delete plugins you don’t use. Replace heavy ones, such as all-in-one page builders, sliders and statistics plugins, with lighter options.
- Theme: a lightweight theme makes a big difference.
- Third-party scripts: chat widgets, ad networks, social feeds and trackers each add time.
5. Use a current PHP version
Section titled “5. Use a current PHP version”Newer PHP versions are much faster. Use PHP 8.2 or newer if your site supports it. See Changing your PHP version and settings.
6. Clean up your database
Section titled “6. Clean up your database”Old revisions, spam comments, expired data and logs slow down database queries. See Optimizing WordPress database.
7. Check your account isn’t at its limits
Section titled “7. Check your account isn’t at its limits”If your site is fast sometimes and very slow at others, your account may be reaching its CPU or memory limits during busy periods. Check Resource Usage in cPanel. See Fixing 503 and 508 errors.
WordPress dashboard slow but the site is fast?
Section titled “WordPress dashboard slow but the site is fast?”The dashboard isn’t cached, so plugins show their true cost there. Common causes are plugins that load data from other websites, the WordPress Heartbeat, and a large database. The Query Monitor plugin shows which plugin is slow.
Related articles
Section titled “Related articles”Cette page vous a-t-elle aidé ?
Merci pour votre retour.