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 Both sides next revision
litespeed_wiki:lisa-test [2017/09/14 15:13]
Lisa Clarke [Optimize]
litespeed_wiki:lisa-test [2017/09/14 15:25] (current)
Lisa Clarke [Optimize]
Line 1: Line 1:
 ===== Optimize ===== ===== Optimize =====
  
-[I'm thinking of putting all of this info in its own page and linking to it from the settings page - it's a lot of info for a page that's already really long] +For a detailed explanation ​of what this tab does, please see [[litespeed_wiki:​cache:​lscwp:​configuration:​minification|Optimization Through Minification ​and Combination]]
- +
-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!** **Please test these options thoroughly before enabling them on your production site!**
- 
-There are 3 ways the settings on this tab 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. 
- 
-Minified CSS and JS will be placed in the code with a line that looks similar to: 
-  ''<​script data-minified='​1'​ src='​http://​yoursite.com/​min/​3fb36.js'></​script>''​. ​ 
-Please be aware, if you do not have pretty permalinks enabled (i.e., you site has URLs that look like ''​http://​yoursite.com/?​p=123''​ then your minified code will have a ''?''​ in the URL like so:  
-  ''<​script data-minified='​1'​ src='​http://​yoursite.com/?/​min/​3fb36.js'></​script>''​ 
-  ​ 
-Combined CSS and JS will be placed in the header. ​ 
- 
-A note about combining JavaScript: if there is JS code defined within the HTML, that JS will //not// be included in the combined file, and the remaining JS will be combined and placed in a file the footer so as to avoid any conflicts. 
  
 [insert screenshot] [insert screenshot]
  • Admin
  • Last modified: 2017/09/14 15:13
  • by Lisa Clarke