3 easy steps for more speed

Speed optimization is a big topic and it doesn't lose its importance with bigger bandwidths becoming more and more common. There's a lot of remarkable information on the internet - first of all Yahoo's "Exceptional Performance" serie. But what's about CMSms? This article explains 3 easy steps to get more speed out of CMSms-driven websites.

This article was also published in German.

Step 1: activate compression

First step and by far the easiest one is the activation of output compression. The CMS comes with an out-of-the-box solution that is deactivated by default to avoid errors on some servers. Open the config.php file in your root directory and edit the following line:

$config['output_compression'] = true;

Step 2: combine and minify CSS and JavaScript, minify HTML

Jeremy Bass developed an excellent module that helps managing all CSS and JavaScript files. You can install the module called ScriptDeploy via ModuleManager or find it in the forge. Along with syntax highlighting and a revision protocol it can combine your scripts together and minify them. Besides, it has an option to minify the HTML markup, too.

After you installed the module and registered your scripts replace the {cms_stylesheet}-tag in your templates with the corresponding ScriptDeploy-tag. Don’t forget to group your scripts to achieve the combination.

In the Deployment Options tab you'll find the above-mentioned option named "How to format the code".

Step 3: compress your images

Also pretty applicable for this purpose is the Image Compressor Module that I've developed. Again installable via ModuleManager, it compresses images on demand uploaded to the Image Manager without loss of quality.