The Fastest Website in the World

Since a lot of people land on my personal website looking for help and assistance in creating really fast websites that rank well on Google, I’m often asked questions about how to make fast sites.

I’ve updated this a bit in 2024 since it was originally posted—including a variety of theme changes. It’s worth noting that I’m running WordPress at the latest release, along with a theme from the free WordPress.org repository, with no customizations—which means that the speed I achieve is something you can achieve too by following the thought processes outlined below. There’s nothing I’m doing with this fast site that you couldn’t do yourself.

If you’d like to make the fastest website in the world, how would you go about doing this?

Well, the short answer is, every single element needs to be 100% optimal.

I’ve been accused by some developers of practicing “micro-optimizations,” which I take as a compliment. Of course, I practice this. Like a Formula 1 engineer, optimal is about piling micro-optimization on top of micro-optimization to achieve a stack of optimized machinery that, when all added together, is as fast as it can possibly be.

So where to start?

Let’s begin at the beginning. I’m going to talk about hosting a PHP web application, like WordPress. You can use JS frameworks or write plain HTML, which is very fast. But the majority of businesses use a CMS, and most people who use a CMS use WordPress because it is stable and easy for less technical members to get familiar with. So let’s speed up the typical WordPress stack.

Fastest Website?

This website—robinjescott.com—loaded during testing in 0.2-0.313 seconds on home. This post’s URL loads in 0.35-0.47 seconds (tested via Pingdom) in London, UK. Load times globally will differ a little, but all elements are fully loaded in under 1 second in all test locations.

Google PageSpeed Insights lab score on the home page of this website is 98 (mobile) and 100 (desktop). Yslow score is 100.

A screengrab showing Google Core Web Vitals PASS and lighthouse metrics for this web page

This website runs the latest version of WordPress and a child theme of the stock Twenty Twenty-One theme (with a background image and dark mode styling). In short, you can be this fast.

WordPress is Fast, Secure & Ranks

  • Never been hacked—running WordPress.
  • Under 0.4 seconds fully loaded—running WordPress.
  • Ranked on the first page of Google results as “the fastest website in the world”—running WordPress.

Your Domain Nameservers and DNS

The nameservers you use to host your domain records and the DNS records themselves matter in terms of speed.

There are two issues here: lag and server response time. There are other considerations here, too, such as TTL, which tells all the various network caches around the world how long your domain DNS records are authoritative. Unless you are making regular changes to your DNS, and unless you have particularly fast and globally available nameservers, you should set this to be pretty long, like 12 or 24 hours (or more).

My recommendation for your nameservers is to look at a globally available service like AWS Route 53. These cost something like $0.50 a month to host all your domain’s DNS but are blazing fast globally.

Side Note: I also like Cloudflare—but note you can get some latency issues unless you enable Argo (which has a monthly cost and bandwidth fees), and you may struggle to keep Cloudflare’s caches warmed—which is a whole other subject. Note it is possible—I’m using Cloudflare for this site right now. Hire me if you’re in this rabbit hole!

Set your domain @ records TTL to be 48 hours or longer if you don’t expect to change these—allow network-level caching to do its thing.

Your Hosting Machine & Stack

There are a lot of elements to the hosting machine, but general rules apply, as well as some specifics.

For WordPress sites, I recommend either:

If your site is a PHP application running Magento or similar, I recommend trying your site on Cloudways—use Vultr.

Note: if your site is WordPress with WooCommerce, take a look at the Best WooCommerce hosts here.

Check out my article about best WordPress hosting over at Silicon Dales for more on this subject, which touches on the specific merits of various WP managed hosts.

Don’t Use Shared Hosting

If you are looking for optimal performance, do not use shared hosting. This is a recipe for disaster because (and the clue is in the name) your site will share resources with others, leading to bottlenecks.

Use a VPS, Cloud Host, or Dedicated Server

You want your resources dedicated to your instance. Which is best depends a little on the size, scaling requirement, and location of your hosting machine—all of which are debatable—and whether or not you need clustering or redundancy to be factored in.

Buy as Much Hardware as You Can Afford… But Not More Than You Need

I often see people throwing hardware at sites in an effort to go faster. It doesn’t work like that. You need RAM and CPU to be sufficient, and there is a performance advantage to certain choices (like choosing SSD drives or having more CPU cores for certain operations), but in a lot of cases, the hardware only needs to be sufficient. Big enough, and capable of holding the fastest software, is sufficient here.

The Web Server – Nginx

Apache is slow. There, I’ve said it. It is also a very powerful and stable web server. In my opinion, Nginx should be taking the initial requests, however, and either serving directly or caching Apache’s slight slowness out of the mix.

As someone has commented, Litespeed is a reasonable alternative to Apache. I’ve found that a LEMP stack will marginally outperform Litespeed, and I have a slight preference not to use proprietary software (Nginx is Open Source). Certainly, taking Apache out of the equation is a Good Thing.

Use PHP 7.4+

The most recent version of PHP is faster than the last. It’s also more secure. But, you will likely need to refactor your code to be error-free, particularly if you have code that is a few years old. Consider dropping support for older versions of PHP in your code if you will never use them.

