How To Fix A Slow WordPress Website On Hostinger (13 Tips)

Have a slow website on Hostinger?

Hostinger isn’t known for being fast (they also write fake reviews and are the most unethical hosting company I’ve reviewed). So while I’ll show you how to speed up your website on Hostinger, please consider leaving them because of how unethical they are. They’ve also had security incidents, outages, and we all know their support is a joke. NameHero is a great alternative who also uses LiteSpeed with better support, uptimes, and speeds than Hostinger.

 

1. Check For A Slow TTFB On Hostinger

To see if Hostinger is the problem, check your TTFB in PageSpeed Insights (or other tools like WebPageTest and KeyCDN’s Performance Test). Google will flag your TTFB if it’s over 600ms, but under 200ms is even better. TTFB also impacts other core web vitals metrics such as LCP. Nonetheless, a slow TTFB is caused by your server, which means Hostinger would be the issue.

Short server response time

 

2. Use The LiteSpeed Cache Plugin

Hostinger uses LiteSpeed servers, so it makes sense to use the LiteSpeed Cache plugin which has great reviews. It’s also faster than most cache plugins (including WP Rocket) since it uses server-level caching and has extensive settings which can speed up your website significantly.

LiteSpeed Cache has a lot of options and it’s key to make sure you’re using the best settings. While I highly recommend reading that complete tutorial to configure it, below are a few key things you can do in the LiteSpeed Cache setting that can help fix a slow website on Hostinger.

Install Redis / Memcached – in the LiteSpeed Cache Object settings, you can choose to enable Redis or memcached. To pass the connection test, login to your Hostinger hPanel, find the PHP Extensions setting, then enable the Redis or memcached extension. Save changes, then retest it.

Litespeed cache object cache memcached redis

Enable Browser Cache – enable browser cache in the LiteSpeed Cache Browser settings.

Litespeed cache browser settings

Enable Image Optimizations – LiteSpeed Cache + QUIC.cloud does image optimization, so you don’t need a plugin for it. Make sure you compress images, use WebP if you want to serve images in next-gen formats, and don’t preserve EXIF data. You can use the same settings below.

Litespeed cache image optimization settings

Enable Page Optimizations – these settings need to be tested carefully but greatly impact core web vitals, CLS, and other metrics. They also depend on other LiteSpeed Cache settings, so make sure you read my tutorial (or their documentation) to get the most out of these settings.

Disable load css asynchronously litespeed

Clean Your Database – LiteSpeed Cache cleans junk from your database and limits post revisions.To go a step further, install WP-Optimize and go through your actual plugin tables, then delete those left behind by old plugins you’ve already deleted where it says “not installed.”

Litespeed cache database optimization settings

 

3. Setup QUIC.cloud CDN

QUIC.cloud’s CDN is built to work on LiteSpeed and can give you better results than Cloudflare. It can be activated in LiteSpeed Cache’s settings (see instructions). Here are steps:

  • Request a domain key in LiteSpeed Cache
  • Enable QUIC.cloud in your CDN settings
  • Link your domain to QUIC.cloud and visit the dashboard
  • Enable the CDN in QUIC.cloud’s CDN settings
  • Use CNAME method for setting it up
  • QUIC.cloud will give you a CNAME record
  • Paste QUIC.cloud CNAME record in Hostinger hPane’s Zone Editor
  • Enable static cache + QUIC backend in the settings
  • Wait 24 hours for DNS to propagate, then make sure the CDN works in QUIC.cloud
Quic. Cloud update cname record
QUIC.cloud will give you a CNAME record
Cpanel zone editor
Paste QUIC.cloud CNAME record in cPanel → Zone Editor

 

4. Use The Latest PHP Version

Hostinger is good about releasing newer PHP versions and now supports PHP 8.0.

  1. Login to hPanel and open your Hosting Account dashboard.
  2. Under the Advanced section, click “PHP Configuration.”
  3. Select the PHP version (I recommend 7.4 or 8.0).
  4. Click save and check your website for visual errors.

Hostinger php version

 

5. Move Your DNS To Cloudflare

Most domain registrars (NameCheap, GoDaddy, Hostinger) have a slow DNS which causes latency. You’re better off using Cloudflare which is a performant DNS tested on dnsperf.com.

Dns performance

Switching your DNS to Cloudflare is easy. Sign up for a Cloudflare account, add your website, select the free plan, then Cloudflare will assign 2 nameservers which you’ll change in hPanel.

Change cloudflare nameservers

Login to your Hostinger hPanel and go to the Domains tab. Copy the 2 nameservers provided by Cloudflare, then paste them here. And finally, click “Done, check nameservers” in Cloudflare.

Hostinger nameservers

 

6. Avoid Common Slow Plugins

There are 2 types of slow plugins: plugins that increase memory usage, and plugins that add extra CSS, JavaScript, and fonts on the frontend which can damage your core web vital scores.

