How do I prevent scrolling of a host page when embedding a Figma preview iframe?

We’re using Figma’s embed previews in our documentation site. We often embed more than one preview on a page. It looks like Figma’s preview code attempts to scroll the preview iframe into view when it loads. I’m not sure why this is the default behavior, as it autoscrolls our parent page unexpectedly when it loads. Is there a way to turn this ‘feature’ off?

1 Like

I’ve just found the same issue working on my portfolio site, this is what worked for me — I added loading=“lazy” at the beginning of the embed, and now they load when I scroll to them:

Probably kind of hacky but hope this helps you!