Layout and Iframe refresh

Hello,
I use Version 9.1.6, Standard edition.
I have a lyout inside a tab. In this layout I attach HTML to an iframe.
Howver each time a change the tab, the iframe is already refreshed. I need have iframe never refreshed. So how can i prevent the iframe to be loaded once.
Here is the code:
this.layout_ = new dhx.Layout(“console_”, {

    type: "line",
    height: window.innerHeight - (75 + 50),
    rows: [
        {
            id: "console_",
            padding: 2,
            resizable: false
        }
    ]
});

let url = "https://" + se_hwTest_ip + ":" + se_hwTest_port + "/console";
let htmlContent = '<section class="dhx_sample-container"><iframe id="consoleFrame_" loading="eager" height="100%" width="100%" src="' + url + '" \
style="overflow:hidden;overflow-x:hidden;overflow-y:hidden;height:100%;width:100%;border:0px;margin:1px;"></iframe></section>';
this.layout_.getCell("console_").attachHTML(htmlContent);
in_tabCell.attach(this.layout_);

Hello @mustapha.boularbi,

The issue may occur, because you are using the same id(_console) for layout container and layout cell, so you can check it.

Here is an example with iframe inside layout, and it doesn’t re-render on browser tab changes:

If it doesn’t help - I can’t say for sure, without knowing your app config, but likely layout isn’t displays when you are moving out from its tab.

So it re-renders when you reopen the tab and so and re-renders its content (iframe), and it’s no easy way to affect this behavior - as re-rendering of layout will cause re-render of it’s content.

It may be helpful if you reproduce the exact use case in our snippet tool:
https://snippet.dhtmlx.com/rw0rbnhk

(open the snippet => reproduce the issue => click the “Save” button => send me the new link)

Kind regards,