Swift Performance

Swift Performance / plugin documentation version 1.0


Table of Content

  • Item Name : Swift Performance
  • Item Version : Version 1.0
  • Minumum Required : WordPress 4.0+, PHP 5.3+
  • Author by : SWTE
  • Support via Email : support@swte.ch

Generating critical CSS needs some CPU. If your site is running on low-end hosting, when your resources are very limited this function may won't work (depends on your theme/plugins)

Installation #back to top

Install via WordPress

You can install the downloaded ZIP file via WordPress admin.
  1. Go to Plugins > Add new > Upload plugin
  2. Click to Browse and select the downloaded ZIP file
  3. Click to install
  4. Activate the plugin


Install via FTP

You also can install the plugin via FTP
  1. Unzip the downloaded ZIP file
  2. Upload the swift-performance folder to wp-content/plugins
  3. Login to WordPress admin
  4. Go to Plugins and activate the plugin

General settings #back to top

Envato Purchase Key

Optionally you can set your Envato purchase key, after this you will be able to update the plugin from WordPress admin, and you will be able to use the image optimizer API. You can find your purchase key in Downloads on CodeCanyon.

Optimize Images

Enable if you would like to optimize the images during the upload using our Image Optimization API service.

Lazy Load

Enable if you would like lazy load for images. Lazy load will work for every uploaded images.

Normalize Static Resources

Remove version number query string from CSS and JS files and it will remve every dynamic query string from some images as well.

Whitelabel

Prevent to add Swift Performance response header and HTML comment.

Assets Manager #back to top

Merge Scripts

With this option you can merge all javascript files to reduce number of HTML requests, and move them to footer to avoid "Render Blocking Script" issue

Exclude 3rd scripts

Exclude 3rd party scripts from merged scripts

Exclude Scripts

Exclude scripts from being merged if one of these strings is found in the match.

Minify Javascripts

Enable this function if you would like to minify the merged JS file.

Proxy 3rd Party Assets

Proxy 3rd party javascript and CSS files which created by javascript (eg: Google Analytics). It can be useful if you would like to override the expiry headers for 3rd party assets.

Exclude 3rd Party Assets

Exclude scripts from being proxied if one of these strings is found in the match.

Merge Styles

Merge CSS files to reduce number of HTML requests

Print critical CSS inline

Enable if you would like to print the critical CSS into the header, instead of a seperated CSS file (recommended).

Print full CSS inline

Enable if you would like to print the merged CSS into the footer, instead of a seperated CSS file.

Minify CSS

Enable this function if you would like to minify the merged and critical CSS file.

Exclude 3rd Party CSS

Exclude 3rd party CSS files (eg: Google Fonts CSS) from merged styles

Exclude Styles

Exclude style from being merged if one of these strings is found in the match.

Merge Assets for Logged in Users

Enable if you would like to merge styles and scripts for logged in users as well. You should enable this option only if the content won't be changed frequently, and/or you have small CSS. Otherwise it can affect the user experience.

Merge Assets in Background

In some cases the generating the critical CSS takes some time. If you enable this option the plugin will generate it in the background. This option is available only if caching is enabled.

Caching #back to top

Caching Mode

Disk cache with rewrites is faster, however sometimes you can't edit the .htaccess file or the Nginx config so Disk cache with PHP is also available as a fallback.

Cache Path

You can specify a cache path. It will be wp-content/cache by default.

Cache Expiry Mode

You can choose the traditional time-based cache expiry, however there is an Intelligent cache expiry option as well. If you choose the intelligent cache expiry the plugin will check the cache integrity after every pageload, and the cache will be regenerated only if there was some changes on your site.

Cache Expiry Time

If you choose the time-based cache expiry you can specify the expiry time here (in seconds).

Resource saving mode

This option will reduce intelligent cache check requests. Recommended for limited resource severs. You also should use this option if there are dynamic generated parts (eg tokens) in the source.

Enable Caching for logged in users

This option is available only for intelligent cache expiry. Please note, that it can increase the total cache size, depending on the count of your users.

Enable Mobile Device Support

You can create separate cache for mobile devices, it can be useful if your site not just responsive, but it has a separate mobile theme/layout.

Enable Browser Cache

If you enable this option it will generate htacess/nginx rules for browser cache.

Enable Gzip

If you enable this option it will generate htacess/nginx rules for gzip compression.

Exclude Pages

You can exclude any pages from cache here. Some pages like WooCommerce cart, checkout, etc won't be cached by default.

Exclude strings

URLs which contains any strings from this list won't be cached.

Enable Dynamic Caching

If you enable this option you can specify cacheable $_GET and $_POST requests

Cacheable Dynamic Requests

Specify $_GET and/or $_POST keys what should be cached. Eg: "s" to cache search requests

Cacheable AJAX Actions

With this option you can cache resource-intensive AJAX requests (eg AJAX search). You should specify the action names here.

CDN #back to top

CDN Hostname

You can specify a main CDN hostname. If you doesn't specify more hostnames it will be used for all static contents.

CDN Hostname for Javascript

Use different hostname for javascript files

CDN Hostname for Media files

Use different hostname for media files

Enable CDN on SSL

You can specify different hostname(s) for SSL, or leave them blank for use the same host on HTTP and SSL

MAXCDN Support

If you are using MAXCDN and set the API you will be able to purge CDN from wp-admin. If you are using a different CDN you can ignore these fields

MAXCDN Alias

If you are using MAXCDN you can specify your Alias here

MAXCDN Consumer Key

If you are using MAXCDN you can specify your Consumer Key here

MAXCDN Consumer Secret

If you are using MAXCDN you can specify your Consumer Secret here

Image Optimizer #back to top

If you already activated your copy, you will be able to use our unlimited image optimizer API. With this service you can optimize your images without loss.

You can run the optimizer on your previously uploaded images in Media Library, however you can also optimize your images individually on the image edit page.