Prehiding snippet for Target (Web SDK) not working. | Community
Skip to main content
Level 2
August 3, 2023
Solved

Prehiding snippet for Target (Web SDK) not working.

  • August 3, 2023
  • 1 reply
  • 1205 views

Hello community!

I have implemented the target functionality using the web SDK and added the prehiding snippet above the launch script. However, I'm facing an issue where the website doesn't hide before target modifications. Currently, upon loading the page, I can observe the default version initially, and after 2-3 seconds, the target experience appears.

Can anyone help in understanding why my prehiding snippet isn't functioning as expected.


Thanks
Sai

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by alexbishop

Looks like there's a small error in the documentation because the snippet provided includes .body as a selector, which isn't correct, it should just be body. e.g. it should be "body { opacity: 0 !important }" not 

".body { opacity: 0 !important }"

1 reply

alexbishop
Adobe Employee
alexbishopAdobe EmployeeAccepted solution
Adobe Employee
August 3, 2023

Looks like there's a small error in the documentation because the snippet provided includes .body as a selector, which isn't correct, it should just be body. e.g. it should be "body { opacity: 0 !important }" not 

".body { opacity: 0 !important }"