Issue with Mobile Menu Not Working Properly When Using WP Rocket Delay JS

This topic has 13 replies, 2 voices, and was last updated 3 months, 2 weeks ago ago by Jack Richardson

  • Avatar: Kestutis
    Kestutis
    Participant
    August 2, 2025 at 11:55

    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.

    Please, contact administrator
    for this information.
    12 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    August 4, 2025 at 08:35

    Hello @Kestutis,

    We hope this message finds you well.

    Kindly check the website now. We have added the following file to the “Excluded JavaScript Files” section in the WP Rocket settings:

    https://www.yourwebsite.com/wp-content/themes/xstore/js/elementor-all-widgets.min.js

    You may view the updated settings here: https://prnt.sc/533pM9b-9qWz

    Please let us know if everything is working as expected or if any further assistance is needed.

    Best regards,
    Jack Richardson
    The 8Theme Team

    Avatar: Kestutis
    Kestutis
    Participant
    August 4, 2025 at 09:10

    I don’t really understand what the problem is. But when I go to my phone and load the page, I click on the menu icon and have to wait about 5-6 seconds for it to open. The same thing happens when I go to another internal page, such as the categories page.

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    August 4, 2025 at 10:02

    Hello @Kestutis,

    Thank you for reaching out.

    Please note that scripts and styles may require some time to fully load. Are you experiencing similar issues on our demo pages or with other off-canvas elements throughout your website?

    If you are not using a CDN, we recommend configuring the script loading process for optimal performance. Additionally, if your pages contain a large DOM, it may take longer for content to load and for scripts and styles to render properly. In such cases, we suggest utilizing lazy-loading features or minimizing the amount of content on each page to improve loading times.

    Also, you can try to disable the delay scripts in WP Rocket settings and check if it helps as sometimes not all options could improve the loading time in combination and more effective is to set the most useful settings while setting others to inactive.

    To better understand the issue, we would greatly appreciate it if you could share a video demonstrating the problem from your side.

    Best regards,
    The 8Theme Team

    Avatar: Kestutis
    Kestutis
    Participant
    August 4, 2025 at 10:55

    As for the high DOM content, it has already been reduced. Since I use most of your components, the DOM depth used is what it is.
    I also noticed that after theme updates, the shopping cart does not refresh when an item is added.

    Please contact administrator
    for this information.
    Files is visible for topic creator and
    support staff only.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    August 4, 2025 at 11:13

    Hello @Kestutis,

    We hope this message finds you well.

    Could you kindly provide us with your feedback on whether the issue with the mobile menu functionality has been resolved after disabling the “Delay JavaScript Execution” option in the WP Rocket settings?

    We appreciate your time and assistance.

    Best regards,
    The 8Theme Team

    Avatar: Kestutis
    Kestutis
    Participant
    August 4, 2025 at 11:26

    The situation remains the same. As captured in the video.

    Avatar: Kestutis
    Kestutis
    Participant
    August 4, 2025 at 11:27

    Did you also notice what happens to the mini cart in the video?

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    August 4, 2025 at 12:15

    Hello @Kestutis
    Please, check the mini-cart widget issue now. We improved the WP Rocket configuration on your web-site.
    Kind regards, Jack Richardson
    The 8theme’s team

    Avatar: Kestutis
    Kestutis
    Participant
    August 4, 2025 at 12:28

    Have you tried it yourself on the mobile version? Because it works the same way for me as it did in the video.

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    August 4, 2025 at 12:31

    Hello @Kestutis,

    Yes, we conducted testing on our end prior to suggesting that you perform a test on your side.
    Please find the attached video for your reference.

    Best regards,
    The 8Theme Team

    Please contact administrator
    for this information.
    Avatar: Kestutis
    Kestutis
    Participant
    August 4, 2025 at 12:36

    But from your testing, I don’t see that you tried to open the menu.

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    August 4, 2025 at 12:56

    Hello @Kestutis,

    We hope this message finds you well.

    Please find attached a video demonstrating the mobile menu testing. Based on our observations, the menu response time appears to be approximately even less one second, rather than the 3–5 seconds you previously mentioned.

    The video is attached below for your reference.

    Best regards,
    The 8Theme Team

    Please contact administrator
    for this information.
  • Viewing 13 results - 1 through 13 (of 13 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.