Tabs default behaviour is synchronous, should be async

Bug #1362257 reported by Florian Boucault
6
This bug affects 1 person
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 {
                Label {
                    text: "A label"
                }
            }
        }

instead of the lazy loading way that does not penalise app startup:

        Tab {
            id: tab
            title: i18n.tr("Simple page")
            page: Loader {
                parent: tab
                anchors {
                    left: parent.left
                    right: parent.right
                    bottom: parent.bottom
                }
                source: "MyCustomPage.qml"
                active: tabs.selectedTab === tab
            }
        }

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
Revision history for this message
Zsombor Egri (zsombi) wrote :

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>.

Changed in ubuntu-ui-toolkit:
status: New → Triaged
Zoltan Balogh (bzoltan)
Changed in ubuntu-ui-toolkit (Ubuntu):
importance: Undecided → High
status: New → Triaged
Zoltan Balogh (bzoltan)
Changed in ubuntu-ui-toolkit:
importance: High → Low
Changed in ubuntu-ui-toolkit (Ubuntu):
importance: High → Low
Revision history for this message
Tim Peeters (tpeeters) wrote :

The Tabs component is being deprecated, but the new AdaptivePageLayout supports asynchronous loading.

Changed in ubuntu-ui-toolkit (Ubuntu):
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.