Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
litespeed_wiki:cache:lscwp:configuration:tuning [2019/04/12 18:37]
Lisa Clarke [LiteSpeed Cache for WordPress Settings: Tuning]
litespeed_wiki:cache:lscwp:configuration:tuning [2020/11/14 15:20] (current)
Lisa Clarke Redirect to new Documentation Site
Line 1: Line 1:
-====== LiteSpeed Cache for WordPress SettingsTuning ====== +~~REDIRECT>​https://docs.litespeedtech.com/lscache/lscwp/pageopt/~~
- +
-[[litespeed_wiki:​cache:​lscwp:​configuration:​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 [[litespeed_wiki:​cache:​lscwp:​configuration:​minification|Optimization Through Minification and Combination]] +
- +
-**Please test these options thoroughly before enabling them on your production site!** +
- +
-{{:​litespeed_wiki:​cache:​lscwp:​lscwp-settings-tuning.png?​nolink|}} +
-===== Combined CSS Priority ===== +
-//off// +
- +
-Normally, combined CSS is loaded after external CSS filesThis is because combined local CSS is more likely to have customizations that need to be loaded after the base CSSEnable this option if you have reason to load combined CSS before other CSS files. +
-  +
-===== CSS Excludes ===== +
-//empty string// +
- +
-If you enabled minification,​ combination or push for CSS in the **Optimize** tab, you may exclude some CSS here. Use this space to list any CSS files (one per line) you would like excluded from the optimization functions. You may enter full URLs or a partial string. There'​s no need to use wildcards in partial strings. +
- +
-===== Combined JS Priority ===== +
-//off// +
- +
-Normally, combined JavaScript is loaded after external JavaScript files. Enable this option if you have reason to load combined JavaScript before other JS files. +
-  +
-===== JS Excludes ===== +
-//empty string// +
- +
-If you enabled minification,​ combination or push for javaScript in the **Optimize** tab, you may exclude some JS here. Use this space to list any JS files (one per line) you would like excluded from the optimization functions. You may enter full URLs or a partial string. There'​s no need to use wildcards in partial strings. +
- +
-===== Max Combined File Size ===== +
-//1.2MB// +
- +
-A larger file size results in fewer combined files needing to be generated. This is good for your page score, but beware: if a combined file is //too// large, it will cause heavy memory usage. We consider 1.2MB to be a good starting point. Adjust it up or down to meet your site's needs. +
-===== Remove Query Strings ===== +
-//off// +
- +
-This setting strips the query string from static resources. Static resources with query strings may not be cached by browsers and proxy servers. Removing the strings allows them to be cached, which translates into a faster page load. +
- +
-===== Load Google Fonts Asynchronously ===== +
-//off// +
- +
-You may not wish to enable asynchronous loading of //all// of your CSS, but you do want it for just the Google Fonts. If enabled, this option will allow you to load Google Fonts asynchronously without also loading the other CSS that way. Additionally,​ this option adds a preconnect to Google so that the fonts may be downloaded more quickly. +
- +
-As of v2.7.3, this option has been improved, and now results in even faster page load times. [[litespeed_wiki:​cache:​lscwp:​configuration:​tuning:​google-fonts|Learn more.]] +
-===== Remove Google Fonts ===== +
-//off// +
- +
-This options removes all Google fonts from your site. Be sure to test this. Unless you have suitable replacement fonts stored locally, the style of your site could change dramatically. +
- +
-===== Critical CSS Rules ===== +
-//empty string// +
- +
-When **Load CSS Asynchronously** is enabled in the **Optimize** tab, critical CSS is generated automatically. You may wish to single out a few additional definitions that must be loaded first in order to properly style above-the-fold content. Enter those rules here in plain CSS, just as they appear in your stylesheet. They will be appended to the generated CSS. +
- +
-===== JS Deferred Excludes ===== +
-//empty list// +
- +
-If **Load JS Deferred** is enabled in the **Optimize** tab, there may be some JavaScript files you do not want to be deferred. List them here, one per line. You may list the full URI or partial strings to be matched (no wildcards). +
- +
-===== Remove WordPress Emoji ===== +
-//off// +
- +
-If enabled, this setting removes the extra JavaScript file that is used to add support for emojis in older browsers. Visitors who use modern browsers that have their own native emoji support will not notice a difference.  +
- +
-===== URI Excludes ===== +
-//empty string// +
- +
-If there are pages you would like to exclude from optimization,​ you may list them here. You can use a full path, or a partial string. +
- +
-===== Role Excludes ===== +
-//​unchecked//​ +
- +
-There may be user roles that you wish to exclude from any sort of optimization. For example, if you are an admin, testing new functionality,​ you may want to exclude your ''​administrator''​ role from optimization until your testing is through.+
  • Admin
  • Last modified: 2019/04/12 18:37
  • by Lisa Clarke