PDA

View Full Version : Delayed instantiation and generated DOM structure



xjscrafter
4 Dec 2013, 12:38 PM
I believe that if I have a TabPanel, then the second tab UI elements are not rendered until the second tab is clicked. My question is, if I have not yet clicked the second tab then the second tab UI elements should not be rendered in the generated DOM, for example in the Firebug HTML tab, correct?

Kevin Jackson
6 Dec 2013, 8:38 AM
If you need access to items immediately in the as yet un-rendered tab you would need to add
deferredRender: false,

xjscrafter
6 Dec 2013, 8:45 AM
Actually, I'm more concerned with when objects show up and start taking up memory.

When I look at html in Firebug, I only see html for the currently selected tab, but does that mean that XJS has not already instantiated the other tab content but is simply not rendering it yet?

Kevin Jackson
6 Dec 2013, 1:41 PM
If it isn't rendered, it isn't in memory yet. Is that what you meant?

xjscrafter
6 Dec 2013, 3:03 PM
I think that's it. We're worried about memory leaks.