Content Loading for TabBar Quick Question

Maybe its just me and how I am reading this descriptions, however Im not sure which one to use.



* iframe - single iframe created and in content changed on active tab changing;

* iframes - iframes for each tab created and its content loaded at once;

* iframes-on-demand - iframes created only when tab activated.



I want to have a tab only load when its selected, however if that tab is revisted I would like information to still be loaded and not re-loaded again. I am currently using the iframe option, I hope this is correct.


If content should be loaded when tab is selected, but shouldn’t be reloaded, it is more correct to use “iframes-on-demand”:


tabbar.setHrefMode(“iframes-on-demand”);


“iframe” mode uses one iframe for each tab, so its content is reloaded each time a tab is selected.