Termly banner fails to load
-
Hi there,
The Termly cookie banner code fails to load frequently and the only way to fix this is to add ‘defer’ to the script tag. Obviously, the issue with this is that then the script is not going to auto block other scripts, so we need a better solution.
If disabling the Intercom plugin, this then seems to load every time; so it would appear that because you are using wp_head hook to insert the cookie policy code, that other plugins are inserting their code higher up in the order. Some plugins replace the head tag and insert their code straight afterwards. We would suggest that this might be worth exploring as a possible solution. This kind of approach:
preg_replace( '~<head(\s+[^>]*)*>~Ui', '\\0' . $app['loader_script'], $buffer, 1 );
Thanks,
Theo- This topic was modified 2 years, 5 months ago by .
- This topic was modified 2 years, 5 months ago by .
The page I need help with: [log in to see the link]
- The topic ‘Termly banner fails to load’ is closed to new replies.