Gomlers Posted December 1, 2016 Share Posted December 1, 2016 In my shop, I have 36(!) css files loaded on the homepage. 32(!) css files is loaded on a single category-page. I have never thought about this until now. My site loads quite quickly, but still! That seems like WAY to many! What is your opinion? What should I do? Keep it as it is, or try to use global.css -> that is, move css from modules to global.css? Anyone have any ideas? Link to comment Share on other sites More sharing options...
Daresh Posted December 2, 2016 Share Posted December 2, 2016 Experiment with the CCC settings, it should combine the styles for you. 1 Link to comment Share on other sites More sharing options...
Gomlers Posted December 2, 2016 Author Share Posted December 2, 2016 I know, but still - the code have to combine 36 files. Won't this affect the speed at all? Link to comment Share on other sites More sharing options...
Daresh Posted December 2, 2016 Share Posted December 2, 2016 It's cached once it's combined so it should not be a problem. I think that a bigger performance concern in Prestashop are hundreds or thousands of SQL queries to generate a single page, rather than combining a pack of css files. Link to comment Share on other sites More sharing options...
Gomlers Posted December 2, 2016 Author Share Posted December 2, 2016 I guess you are right, although mySQL is said to handle more than 5000 queries per second. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now