Home Forums WoodMart support forum WP Rocket & Age verify

WP Rocket & Age verify

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #675140

    visanchan
    Participant

    Hi WoodMart Support Team,

    I have enabled WP Rocket’s JavaScript optimization features, including:

    Delay JavaScript Execution

    Load JavaScript Deferred

    In addition, I’ve also enabled the “WP Rocket delay JS exclusions” option under Theme Settings → Performance.

    However, I noticed that the age verification popup reacts with a delay — there is a noticeable lag after the user clicks before the popup responds.

    Moreover, when I try to manually add the age verification script handle to WP Rocket’s JS exclusion list, the popup completely fails to load (it doesn’t appear at all).

    Could you clarify:

    Why is the popup still delayed even though the theme’s exclusion list is active?

    Are there specific script handles or file names that must be excluded manually for the age verification to function correctly?

    Or is this a known compatibility issue between the age verification and WP Rocket’s JS optimization?

    Thanks for your support,

    #675255

    Luke Nielsen
    Keymaster

    Hello,

    Is there any chance that you could give me access to the dashboard area so I can check the settings there?

    Looking forward to collaborating with you!

    Kind Regards

    #675306

    visanchan
    Participant

    Of course, no problem at all. However, since my website is relatively complex and has many plugins installed, I tend to be very cautious with any changes to avoid potential conflicts. May I kindly ask that you briefly let me know what specific changes have been made after each update? This would greatly help me troubleshoot more efficiently if any issues arise later. Thank you very much for your understanding and support!

    #675309

    visanchan
    Participant

    The issue presents as follows: when the website loads and the age verification popup appears, the total number of requests is initially around 50+. At this stage, clicking the “I am over 18” button does not trigger any response.

    However, if the user clicks somewhere else on the page or moves the mouse, the number of requests quickly increases to over 130. Only then — and after a 2–3 second delay — does the age confirmation button finally respond.

    It seems like the button requires certain scripts or resources to be fully loaded before it becomes interactive.

    #675353

    visanchan
    Participant

    Hello, may I kindly ask if you were able to log in successfully?

    #675420

    Luke Nielsen
    Keymaster

    Okay, I see. May I disable 3rd party plugins there and enable the parent theme for testing?

    If not, could you please send access to the staging website?

    Kind Regards

    #675469

    visanchan
    Participant

    No. Please wait — I will create the staging site.
    Also, what time does your team finish work today?
    Can you confirm if this issue will be handled and resolved today?

    #675479

    visanchan
    Participant

    Here is the staging site

    #675480

    visanchan
    Participant

    More information

    #675530

    Luke Nielsen
    Keymaster

    In general, the age verification has nothing to that issue. You have enabled the “Delay JS” option in the plugin, here is the information on how it works – https://docs.wp-rocket.me/article/1349-delay-javascript-execution

    So when you click on some place, other scripts start to load and most of them are from 3rd-party plugins, they are loaded all at once, thus you see some delay.

    Also, the website has around 19MB resources – https://take.ms/Ay0JA , and it’s a lot.

    E.g., I have disabled some 3rd-party plugins (https://take.ms/IzYsR), and now the scripts weight is 1.2MB – https://take.ms/BCyTA , If I enable back all plugins, the scripts weight is 6.5MB – https://take.ms/JWima so you can either test that issue with the disabled 3rd party plugins or exclude those 3rd-party plugins from delay.

    While testing, I left these enabled:

    Elementor
    Contact Form 7
    Contact Form 7 Multilingual
    Rank Math SEO
    Safe SVG
    WooCommerce
    WooCommerce Multilingual & Multicurrency
    WPML plugins

    You can do the same and recheck the issue with the popup and let me know.

    I await your response.

    Kind Regards

    #675635

    visanchan
    Participant

    Question Regarding Recent Shop Page Traffic Patterns

    #675651

    Luke Nielsen
    Keymaster

    Hello,

    Check the article below for help:

    https://www.wpbeginner.com/plugins/best-wordpress-security-plugins-compared/

    Kind Regards

Viewing 12 posts - 1 through 12 (of 12 total)