Archived topic
Mobile menu not working (cache issue)
3 replies · Started by Daniele on March 27, 2023
Hello,
the off canvas menu stopped working from mobile, and I discovered it is a cache issue.
I'm using Litespeed cache.
Pratically when you click the hamburger menu, nothing happens.
Do you know if is there any workaround for this? I would like to continue caching the website for performance.
thanks!
(p.s. now the cache plugin is disabled)
Hi there,
you would need to find out which Litespeed setting is breaking it.
It could be either the way it is combining CSS or more likely if its combing Javascript.
If its a JS issue then check with litespeed on how to exclude scripts from whatever optimizations its doing.
These are locations of the 2 menu scripts that GP uses, try excluding those.
/wp-content/themes/generatepress/assets/js/menu.min.js
/wp-content/plugins/gp-premium/menu-plus/functions/js/offside.min.js
But you may want to also ask Litespeed support on this
I found the issue, and it was the CSS loaded Asynchronously.
It's very a mistery for me as suddenly things stop working...
This cache problems are the the worst to debug
Do you think I could make some test to understand why this happens or in your opinion it's a waste of time?
thanks
Unfortunately, aside from the issues that occasionally get raised here, i have little experience with Litespeed. You might want to check with Litespeed if they can debug the issue, as its related to the how its interfering with the CSS loading.