MySQL – Consider MariaDB 10+ or MySQL 8

MySQL 8.0 is likely to be a real performance boost. Until this is regularly available, MariaDB 10 is a really fast alternative. Please note that conversion from MySQL 5.7+ to MariaDB is not straightforward, so you need to make a decision at this point (there are other ways to import data, but it is worth remembering to make your decision at MySQL 5.6 with this in mind).

There are other (somewhat political) reasons to make the MySQL vs. MariaDB choice. I’ll not get into politics here, except if it impacts speed. MySQL 8.0 shows a moderate performance boost over all equivalents in my most recent benchmarking.

Look at Your Code

Maybe I should have led with this. Slow performance is almost always a result of some code (or lots of code) in the system that does things the long way around. You need all the elements of your code to do things fast. Think “fast first” when you are choosing everything software related, including your theme and plugins if you use WordPress.

Check Your Plugins

If you’re running a WordPress site, you’re likely using plugins. Not all plugins are created equal. Some are quite slow. At the most basic, try to identify any plugins that are generally slow (load the site with and without them—I use WP CLI profile tool for this, but manually can work if this is how you need to work!), and see if you can remove them altogether or replace them with a lighter option.

Once you start to consider that each plugin added adds weight to your pages, you’ll become a bit more discerning about what goes into your WP site. Welcome to my world! But also, this process is necessary. You’ll never be optimal if you only think about how things look or the functionality you need without considering the performance issues this feature or additional code will raise.

BUT, remember, there is a cost to everything, and sometimes, the cost is worth paying. I liken this to a fast car—want to make it even faster? Take some weight out. Removing the back seats would make your car faster, but maybe you want seats! If you want seats in your car, removing them would be absurd (though faster). It isn’t as simple as “only thinking fast” for a car, and neither is it for a website. Optimal means the fastest car with back seats. Or maybe you need to transport 40+ people, in which case, you’re looking to make a bus travel faster. A different task, entirely 🙂

Check Your Theme

Again, for WordPress, your theme could be the source of some slowness. In general, “multipurpose” premium themes that are purchased and contain almost everything in an options panel are slower than custom-built themes, which can be kept very light.

This is like comparing that good old family car to a tricked-out racing 4WD rally car again. They have the same roots, and they look similar, but they are built for completely different purposes.

But you’re here looking for the fastest website in the world, right?!

If you want the fastest car in the world, you wouldn’t start with an SUV (a general-purpose vehicle). You’d probably start with a sports car.

For the fastest website in the world, you’re probably going to need to get your virtual hands dirty coding a custom theme—or at least developing a lightweight starter theme.

Watch out for Page Builders!

What’s a page builder? These are plugins that allow you to quickly implement designs. Popular builders include Elementor, Beaver Builder, Visual Composer, and WP Bakery.

These page builder tools allow you to quickly build beautiful designs. So convenient, and just outstanding visual appeal. However, this comes at a cost, and that cost is you sacrifice a little performance with most page builders. Some are worse than others, but a website that looks the same but doesn’t have a page builder will almost always be faster (assuming you do everything else in this post).

However, if you use the page builder to make pages, then throwing it out could be a bad move.

It is for related reasons that people create headless setups. Headless involves building your site in a fast-loading location that pulls content from the WordPress site. It’s a lot of architecture to achieve a super-fast outcome. I’m avoiding discussion of this here because it’s not for the faint-hearted and is not an option “just anyone” can implement.

The latest versions of WordPress are now shipping with “full site editing” and the Gutenberg editor; both of these will, in the near future, allow all users to dispense with their page builders. Plus, those who make page builders are now fully focused on performance to keep up.

For now, consider replacing your page builder with some PHP templates, meta boxes, or just using the built-in editor to say it with text and cut out the cruft.

Got WordPress? Get Speed

Here are a couple of services you may be interested in if you are a business and you run WordPress to really speed away from your competition:

What do you do with a fast website? Well, I like to use mine here to do things like flag retailer deals and offers—for example, these Pretty Little Thing deals & coupons.

Got Questions? Leave Them Below

There’s obviously a lot more I can add here. If you’re interested in learning more, see my long guide to optimizing WooCommerce for some granular stuff you could get into, or ask a question below.

I aim to build this section out more over time to become a working guide to the fastest possible stack for your PHP web applications.

Please ask or complain if you agree, disagree, or want to know more.

How Do I Get a Fast Website?

In conclusion:

  1. Choose a fast framework or software (WordPress is a good choice)
  2. Choose a fast host (see my post on best WooCommerce hosting—the recommendations there are fast)
  3. Don’t add plugins or frameworks that are bloated or perform “slowly” (test them!)
  4. Optimize your images—and serve them in “next-gen” formats like WebP—so they are as small as possible
  5. Lazy load elements that are unseen without scrolling—someone who doesn’t scroll won’t need to load this stuff (this includes images, CSS, JS, etc.)
  6. Think mobile first—consider AMP (yeah, there are some issues, but it is blazing fast)
  7. Cut out the cruft generally—optimization is a way of thinking, not just some magic bullet. Think about how to say what you need to say as fast as possible.

Leave a Comment