unlayer / react-email-editor

Drag-n-Drop Email Editor Component for React.js
https://unlayer.com/embed
MIT License
4.54k stars 732 forks source link

Unlayer Editor iframe lagging wierd issue #311

Closed jay-softsages closed 1 year ago

jay-softsages commented 1 year ago

Please take a look at this video -

https://user-images.githubusercontent.com/120706758/220582707-93384c0f-d96b-41de-926c-f92a6420300b.mp4

The iframe document head is constantly updating the style and script tag which is making the iframe very laggy and my website become unresponsive. I have embedded this in my React project and the weird thing is that if I run my react project locally then this issue is not occurring but only happens on the live build where it is deployed.

Any particular reason why this is happening? Please help.

lucasbesen commented 1 year ago

@jay-softsages I'm not able to reproduce it. Could you share a live version and your code?

brunolemos commented 1 year ago

Maybe you are making some design change in the wrong place? Or loading a design multiple times? For example, do not call unlayer.setBodyValues() or something like that inside the design:updated callback, call it inside editor:ready.

Please share the full code or, preferably, a minimal reproducible demo using https://codesandbox.io/.

brunolemos commented 1 year ago

Hi @jay-softsages, what was the issue?