30,997
edits
| Line 91: | Line 91: | ||
Pre-requisites: Need to edit Apache setup. | Pre-requisites: Need to edit Apache setup. | ||
Principle: | Principle: Modify Dolibarr to change all code lines $ext='.js' into $ext='.jgz' and compress all files .js into htdocs/includes into .jgz. Dolibarr will use the minifying and compressed version of javascript. Apache server must be configured to have the line | ||
<source lang="ini"> | <source lang="ini"> | ||
AddType text/javascript .jgz | AddType text/javascript .jgz | ||
| Line 97: | Line 97: | ||
</source> | </source> | ||
Then clean your cache browser. | Then clean your cache browser. | ||
Gain is not significative, also this feature seems to fails on HTTPS (security error for an unknown reason). | |||
== Compressing on the fly libraries and css == | == Compressing on the fly libraries and css == | ||