- This topic has 13 replies, 4 voices, and was last updated 3 years, 6 months ago by
John.
-
AuthorPosts
-
March 13, 2022 at 3:09 am #2152676
John
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).
March 13, 2022 at 6:04 am #2152769David
StaffCustomer SupportHi 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
?nowprocketto end of the URL e.ghttps://themoneyninja.com/chase-bank-promotions/?nowprocketApril 21, 2022 at 3:47 pm #2196442John
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?
April 21, 2022 at 11:07 pm #2196626David
StaffCustomer SupportThe menu uses this script:
/wp-content/themes/generatepress/assets/js/menu.min.jsJuly 16, 2022 at 5:55 pm #2284832John
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?
July 17, 2022 at 6:20 am #2285123David
StaffCustomer SupportGenerateBlocks doesn’t load ANY Javascript.
July 20, 2022 at 10:37 pm #2289133John
Does it load via CSS?
July 20, 2022 at 10:43 pm #2289136Fernando Customer Support
It’s added as HTML through PHP. Yes, there’s CSS added for GenerateBlocks for its design.
Hope this clarifies!
September 6, 2022 at 9:43 am #2335135Elizabeth
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?
September 6, 2022 at 1:33 pm #2335260David
StaffCustomer SupportHi there,
does the issue go away if you disable WP Rocket ?
September 6, 2022 at 1:34 pm #2335261Elizabeth
hi there yes it does. i tested it by following your thread
September 7, 2022 at 1:00 am #2335629David
StaffCustomer SupportHmmm…. 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.
September 7, 2022 at 8:50 am #2336199Elizabeth
ok
September 12, 2022 at 9:34 pm #2341167John
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.
-
AuthorPosts
- You must be logged in to reply to this topic.