FAQ Increase Performance: Difference between revisions

Jump to navigation Jump to search
Line 91: Line 91:
Pre-requisites: Need to edit Apache setup.
Pre-requisites: Need to edit Apache setup.


Principle: Add into '''Home-Setup-Other''' the constant MAIN_OPTIMIZE_SPEED. If value of constant has bit 0 set, Dolibarr will use the minifying and compressed version of javascript. Apache server must be configured to have the line
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.
This feature seems to fails on HTTPS (security error for an unknown reason).
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 ==

Navigation menu