Awesome Web Designs favicon

Written by

Guillermo Figueredo

Toronto digital marketing tips.

How to Make your Website Load in less than 2 Seconds? Swift Performance step by step guide

Awesome Web Designs favicon

Written by

Guillermo Figueredo

How to Make your Website Load in less than 2 Seconds? Swift Performance step by step guide

I have managed to load my web in less than 2 seconds using Swift Performance cache plugin. I have used many cache plugins for WordPress in the past, but with Swift Performance I’ve literally blown it.

SWTE Plugins

[irp posts=”23893″ name=”Swift Performance: Review and Personal Opinion”]

In this article I explain how I got these results from GTmetrix and Google PageSpeed Insights.

AWD GTmetrix Results

AWD Google PageSpeed Insights

Initial setup of Swift Performance with Setup Wizard

Do you need help speeding up your site?

Get in touch with us and we will give you a customized solution

get in touch.

Both the installation and its setup is very simple. Once you activate it, a 4-step configuration process will be executed (setup wizard), during which you can change some parameters.

I recommend you to leave all the default options as will have a chance to change all the settings later. Here I share some screenshots of how I configured it:

Swift Performance Lite Setup Wizard 1
This is simply a welcome to the configuration process.

 

Swift Performance Lite Setup Wizard 2
To clean cache I chose the option “Action based mode”, the rest I left by default.

In this step, you could link your Cloudflare account if you have it. I have done it but in a later step.

Swift Performance Lite Setup-Wizard 3
Here I leave everything by default.

 

Swift Performance Lite Setup-Wizard 4
As it is something that can give problems by default is unmarked, although in my case I have activated both options to test it.

According to the tests I have done, if you do not activate Lazy Loading you will get better results with Google PageSpeed ​​Insights.

Swift Performance Lite Setup-Wizard 5
You have finished the initial configuration of Swift Performance Lite.

Now you only have to test the speed of your site with some useful tools. The ones I usually use are Pingdom.com and GTmetrix.com.

IMPORTANT: When running your test, remember to select the nearest testing area.

[irp posts=”2041″ name=”Web Development Services: WordPress Sites for your Toronto business”]

Step by step Swift Performance setup

Here you have the video where I share all my Swift Performance cache settings.

General > Tweaks

Normalize Static Resources‘ is useless if you use “Merge Scripts” and “Merge Styles”. It improves higher page speed scores, but not actual speeds. I enable this but never for sites often updating their design. Many caching engines (also Cloudflare) already intelligently cache static assets with query strings.

Gravatar Cache‘ I usually disabled. Only useful if your site gets a constant amount of post comments.

Tweaks

General > Google Analytics

Bypass Google Analytics‘ is an awesome idea of locally-caching the Google Analytics JS script and merging it with site JS (theoretically removes one external call to google). In terms of speed, it didn’t help so much but does give you a higher page speed score (superficial benefit). The only problem is GA won’t work on uncached/excluded, for that reason I have decided to personally not use it.

Google Analytics

Media > Images

Lazyload Images‘ and ‘Inline Lazy Load Images‘ is a counter-intuitive tactic of speeding up page load, by not loading everything.  Some people hate it, I personally like using it as Google likes it too.

Images Swift Performance Cache

Optimization > General

Optimize Prebuild Only‘  Uncheck so your site is always optimizing. Enable to limit when cache is built (not needed for most sites).
Optimize in Background‘ I disable it, but can be useful for big sites and/or VPS servers.
Minify HTML‘  I  disable because I use Cloudflare, and it already minifies HTML/CSS/JS.
Disable Emojis‘ I enabled it as I don’t use emojis in my content.
Limit Simultaneous Threads‘ Only enable it and set to 1, 2, or 3 if you’re on a shared server or want to prevent the site from hogging server resources. Ideally, you’d want to use all resources to prebuild cache quickly.

Optimization Swift Performance Cache

Optimization > Scripts

Merge Scripts‘  It’s safer to use when you have fewer scripts. The best use for it is to exclude main scripts.
Exclude Scripts‘  is where you go to manually exclude javascript requests from merging. I personally exclude all WP-Content and WP-Includes scripts to not break my site.

Optimization Swift Performance Cache

Minify Javascripts‘, I would enable it unless you have many pages on your site.

Optimization > Styles

