Speed Matters:: 21 Expert Tips To An Ultra-Fast Wordpress Website
Speed Matters:: 21 Expert Tips To An Ultra-Fast Wordpress Website
21 Expert Tips to
an Ultra-Fast
WordPress Website
WHY SITE SPEED
MATTERS?
There is much research that indisputably shows that the loading
speed of a website is really important. In an age where new tech-
nologies appear every day, where the speed of computers and
INTRO
the Internet increases greatly with each new innovation that
becomes widely used, the attention span of the visitor is much
shorter than it used to be a few years ago.
2
1
IDENTIFY AND
PRIORITIZE
ISSUES
3
BE N CH MARK
The first thing you should do is find out if you actually have a problem. The easiest way to
do so is to use benchmark tests. There are some free tools such as:
GTMetrix (https://gtmetrix.com)
There are many other tools out there and generally if you have the time, the more tests you
Identify and Prioritize Problems
perform on your site the better. However, these two tools are usually sufficient to get a
clear picture about how your website is performing in terms of speed.
Pro Tip: Even though most of the benchmarking tools will give you a “grade”, don’t go
too far chasing it. If your website loads in under one second, you’ve done the biggest
part of the job.
4
CO M MON ISSUES
If the benchmark tests show you have an issue with your site
speed, the next step is to identify the actual blockers. Although
every website is different and has it’s own set of speed issues,
some problems are very common and it’s safe to start with them:
5
2
PAGE SIZE &
CONTENT
OPTIMIZATIONS
6
1 . R EDUCE T HE NUM BE R OF P OS TS
S H OWN ON YOUR I N D E X PAG E
into pages using the <!--nextpage--> tag within the post content.
By doing this, you will see a pagination under the page or posts
and your users will be able to navigate through them by clicking
on the next pages.
This will split one big and slow page into several faster ones.
7
3 . R EPLACE SLI DER WITH M U LTIP L E IM AGE S
WITH ONE STAT I C I MAG E
4 . USE APPROPRI AT E IM AG E S IZ E S
Images are an essential part of a website, which take time to
transfer from the server while the site is loading.
8
Even if the image file is reduced by just a few KBs, when you
combine all the images on one page, usually the performance
gain is significant.
Check your website and include only the font variation that you’re
actually using.
If you get a lot of comments, this may be slowing your site in two
ways. First, this makes your page more dynamic (if you have
enabled caching, it has to be cleared more often) and second
each comment adds to the size of your page and HTML output.
of comments.
Disqus is also an option, but it’s a third party service that relies
on a plugin to replace your default comment system with theirs. It
will offload the comments from your site, but they will no longer
be stored on your server.
9
8 . E NA BLE G ZI P CO M P RE SS ION
FO R YO UR PAGES
GZIP COMPRESSION
gZIP
&view
Server Visitor
10
9 . M INIF Y AND COMBIN E JS A ND C SS F IL ES
Minification and combination are two techniques with one pur-
pose - to reduce the size and number of JavaScript and CSS files
that your site loads. Minification strips all unnecessary symbols by
removing precious bites from being loaded every time you
request an URL.
1 0. E NABLE CACHI N G
The easiest way to cache your site is through a plugin. This saves
the cached content on the server’s hard disk and significantly
improves site performance since your content won’t be dynami-
cally loaded every time. WP Rocket is a great premium option, or
if that’s outside your budget, try WP Super Cache.
Page Size & Content Optimizations
11
3
THEME &
PLUGINS
OPTIMIZATIONS
Theme & Plugins Optimizations
Both themes and plugins are essential to the speed of your site since they
are basically pieces of code that your site executes when it gets accessed.
That code often needs optimizations as well.
12
1 1. SE LECT A REPU TA BL E TH E M E F ROM
A SOLID PROVI DER
Every hour you spend researching your theme provider and the
theme itself will save you days later on when you invest time and
money in your site and add all your content. Read reviews for the
themes, try getting some actual feedback from users, check
whether the company is trusted in the WordPress community.
Don’t trust a theme provided by an unknown designer that does
not respond to his/her customers.
1 2. AVO ID BLOAT ED TH E M E S
When you’re looking for a theme for your website, you will surely
stumble upon themes that claim they can be used for virtually
any kind of website. Many of these are full of features, sliders,
carousels, etc. All of these features require JavaScript and CSS
resources to work and if you’re not using them, you’re simply
wasting resources.
Theme & Plugins Optimizations
13
13 . A LWAYS USE A C H IL D TH E M E WH E N
C R EATING YOUR SI TE
Every year more and more traffic comes from mobile devices.
Tablets and smartphones are becoming even more popular for
browsing than standard desktop computers. That’s why, it’s
important to make sure your site works as fast as possible on
such devices.
Test your pages with the Google Mobile-Friendly Test which will
1 give you information if a certain part of your page is not well
optimized for mobile.
2 mobile version. When you run tests for your website, make sure
you test the mobile version as well.
14
1 5. WHEN USI NG I C ONS , U S E A N IC ON FO N T
Icon-like images have become a trend in the past few years. If you
want to use such images, try utilizing an icon font rather than
separate images. Genericon’d is a great plugin that will help.
With it, you can add vector icons as if they were normal alphabet
symbols.
For example, if you’re using the Yoast SEO plugin and you want to
have a Google XML Sitemap, just enable this functionality in the
plugin settings page instead of adding another plugin, even
though there are dozens available in the plugin repository.
your plugins updated, you will get all the performance improve-
ments from the newest release.
Keeping your plugins up-to-date will allow you to use more recent
PHP versions including PHP7, which gives your site a huge perfor-
mance boost.
15
If you’re not using a plugin, delete it. There is no need to keep
them on your account. It’s good security practice and one less
thing to slow down your back-end.
16
INTRO
4
SERVER &
HOSTING
OPTIMIZATIONS
17
1 9. TA KE ADVANTAG E OF S E RV E R
L EV E L CACHI NG
WITHOUT WITH
SUPERCACHER SUPERCACHER
For websites with big databases, you can also implement object
Server & Hosting Optimizations
caching like Memcached or Redis. These are services that your host-
ing provider must install on their server, and provide you with the
ability to use them with your application. For example, at SiteGround
we provide Memcached as part of our WordPress performance
services that can activated with a single click.
18
20 . US E A CDN
MULTIPLEXING
example.css example.css
image.png image.png
3 TCP connections
Server & Hosting Optimizations
example.css example.css
image.png image.png
1 TCP connection
19
The HTTP/2 protocol is much faster and allows the browser to
make multiple simultaneous requests for resources to the server,
which results in faster and safer sites. Learn more.
CONCLUSION
Optimizing for speed is a continuous and important
part of building and maintaining your WordPress site.
SUMMARY Without optimization, you risk paying more, losing
visitors and conversions and even damaging your
brand and reputation.
20
A B O U T T H E AU T H OR
He’s been fortunate to have his passion for all things WordPress and
his job overlap at SiteGround, where he develops and implements
various in-house performance boost solutions to help make Word-
Press websites faster and more secure.
facebook.com/siteground
twitter.com/siteground
21