Performance and optimization
The following sections are only recommendations.
Using Combine, Compress, and Cache
In your administration panel, you can enable an option named Combine, Compress, and Cache (CCC) by navigating to Advanced Parameters | Performance:
If you set all parameters to YES
, this option will perform five actions:
- It will group all CSS files in one file, remove all useless spaces and return lines, and cache it (this will only perfectly work if you used the
Tools::addCss
method in your module to include the CSS files) - It will group all JS files in one file, rename variables and functions with shorter names, remove all useless spaces ...
Get PrestaShop Module Development now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.