Tabs default behaviour is synchronous, should be async
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu UI Toolkit |
Triaged
|
Low
|
Unassigned | ||
ubuntu-ui-toolkit (Ubuntu) |
Won't Fix
|
Low
|
Unassigned |
Bug Description
Tabs are often created by developers the following way:
Tab {
title: i18n.tr("Simple page")
page: Page {
}
}
}
instead of the lazy loading way that does not penalise app startup:
Tab {
id: tab
title: i18n.tr("Simple page")
page: Loader {
}
}
}
This leads to a lot of apps starting slowly. I think we should make the default Tab behaviour to be asynchronous.
Changed in ubuntu-ui-toolkit: | |
importance: | Undecided → Critical |
Changed in ubuntu-ui-toolkit: | |
importance: | Critical → High |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
importance: | Undecided → High |
status: | New → Triaged |
Changed in ubuntu-ui-toolkit: | |
importance: | High → Low |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
importance: | High → Low |
The Tabs API allows Tab elements to be declared as children. Moving to lazy loading would mean we must have an API break, so all Tabs added will be considered as list<Component>.