Rocket loader affect OneTrust scripts

What is the name of the domain?

snipesusa.com

What is the issue you’re encountering

One some pages OneTrust.ToggleInfoDisplay() is not working properly

What are the steps to reproduce the issue?

I have already added data-cfasync=“false” attributes to all onetrust related scripts.
However, there is still one otBannerSdk.js which is being added by one of the onetrust scripts I wrapped in “exclude rocket loader” attribute.
Strange is, that sometimes oneTrust works as expected, but if I navigate to some other random page - it might not work as intended.
I wonder, if anyone has similar issues while integrating OneTrust to live site with rocket loader enabled?

Screenshot of the error

  • The data-cfasync attribute must be added before the src attribute.
  • If the script you want Rocket Loader to ignore has dependency on other JavaScript(s) on the page, those dependencies must also have the data-cfasync="false" attribute.

Hello, thank you for inputs, I also tried to add data-cfasync before src attribute - however it does not help.
OneTrust injects otBannerSdk.js dynamically and I am not sure I can introduce any changes to that script :frowning: