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
Next revision Both sides next revision
litespeed_wiki:lisa-test [2017/09/14 13:17]
Lisa Clarke [HTML Minify]
litespeed_wiki:lisa-test [2017/09/14 15:10]
Lisa Clarke [Optimize]
Line 10: Line 10:
   * **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. With JS in particular, 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.
 [insert screenshot] [insert screenshot]
  
Line 55: Line 61:
 //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 ====
  • Admin
  • Last modified: 2017/09/14 15:25
  • by Lisa Clarke