Jump to content

Unused JS and CSS files


Recommended Posts

Hello everyone, I ask for your help in solving my problem, which has been plaguing me for months now. From mobile the site is really slow, using Google devtools there are two JS and CSS files in the cache which significantly slow down the page (not used). Obviously they are related to each other, so I can't eliminate them. How can I solve the problem? A thousand thanks

Screenshot 2024-04-22 alle 19.19.52.png

Link to comment
Share on other sites

Hi,

  • Check that caching mechanisms are properly configured on your server.
  • Check if there are any Prestashop modules or third-party extensions that might be adding unnecessary CSS or JS files to your site. Disable or remove any modules that are not essential or are causing performance issues.

Hope this would help.

Thanks

  • Like 1
Link to comment
Share on other sites

26 minutes ago, AddWeb Solution said:

Hi,

  • Check that caching mechanisms are properly configured on your server.
  • Check if there are any Prestashop modules or third-party extensions that might be adding unnecessary CSS or JS files to your site. Disable or remove any modules that are not essential or are causing performance issues.

Hope this would help.

Thanks

Thanks for the quick reply, unfortunately I deactivated all the non-native modules, but the problem remains. I think it's a template problem but I'm not sure.

Link to comment
Share on other sites

When you use CCC all css and js are concatenated, so unused depend on page scan. This is the limit of optimisation with CCC 😞 And if you don't use CCC Google devtools says to many htt requests for all css and js. So one approach is to verify:

  1. Remove really unused CSS/JS (a good theme developer should do it)
  2. Verify or activate http serveur zip compression
  3. Verify or set long cache delay for css,js,image,font
  4. Use a CDN is possible
  5. Check your hosting performance
  6. Check database performance
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...