Documentation: Building

Style-Tools and Compression

The styles are built as widgets which means you can end up with 2 or more javascript and css files to transfer to the browser per widget. This can lead to a very large number of files to transfer, and a very slow site.

The compress tool helps this by combining the files and removing the white space.

Assuming files are stored in /var/www/z the following command can be run:

compress.pl /var/www/z/style/default/xsl/style/html.xsl

Then modify config.xml to turn off debug

<?xml version="1.0"?>
<config>
        <debug>false</debug>
</config>