Preventing view updates when editor is out of the viewport

Hi!

May I confirm the correct/preferred way to prevent editor view updates when the editor is scrolled out of the window? The use case is: while displaying multiple editors stacked one on top of the other for displaying contents on multiple files, and for example I resize the window, I could potentially save on performance if only the editor in the current viewport does some internal work regarding the view. I also don’t care if the scrollbar position is inaccurate as a result.

Would setting the display to none be enough, or do I need something like removing the editor from the dom?

Thanks!

This should be happening automatically, without any action on your part.

I see, I need to double check on my widgets then to see if one of them is causing the sluggishness. Thanks for your confirmation!