Usercentrics - PUBLIC

How can I render the HTML Embeddings when using lazy load?

Please use the following function from our frontend Javascript API and combine it with an event listener:

usercentrics.updateCornerModalIsVisible(false)

This updates the state of the Corner Modal while not changing any visuals – the Corner Modal will not be opened.

Your code snippet could look like this:

document.addEventListener("load", function(){   usercentrics.updateCornerModalIsVisible(false); }

If the “load” event happens too early, please use an event that occurs at a later point of time or add a delay.

Do you need further help?

https://usercentrics.atlassian.net/wiki/spaces/SKB/pages/234913848

Usercentrics - PUBLIC