[NSFW] Loading after content
-
I am currently using the Age Gate plugin on my website, but I’m experiencing an issue. The Age Gate does not load as the first element on the site. Instead, the rest of the site content (including scripts and styles) loads first, which defeats the purpose of restricting access to underage users.
Additionally, we use FlyingPress for optimization, including defer and delay for scripts. This may be affecting the loading sequence of the Age Gate. Could you please guide me on how to:
- Ensure that the Age Gate loads first, regardless of the FlyingPress optimization settings?
- Block or delay other scripts and styles from rendering until the Age Gate confirmation is completed?
I’ve attempted the following so far:
- Enqueuing the Age Gate scripts and styles as a priority using WordPress hooks.
- Using filters to delay other scripts until the Age Gate confirmation.
Despite these attempts, the rest of the content still renders momentarily before the Age Gate appears.
Any guidance, including specific settings for FlyingPress or adjustments to the Age Gate configuration, would be greatly appreciated.
The page I need help with: [log in to see the link]
The topic ‘[NSFW] Loading after content’ is closed to new replies.