Archived topic
Navigation menu and content buttons require double tap to function.
13 replies · Started by John on March 13, 2022
Hi GP,
Many readers have sent me an email that my navigation menu and any buttons inside a post requires a "double tap" in order to function. It seems to happen more often on mobile than desktop.
For example, the hamburger menu located in the header requires tapping it twice for the menu to expand.
For posts, the same thing for buttons. See this post as one example (try the first "Apply Now" button).
Hi there,
is this on any particular device ? as it works correctly on my iPhone across all browsers.
You may want to ask one of your users to test the site with WP Rocket disabled to make sure its optimisations are not interfering with the loading of scripts.
A user can do this by adding ?nowprocket to end of the URL e.g
https://themoneyninja.com/chase-bank-promotions/?nowprocket
Bingo - I think you nailed it.
I tested using a Samsung Galaxy and an Apple iPhone device. If I try to click the hamburger menu (or any other button) too fast during initial loading, it requires a double-tap to perform the action.
Are there particular GeneratePress scripts I need to exclude from deferring in WP Rocket?
The menu uses this script:
/wp-content/themes/generatepress/assets/js/menu.min.js
Hi David,
Thank you. I have added the menu to the "JS to exclude from deferring" in WP Rocket. Is there a script for the Generate Blocks buttons as well?
GenerateBlocks doesn't load ANY Javascript.
Does it load via CSS?
It’s added as HTML through PHP. Yes, there’s CSS added for GenerateBlocks for its design.
Hope this clarifies!
hi, i have the same issue! i have generate blocks buttons and on mobile where most of my traffic comes from, it requires a “double tap” in order to function. I am using WPRocket to boost site load speed. What do I input for exclusions to make it function on a single tap?
Hi there,
does the issue go away if you disable WP Rocket ?
hi there yes it does. i tested it by following your thread
Hmmm.... i wonder what WP Rocket setting is casing that,
As GenerateBlocks doesn't use any scripts, so the buttons should not be affected by WP Rockets script delays / deferring.
Do you want a raise a new topic, where you can share a link to your site, i can then take a look at whats happening.
ok
Hi David,
I'm actually still having an issue with this. I deferred the menu in WP Rocket by adding this script to not defer:
/wp-content/themes/generatepress/assets/js/menu.min.js
But the menu button and GenerateBlocks button requires a double tap (or double-click on a desktop) if I interact too early during the page load.