Merge Styles‘ It’s safer to use with fewer stylesheets.
Print full CSS inline‘ I don’t recommend it unless your page is super lightweight.
Minify CSS‘  I would stick to “basic” if I was going to use this at all. Choose “Don’t minify” if you prefer faster cache-building and/or already have it enabled from Cloudflare. Makes no impact on smaller sites.
Bypass CSS Import‘ Leave it enabled.

Optimization Styles Swift Performance Cache

Caching > General

Enable Caching‘  You must enable this. If you don’t see this option or even the “Caching” tab, your host is probably disabling cache plugins.
Caching Mode‘  Disk cache with rewrites is fastest.
Early Loader‘ Should be checked.
‘Cache Path‘  Check this directory if caching or prebuild doesn’t work; might be the wrong path from an old server. (Go to cPanel “File Manager” for the right path.)
Cache Expiry Mode‘ – I use “Time based mode” as my site has not constant content updates (like new comments or changes in product status).

Caching General Swift Performance Cache

Enable Browser Cache‘ I enable it as it helps performance.
Enable Gzip‘ I leave it enabled.
AJAX Cache Expiry Time‘ I have set it to 1440 minutes as I want it to expire every 24 hours. 

Caching General Swift Performance Cache

Caching > Exceptions

Exclude Post Types‘ You should exclude all post types EXCEPT posts, pages, products, and any post type that shows on the front-end with its own unique URL slug. (If don’t exclude any post types; the site will cache all items even if they don’t show on the front-end, further delaying cache prebuild for critical items. Big sites should definitely exclude unnecessary post types!)
Exclude Pages‘ You should exclude any pages with “live info”, “private data”, or don’t work properly when cached.
Exclude URLs‘ Exclude any URL’s that couldn’t be single out using post types or pages above.
Exclude Content Parts‘ Useful for excluding specific content or post types.
Exclude User Agents‘ Prevent certain devices from seeing cached pages.

Caching Exceptions Swift Performance Cache

Exclude Author Pages‘ I check this. Author pages aren’t visited often, so focus your caching mechanism on other pages.
Exclude Archive‘  I prefer it to be checked.
Exclude REST URLs‘ Checked. You don’t need these items pre-cached.
Exclude Feed‘ Checked. You don’t need these items pre-cached.

Caching Exceptions Swift Performance Cache

Caching > Warmup

Enable Remote Prebuild Cache‘ I disable it. Use only when your server can’t visit itself and can’t prebuild cache.
Prebuild Cache Automatically‘ I checked it. The only time you shouldn’t use prebuild is when you have so many pages, like over 1k.
Prebuild Speed‘ If you’re on shared hosting with resource limits, always try to use “Moderate”. 

Caching Warmup Swift Performance Cache

Caching > Varnish

Enable Auto Purge‘ Enable if you’re using Varnish. It clears Varnish cache automatically, so you don’t have to do it manually every time Swift clears cache.
Custom Host‘ Usually not necessary, unless you’re using Cloudflare or other DNS proxy. Enter the Varnish server IP and port here.

CachingVarnish Swift Performance Cache

CDN > Cloudflare

Enable Auto Purge‘ Check it if you have Cloudflare. Otherwise, you’d have to manually purge Cloudflare cache every time you make changes on your site or Swift cache. (Make sure you enter your account email and API key.)
Cloudflare Account Email‘ Fill in your account email.
Cloudflare API Key‘ Put in your Cloudflare global API key.
Cloudflare Host‘ Put your domain name.

CDN Cloudfare Swift Performance Cache

Swift Performance Plugin Organizer Setup

Plugin Organizer‘ It’s really easy to use. Simply enable where you want your plugins to load. A good example would be all form related plugins, which you want them to only be loaded where you have your forms included.

Plugin Organizer Swift Performance Cache

 

I hope this step by step guide about Swift Performance cache plugin has been useful for you and if you have any questions or suggestions about web design, you can leave it in the comments.

SWTE Plugins

Remember, use a managed WordPress hosting service to suit all your websites needs. It’s also important to use a reliable web hosting service. For further reading, Techtage.com has a great review of SiteGround, one of our favourite web hosts at Awesome Web Designs.

This blog is a place for everyone who is interested in marketing, whether you are a professional web designer, marketer or business entrepreneur. If you want to be part of our digital marketing journey, sign up for more awesome web design tips and tricks.

Something went wrong. Please check your entries and try again.