[TIMOB-35] Add an option to preload tabs
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2011-04-15T02:22:47.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Eric Butler |
Assignee | Reggie Seagraves |
Created | 2011-04-15T02:22:47.000+0000 |
Updated | 2017-03-09T20:52:01.000+0000 |
Description
In certain cases developers may need to pre-load application tabs, for example if they'd like to display a badge right away.
Currently with the kitchen_sink demo, the badge on the "UI" tab is only displayed after the user clicks on it, which is not the expected behavior.
I propose supporting a new XMl element called within in tiapp.xml. If set to true, the window's html would be loaded as soon as the tab was created.
Mooted by the new codebase.
Meaning that the new codebase already does this? Which Titanium version do you mean with this? :-)
Meaning that the new codebase already does this? Which Titanium version do you mean with this? :-)
Version 0.8.X and earlier (Mar 2009-Dec 2009) used a different design where tabs were specified in the tiapp.xml, and used HTML pages for logic--the HTML was loaded only on the tab's first focus. 0.9.X and later (Jan 2010 to current) use JS files that run as soon as they're opened. Tabs are specified at runtime. There's nothing to preload.
Ah. But what about the slight delay in showing a tableview when opening a tab?
Perhaps an option to preload tableviews is a good idea?
Closing ticket as invalid.