Plugin Author
Phil
(@philsbury)
Hi @simplyau,
This is expected when using the javascript version as it is included at the bottom of the HTML code to prevent “render blocking”, it also waits for the DOM to be in place before executing so the required page elements are there to be manipulated. As such there can slight delay, which will depend on how many render blocking assets come before the age gate scripts.
You page is loading pretty quick though, sub 1 second in most of my tests – though google page insights does suggest there’s too many render blockers
Thanks
Phil
Is there any way to move the scripts up into the header or the very top of the body? I’d like Age Gate to load first and display on the page while everything else loads in the background asynchronously (?). Is this possible?
The site in question is in process of having render-blocking content reviewed and corrected, so for now, having the Age Gate load/display while the rest of the content loads in the ‘background’ would be ideal.
Thanks for your help.