Performance issues - Javascript minification

Hi there,

I’m hoping you can help me with a performance issue. I’m using the SG Optimizer plugin to minify and combine css and javascript files. However, when I minify the javascript files, the mobile menu stops working.

So, I excluded the following file: /themes/pro/cornerstone/assets/js/site/cs.6f62d0f.js, as I read in another post that this is already minified. This fixed the menu problem, but now the website performance has dropped significantly.

When I don’t exclude this file, the menu stops working, but my performance goes back up. For example, according to PageSpeed Insights, the desktop site tests at 99 when the file is not excluded, but drops to 30 when it is excluded…

Any help would be much appreciated.

Thanks so much for the support!

Hey @Alexisc2067,

Thanks for reaching out!

Optimization plugins like Siteground Optimizer often combine scripts and reorder them and the common cause of issues as some scripts should not be combined, minified nor re-ordered. That is the case with our products, you need to exclude everything from Pro from any kind of optimization. Don’t worry, our themes are optimized out of the box so they don’t need third-party optimization.

Regretfully, we can’t provide any support regarding performance optimization because it is outside the scope of our theme support. You may seek 3rd party developers to help you with your issue or you can avail Elite where you can help with any customization.

You may also check our performance documentation.

Thank you for understanding.

Hi Marc,

Thanks so much for your reply, I understand that you can’t support an issue from third party plugin, but I appreciate the info :slight_smile:

Hi @Alexisc2067,

You are most welcome.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.