This is an old revision of the document!
Optimize
You can further optimize your WordPress site through the use of minification, combination, and HTTP/2 push. These options are all turned off by default because they may have unexpected results.
Please test these options thoroughly before enabling them on your production site!
There are 3 ways these settings can speed up your site. None of these methods should impact your code's ability to function (but like we said, it can be unpredictable, so please test):
- Minify - Removes all unnecessary characters from the code. Reduces the amount of data that needs to be transferred.
- Combine - Replaces multiple files with a single file that contains all of the same code that was in the separate ones. Reduces the number of requests made by the browser and potentially removes duplicate code.
- HTTP/2 Push - Sends resources to the browser before it asks for them. Reduces the number of requests necessary.
[insert screenshot]
CSS Minify
Disable
Extra white space characters, new line characters, and comments will be stripped from all CSS, if this option is enabled.
CSS Combine
Disable
All individual CSS files will be combined into a single CSS file.
CSS HTTP/2 Push
Disable
CSS will be sent to the browser before it is requested.
CSS Excludes
empty string
Use this space to list any CSS files (one per line) you would like excluded from the above three functions. You may enter full URLs or a partial string. There's no need to use wildcards in partial strings.
JS Minify
Disable
Extra white space characters, new line characters, and comments will be stripped from all JS, if this option is enabled.
JS Combine
Disable
All individual JS files will be combined into a single JS file.
JS HTTP/2 Push
Disable
JS will be sent to the browser before it is requested.
JS Excludes
empty string
Use this space to list any JS files (one per line) you would like excluded from the above three functions. You may enter full URLs or a partial string. There's no need to use wildcards in partial strings.
CSS/JS Cache TTL
604800
The minified and combined files are cached. This setting specifies for how long. The minimum is 3600 seconds, but we recommend 604800. When a Purge All
command is issued, the minified and combined CSS/JS are included in that purge.
HTML Minify
Disable
Extra white space characters, new line characters, and comments will be stripped from all HTML, if this option is enabled.