Differences

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

Link to this comparison view

Next revision
Previous revision
Last revision Both sides next revision
litespeed_wiki:lisa-test [2017/09/14 13:11]
Lisa Clarke created
litespeed_wiki:lisa-test [2017/09/14 15:13]
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]
  
 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. ​ 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. ​
Line 5: Line 7:
 **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 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):+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.   * **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.   * **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.   * **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]
Line 55: Line 66:
 //604800// //604800//
  
-The minified and combined files are cached. This setting specifies for how long. The minimum is 3600 seconds, but we recommend 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.
- +
-Please be aware that when a ''​Purge All''​ command is issued, the minified and combined CSS/JS are included in that purge.+
  
 ==== HTML Minify ==== ==== HTML Minify ====
 //Disable// //Disable//
  
-Extra white space characters, new line characters, and comments will be stripped from all JS, if this option is enabled.+Extra white space characters, new line characters, and comments will be stripped from all HTML, if this option is enabled.
  • Admin
  • Last modified: 2017/09/14 15:25
  • by Lisa Clarke