So it really depends on your goal. Are you having CPU issues on Hostinger and getting 503 service unavailable errors? Or are you looking to improve core web vital items related to CSS, JavaScript, and fonts caused by plugins (which you can check your GTmetrix Waterfall chart)?

Improving both is a good idea. You can view my list of common slow plugins where I used the WP Hive Chrome Extension to measure each plugin’s impact on memory usage and PageSpeed.

Slow wordpress plugins list

 

7. Reduce CPU Usage

You have to be careful with exceeding CPU usage on Hostinger.

Hostinger’s plans only come with a certain amount of inodes and resources. High CPU plugins, themes, or just lots of traffic will increase CPU which can cause a slow website and 503 errors.

Hostinger inodes

This has been posted many times in Facebook Groups:

Hostinger cpu usage 503 error

CPU usage can be seen in your Hostinger hPanel under Hosting → Manage Order → Usage.

Hostinger memory usage

Upgrading plans will help (since higher plans come with more inodes), but you should be doing things to reduce CPU so hopefully, you don’t have to upgrade. Here are tips for reducing CPU:

  • Remove high CPU plugins
  • Remove heavy page builders
  • Use a CDN to offload resources
  • Clean your database thoroughly
  • Upgrade to the latest PHP version
  • Disable the WordPresss Heartbeat API
  • Block bad bots from hitting your server
  • Replace wp-cron jobs with real cron jobs
  • Check if certain cache plugin settings increase CPU
  • Disable unused plugin modules/features you don’t use
  • Protect wp-admin by limiting login attempts or moving login page
  • Avoid running resource-intensive websites on cheap, shared hosting

 

8. Optimize For Core Web Vitals

Core web vitals are another beast.

Even if you don’t have a slow TTFB, Hostinger can affect many items such as LCP (largest contentful paint). Below are some tips to help you optimize for core web vitals which you can check in PageSpeed Insights as well as your core web vitals report in Google Search Console.

Largest Contentful Paint – PageSpeed Insights shows your largest contentful paint element which is usually an image or background image. Optimize it as best you can by making sure it uses correct dimensions, compression, preloading, etc. Several other factors impact TTFB such as TTFB (Hostinger servers), using a CDN, render-blocking CSS/JS, preloading key requests, fonts, and optimizing images/CSS/JavaScript, and configuring the “best” cache plugin settings.

Largest contentful paint wordpress element - background image

Cumulative Layout Shift – use Google’s layout shift debugger to find which elements on your website shift while loading. It’s usually related to fonts, CSS, elements without specified dimensions (images, iframes, etc), animations, or not reserving space for dynamic content (such as advertisements). Try hosting fonts locally and preloading them, adding font-display: swap to your font’s CSS, disabling asynchronous CSS in your cache plugin, using critical CSS, and using CSS transform/translate properties when using animations. These should all help improve CLS.

Cumulative layout shift debugger

Total Blocking Time – blocking time is usually caused by JavaScript on your website or from third-parties. View the “reduce impact of third-party code” and “avoid long main-thread tasks” items in your PageSpeed report to see which items cause blocking time. You can also use GTmetrix Waterfall. Try deferring JavaScript, delaying JavaScript, removing unused JavaScript in asset unloading plugins, hosting files locally if possible, and testing combine vs. not combine.

Main-thread blocking time

 

9. Remove Unused CSS + JavaScript

Removing unused CSS/JS isn’t related to Hostinger, but it can speed up a slow website.

There are several ways to do this, but you can start by finding your heaviest JavaScript and CSS files in your GTmetrix Waterfall chart or Chrome Dev Tools (shown below). Once you know the source, you can determine whether it’s from a certain plugin, your theme, or third-party source.

Usage - chrome dev tools

Tips:

  • Avoid JS/CSS heavy plugins/themes
  • Use CSS removal tools like PurifyCSS
  • Activate optimizations in Elementor/Divi
  • Use asset unloading plugins like Perfmatters or Asset CleanUp Pro
  • Code your header/footer in CSS so it doesn’t use page builder code
  • Minify CSS/JavaScript from your CDN (faster than your cache plugin)

 

10. Ditch (Or Optimize) Elementor + Divi

Elementor + Divi are notorious for slowing down WordPress as shown in page builder speed tests. Obviously, it’s best to remove it completely and replace it with a lightweight alternative (GeneratePress, Gutenberg, Oxygen Builder, Kadence theme, or even Elementor Hello Theme).

Page builder speed test

If you don’t want to remove it, there are still several things you can do. Start by activating Elementor or Divi’s performance settings which will help remove unused CSS, JavaScript, and eliminate render-blocking resources. You can also hard code your header/footer in CSS so it doesn’t rely on bloated page builder code, which still lets you create pages in your page builder.

Eliminate render-blocking resources elementor

 

