Learn how to solve some common On-site messaging integration issues.
Take a look at our Best practices for tips about improving the loading time.
<klarna-placement>and script tags are valid HTML.
data-client-idfrom the correct environment.
On-site messaging is rendered inside shadow DOM to improve loading times. Using the Fastclick library makes the elements unclickable inside shadow DOM. This is a known issue.
Here are some ways to fix the issue:
needsclickclass to all shadowhost divs. Shadowhost divs of On-site messaging are added dynamically by the On-site messaging script while processing the placements. You have to observe the change and add the
needsclickclass only after a shadowhost div is appended. To query the elements where the
needsclickclass should be added, run the following: