This is an old revision of the document!
LSCWP Configuration Settings: Optimize
Optimize and Tuning are two closely-related tabs. Generally-speaking, you will find the ON/OFF switches in Optimize, and the customizations that go along with these switches in Tuning.
For a detailed explanation of what these tabs do, please see Optimization Through Minification and Combination
Please test these options thoroughly before enabling them on your production site!
CSS Minify
off
Extra white space characters, new line characters, and comments will be stripped from all CSS, if this option is enabled.
CSS Combine
off
All individual CSS files will be combined into a single CSS file.
CSS HTTP/2 Push
off
CSS will be sent to the browser before it is requested.
JS Minify
off
Extra white space characters, new line characters, and comments will be stripped from all JS, if this option is enabled.
JS Combine
off
All individual JS files will be combined into a single JS file.
JS HTTP/2 Push
off
JS will be sent to the browser before it is requested.
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
off
Extra white space characters, new line characters, and comments will be stripped from all HTML, if this option is enabled.
Load CSS Asynchronously
off
Page loading can be delayed while waiting for CSS definitions to load. When you load CSS asynchronously, the contents of the page no longer have to wait for CSS to be loaded first. This setting also applies to Google Fonts.
If you have critical CSS styles and definitions that must be loaded for above-the-fold content, you can specify it in the Critical CSS Rules box.
Load JS Deferred
off
This setting takes all scripts and loads them only after the HTML is finished loading.
Exclude JQuery
on
This setting excludes JQuery from all of the above optimization measures. It is recommended that this setting remain ON
, particularly if you have inline JavaScript. If you are experiencing errors when JS Combine is enabled, turning this setting on should eliminate them.