Hello,
I am experiencing an issue with the mobile version of the menu on my website. I noticed that when visitors open the site, the mobile menu often doesn’t work immediately. Many users try to click the menu a couple of times, and then simply leave the site.
From what I understand, this seems to be related to WP Rocket’s “Delay JavaScript Execution” feature, which delays loading your theme’s JS code, causing the mobile menu to not function on time. I tried using the “WP Rocket delay JS exclusions” option in your theme settings, which makes the mobile menu load a bit faster, but then it doesn’t work correctly – either it doesn’t open at all or, when it opens, subcategories are missing.
Could you please advise on how to properly configure the theme (or scripts) so that the mobile menu works instantly and correctly even when WP Rocket’s Delay JS is enabled?
Thank you in advance for your help.