Archived topic
Mobile links not working with LiteSpeed caching
1 reply · Started by Louis on March 22, 2021
Struggling with the following, not sure if this is a GeneratePress issue or not:
Links on Navbar and in content work fine in Desktop mode, but not in Tablet or Mobile. This appears to be related to LiteSpeed caching:
* I've disabled options in LiteSpeed, no concatenation of scripts, compressing CSS etc. Seems to be specifically related to when the LiteSpeed "Enable Critical CSS" option is enabled
* Have used multiple clean browsers, user does not have to be logged in
* No server caching (Memcached/Redis) implemented
Hi there,
I'm not sure I fully understand the issue.
What happens when you click it? Does the URL change into just #? Does anything happen when you tap/click?
If it works fine w/o LiteSpeed Cache, then there must be something in it that's breaking how the navbar works.
As LiteSpeed Cache is a third-party plugin, it's outside of our scope but like with any other optimization plugin, there's no 1 setting to apply to all sites. It's best to do A/B testing for your specific sites to achieve the best result.
For specific suggestions: consider excluding scripts from /wp-content/themes/generatepress and /wp-content/plugins/gp-premium. And yes, avoid critical CSS as its pretty tricky to deal with.