Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-35] Add an option to preload tabs

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionInvalid
Resolution Date2011-04-15T02:22:47.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterEric Butler
AssigneeReggie Seagraves
Created2011-04-15T02:22:47.000+0000
Updated2017-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.

Comments

  1. Blain Hamon 2011-04-15

    Mooted by the new codebase.

  2. Doney 2011-04-15

    Meaning that the new codebase already does this? Which Titanium version do you mean with this? :-)

  3. Doney 2011-04-15

    Meaning that the new codebase already does this? Which Titanium version do you mean with this? :-)

  4. Blain Hamon 2011-04-15

    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.

  5. Doney 2011-04-15

    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?

  6. Lee Morris 2017-03-09

    Closing ticket as invalid.

JSON Source