Home › Forums › WoodMart support forum › WP Rocket & Age verify
WP Rocket & Age verify
- This topic has 11 replies, 2 voices, and was last updated 2 hours, 24 minutes ago by
Luke Nielsen.
-
AuthorPosts
-
July 20, 2025 at 2:19 pm #675140
visanchanParticipantHi 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,
July 21, 2025 at 11:41 am #675255
Luke NielsenKeymasterHello,
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
July 21, 2025 at 2:14 pm #675306
visanchanParticipantOf 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!
July 21, 2025 at 2:21 pm #675309
visanchanParticipantThe 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.
July 21, 2025 at 4:26 pm #675353
visanchanParticipantHello, may I kindly ask if you were able to log in successfully?
July 22, 2025 at 9:54 am #675420
Luke NielsenKeymasterOkay, 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
July 22, 2025 at 12:07 pm #675469
visanchanParticipantNo. 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?July 22, 2025 at 12:33 pm #675479
visanchanParticipantHere is the staging site
July 22, 2025 at 12:36 pm #675480
visanchanParticipantMore information
July 22, 2025 at 2:59 pm #675530
Luke NielsenKeymasterIn 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 pluginsYou can do the same and recheck the issue with the popup and let me know.
I await your response.
Kind Regards
July 23, 2025 at 2:48 am #675635
visanchanParticipantQuestion Regarding Recent Shop Page Traffic Patterns
July 23, 2025 at 9:37 am #675651
Luke NielsenKeymasterHello,
Check the article below for help:
https://www.wpbeginner.com/plugins/best-wordpress-security-plugins-compared/
Kind Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register