Plugin breaks Menu on GeneratePress mobile
-
Hello,
I have to disable the WP cache as it is breaking the GeneratePress ‘Menu’ button on mobile. In fact, you either have to manually delete the cache every now and then or the button simply won’t expand showing all menu options.
This has been happening since GeneratePress has released the latest update
The page I need help with: [log in to see the link]
-
Hi,
Thanks for contacting us.
Could you try to activate the dedicated cache for mobile and tablet? (from the plugin setup).Thanks, let me know.
Hi,
after activating the dedicated cache, the ‘Menu’:
WORKS on mobile devices
WORKS on desktop computers
DOES NOT WORK on Google Chrome mobile emulator (developer tools)Hi,
OK, I see, not sure what the chrome emulator is using to render it. Usually the problem comes from the theme framework, that’s why we added this option to our plugin.
Cheers,
Well… the separate caching system does not fix the problem anyway. I had to disable the caching system altogether… I will rate this plugin 1 star until this is fixed…
It seems this issue is triggered by the grouping JS/CSS option. I am assuming other caching plugins would generate the same issue?
I am running WordPress on my laptop and I am getting the same issue so the hosting has nothing to do hereIt seems this issue is triggered by the grouping JS/CSS option. I am assuming other caching plugins would generate the same issue?
Yes, this is classic conflict, other plugins should have the same problem is the 2 files in conflict are also grouped. We’ll take a look as mentioned in the other post, if it’s related only the theme we can fix it, it that’s a plugin… that’ll be tricky.
GeneratePress has found a bug in the grouping algorithm of this plugin. JavaScript files are fired twice when grouped therefore the ‘Menu’ will open then close immediately. You can find the whole thread here:
I am assuming the same is happening to CSS files?
OK thanks for the information, let us the time to analyze the problem.
Cheers,
Hi,
I’ve replied on the GP thread: https://wordpress.org/support/topic/menu-button-wont-expand-on-mobile-if-wp-speed-of-light-plugin-is-installed/#post-13526634
Cheers,
The plugin is still broken. JavaScript is grouped but is being executed twice, the grouped one and the ungrouped one as the following page show (look at the source code):
Hi,
I see the problem on your website, there’s the minified file in the header and the main JS file deferred file in the body. That is indeed what is causing the problem with the menu.
The problem is I cannot replicate it, I’ve tested on several server configurations (Apache, Litespeed).
See: https://drive.google.com/file/d/1WAky2BpE_cTmc_-ZsNqBsioqq2rSHq0J/view?usp=drivesdk
The topic ‘Plugin breaks Menu on GeneratePress mobile’ is closed to new replies.