Joomla Plugin CssJsCompress can automatically optimize external resources like CSS
and JavaScript, which can reduce both the size and number of requests made to your website.
CSS files can be aggregated and compressed into a single file,
while JavaScript files are only aggregated (but not compressed).
These optimizations may reduce server load, bandwidth requirements, and page loading times.
According to Best Practices for Speeding Up Your Web Site , to build a high performance web site, here are the most important best practices:
- Minimize HTTP Requests
- Add an Expires or a Cache-Control Header
- Gzip Components
Joomla Plugin CssJsCompress can help you achieve the above practice easily.


After aggregation of css and js

After compression:


| | CSS File Number | Css FileSize | Js File Number | Js File Size | Total Http Requests |
| Before Aggregation | 10 | 60.5K | 7 | 97K | 35 |
| After Aggregation | 1 | 62.7K | 1 | 97K | 20 |
| After GZip | 1 | 8.7K | 1 | 26.8K | 20 |
From the above data, we know
- Css and javascript aggregation can decrease the http requests dramatically for those sites built with a lot of modules(Usually a lot of css and javascript files.)
- GZip can compress css and javascript files a lot. The plugin only need to compress the css and javascript files once, so this can save a lot of CPU times, and give a repeat response.
Tips:
-
Put plugin CssJsCompress just before System plugin Cache, so that it can include all other plugin's result and be cachable.