[CAL-1656] Embed UX Issue
The flash of a white backgound is jarring on a dark site, which is unavoidable with iframes. Also iframes don't render properly inside of Framer Motion layout animations.
Current situation:
- The script that adds 'dark' class to html tag is in body and till then browser has already rendered a white background
- I moved the script to at the top of head which improved the situation a bit but there is still a white background tha can be seen
- Tried adding a style attribute to html tag with background dark, which too doesn't help. It points in the direction that the browser seems to add white background even before iframe starts loading. How can we change that? There should ideally be something on iframe that we can tweak. Tried setting background on iframe tag itself, doesn't help. That background is not visible.
@hariombalhara hey bro but i dont think it happens in prod as ssr is happening the white screen is isnt seen ... or maybe i understood the issue wrong.. correct me if so😅
It's in prod only. Did you test out https://build-a9f5d2e9-c1aa-40fc-b9a7-caf250e36fa0.gatsbyjs.io/ ? It doesn't matter if SSR is done.
okay ill try to figure out ... btw https://build-a9f5d2e9-c1aa-40fc-b9a7-caf250e36fa0.gatsbyjs.io/ this looks mad.