Asked 1 years ago
20 Jul 2023
Views 228
pratik

pratik posted

How to Compress and cache JS and CSS code in Prestashop

To improve performance of the Prestashop website . i want to increase speed of the css and js loading
noob

noob
answered Jul 20 '23 00:00

you can try CCC(Combine, Compress and Cache) Features of Prestashop .
CCC allows you to reduce the loading time of your page. With these settings you will gain performance without even touching the code of your theme. Make sure, however, that your theme is compatible with PrestaShop . Otherwise, CCC will cause problems.

To enable CCC(Combine, Compress and Cache) :
you need to login at admin section than
go to Advanced Parameters -> Performance
and now locate CCC section

switch to Yes to below configuration

Smart cache for CSS - Yes
Smart cache for JavaScript - Yes
Apache optimization - Yes

now Press save . to save this configuration changes.
and its done

now when you see the front end it faster
and css and js are combined to one and load from cache and it also compress version of it.
Post Answer