segmentio / analytics-next

Segment Analytics.js 2.0
https://segment.com/docs/connections/sources/catalog/libraries/website/javascript
MIT License
403 stars 136 forks source link

Blink display on loading segment library #1030

Closed pkolt closed 8 months ago

pkolt commented 8 months ago

Hi guys!

I use Next.js 14 and I watch one problem on loading segment library.

While loading the segment library, for some reason the CSS property opacity is set to 0 for body (HTML element).

This causes the content to momentarily disappear. On dark themes it looks like the screen is blinking.

https://github.com/segmentio/analytics-next/assets/478905/776a64c3-0769-4e96-bf21-69ac3e13bbde

I am sure that the problem is in the segment library, and not in something else, because it is the segment code that changes the transparency properties.

Screenshot 2024-01-25 at 16 08 19 Screenshot 2024-01-25 at 16 06 48
silesky commented 8 months ago

Hi! This is an integration maintained by VWO on the segment action destination repo. Can you take out a support ticket on vwo.com?

pkolt commented 8 months ago

@silesky OK, thank you!