Excluding a class for faster mobile menu opening when Excluded JavaScript Files is enabled

This topic has 3 replies, 3 voices, and was last updated 3 months ago ago by engeldeluxe

  • Avatar: mahdar
    MAHDAR
    Participant
    August 30, 2025 at 14:49

    Hello, I hope youโ€™re doing well.

    When Excluded JavaScript Files is enabled in WP Rocket, I have to wait until all JS classes are loaded before the mobile menu can open.

    I would like to exclude the specific class for the mobile menu in Excluded JavaScript Files, so that its file loads immediately and the menu opens quickly when the user clicks on it.

    Please, contact administrator
    for this information.
    2 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    August 31, 2025 at 14:01

    Hello @MAHDAR,

    Thank you for your message.

    Please note that there are no specific classes that can be excluded in this case, as the majority of the scripts are built using the jQuery library. These scripts require the document to be fully loaded in order to correctly recognize all selectors across the page and perform the intended actions with the associated classes.

    You may also observe that other features, such as sliders, do not function properly until the page has completely loaded. This behavior is consistent with how jQuery operates.

    For more information, you may refer to the official documentation on this topic: https://learn.jquery.com/using-jquery-core/document-ready/

    Best regards,
    The 8Theme Team

    Avatar: engeldeluxe
    engeldeluxe
    Participant
    September 1, 2025 at 13:45

    Hello @MAHDAR
    Did you find any solution for that case? We also stuck in the same problem with same feedback: there is no solution with caching plugn and xstore for burger icon. ๐Ÿ™

  • Viewing 3 results - 1 through 3 (of 3 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.