11. Reduce And Optimize Fonts

Check your GTmetrix Waterfall chart to see your font’s load times.

Reducing the number of fonts on your website is the first step. Make sure fonts are hosted locally instead of pulling from third-party sites like fonts.gstatic.com (you can do this manually or by using the OMGF plugin). Use .woff2 formats and not .ttf. Finally, test preloading fonts which you can do in LiteSpeed Cache. Divi and Elementor also have settings to optimize fonts. You can also try using font-display: swap, serving fonts from your CDN, and using system fonts.

Third-party fonts

Local fonts

 

12. Delay JavaScript

One thing the LiteSpeed Cache plugin doesn’t do is delay JavaScript.

You can do this by copying the list below of common JavaScript to delay then paste it in the Flying Script plugin. You can usually delay third-party JavaScript as well as comments if you have lots of comments on your blog (I do it with comments and you can view how they load).


addtoany
cookie-law-info
apps.elfsight.com/p/platform.js
xfbml.customerchat.js
fbevents.js 
fbq(
/busting/facebook-tracking/
/sdk.js#xfbml
feedbackcompany.com/includes/widgets/feedback-company-widget.min.js
ft.sdk.min.js
getbutton.io
adsbygoogle.js
google-analytics.com/analytics.js
ga( ' 
ga('
/gtag/js 
gtag(
/gtm.js
/gtm-
translate.google.com/translate_a/element.js
static.hotjar.com/c/hotjar-
static.leadpages.net/leadbars/current/embed.js
snap.licdn.com/li.lms-analytics/insight.min.js
livechatinc.com/tracking.js
LiveChatWidget
widget.manychat.com
olark
//a.omappapi.com/app/js/api.min.js
pinit.js
pixel-caffeine/build/frontend.js
shareaholic
ShopifyBuy
sharethis
simple-share-buttons-adder
smartsuppchat.com/loader.js
Tawk_API
widget.trustpilot.com/bootstrap
static.ads-twitter.com/uwt.js
twq(
platform.twitter.com/widgets.js
wpdiscuz

 

13. Leave Hostinger

Hostinger is cheap, but they’re not fast and are very unethical. Here are 2 hosts that are better:

Cloudways has excellent feedback in Facebook Groups if you read the threads. I use their Vultr HF plan and have a fast TTFB with nice GTmetrix results (feel free to click through my blog to see how fast it loads). They use Object Cache Pro (Redis), NVMe, and have 39 data centers worldwide. Main cons are no file manager and email hosting is $1/email/month. Cloudways is a little techier because they use a custom dashboard which requires launching a server, but most people find it easy once you get used to it. It’s monthly pricing with no high renewals, 3-day trials, and includes a free migration. If your TTFB is slow, try cloning your site on Vultr HF and test the results (you can also see screenshots of people’s migration results + Facebook polls below). They have high TrustPilot ratings and if for some reason you’re not happy, just cancel your 3-day trial.

Hosting and admin

Cloudways backend speed

Cloudways vs siteground admin

Wordpress admin speed on cloudways

Siteground slow ttfb

NameHero uses LiteSpeed servers which are a newer/faster type of server (it’s cheap and voted highly in Facebook polls). You can find lots of positive feedback in Facebook Groups. I suggest NameHero over similar hosts (like A2) because they’re more reliable with better uptimes and US-based support. They also use cPanel which is beginner-friendly. NameHero has a 30-day refund policy and does free migrations, but I would only use them if your visitors are in the US or Netherlands since that’s where the data centers are. I generally recommend the Turbo Cloud plan which comes with 3GB RAM + NVMe. Large (WooCommerce) sites should use their managed cloud (or Cloudways).

Namehero vs hostinger facebook review

Namehero vs hostinger review

Hostinger sucks, do your research. They write fake reviews, were banned from Facebook Groups for voting for themselves in Facebook polls, pose as customers to trick people into buying their hosting, and had a major security breach. They even copied my website and changed all hosting recommendations to Hostinger. Please don’t support this sketchy host.

Hostinger review poll
In unbiased Facebook Groups, Hostinger is not recommended
Arnas feedback
Hostinger’s CEO admitting to fake reviews

 

Hostinger banned
Hostinger banned from Facebook Groups
Hostinger security breach
Security breach impacts 14M Hostinger customers

Conclusion: a slow website on Hostinger is usually caused by their slow TTFB, low inode limit, DNS, and slow servers. While it’s good to optimize your site no matter which host you’re on, but if you’re stuck after doing these optimizations, try moving to another host and retest your site.

Cheers,
Tom

About Tom Dupuis

Tom Dupuis writes WordPress speed and SEO tutorials out of his apartment in Denver, Colorado. In his spare time, he plays Rocket League and watches murder documentaries. Read his bio to learn 50 random and disturbing things about him.

Leave a Reply

Your email address will not be published.