Sitemap
Autoptimize

Autoptimize makes optimizing your site really easy. It can aggregate, minify and cache scripts and styles, injects CSS.

Autoptimize Settings 2019

3 min readAug 30, 2019

--

Configure Various Autoptimize Settings — Step by Step

1. Installing the Plugin

1. Login to your admin.
2. Click on Plugins-> Add new -> Search for Autoptimize.
3. Click on Install-> Activate.

Get Profesor Life’s stories in your inbox

Join Medium for free to get updates from this writer.

If you are a WordPress Beginner and want to know the different ways of Installing a WordPress Plugin, Please refer our guide to.

2. Optimize HTML, JavaScript and CSS Codes.

First of all find the installed Autoptimize plugin by clicking on, Plugins-> Installed Plugins. Find the plugin and click on settings.

Press enter or click to view image in full size

(i) Optimizing the HTML Code.

In order to minify all the HTML code in your website, tick the first box, “optimize HTML code”.
This will remove all of the white spaces in between the HTML codes, which can ultimately help in reducing the file size of your website.

Press enter or click to view image in full size

(ii) Optimizing the Javascript.

This is the most important part, since most of the errors that might occur is because of the Javascript files. To configure it properly, tick “Optimize Javascript Code” and “Also aggregate inline JS“.

Press enter or click to view image in full size

Now here comes the part if your site uses Sliders or any elements that has any effects such as transition/flasy, Some of the elements in the site might break or cause an error, in which it is important that you find the js file causing it and include it in the “Exclude Scripts from Autoptimize”.

In the Screenshot above, I have excluded the main Jquery file (jquery.js) from Autoptimize, which causes most of the error.

( iii) Optimizing the CSS Code.

In order for this to work you need to tick the “Optimize CSS Code” and “Also aggregate inline CSS”, Rarely though “If you encounter any error” or some of the elements doesn’t show up as it should be, you can exclude the CSS files from minification by including the file name in the “Exclude CSS from Autoptimize”.

Press enter or click to view image in full size

This will minify all of your CSS code making making your website a little smoother by reducing the file size.

--

--

Autoptimize

Published in Autoptimize

Autoptimize makes optimizing your site really easy. It can aggregate, minify and cache scripts and styles, injects CSS.