ubuntu-webapps-bugs team mailing list archive
-
ubuntu-webapps-bugs team
-
Mailing list archive
-
Message #01305
[Bug 1359911] [NEW] Cannot instantiate a WebView asynchronously
Public bug reported:
In order to optimize the startup time of webbrowser-app, I looked into
instantiating WebView with Component.incubateObject(…) (see http://qt-
project.org/doc/qt-5/qml-qtqml-component.html#incubateObject-method)
instead of Component.createObject(…).
However for some reason the incubation always happens synchronously. I’m
attaching a couple of examples that demonstrate this (one using
Component.incubateObject(…), the other one using a Loader with
asynchronous set to true, both instantiate the WebView synchronously).
If we could instantiate WebViews truly asynchronously, that would avoid
blocking rendering while the webview is instantiated. Currently, on a
reference device, instantiating a WebView takes between 300 and 400ms to
instantiate, and no rendering happens during that time.
** Affects: oxide
Importance: Undecided
Status: Confirmed
--
You received this bug notification because you are a member of Ubuntu
WebApps bug tracking, which is subscribed to Oxide.
https://bugs.launchpad.net/bugs/1359911
Title:
Cannot instantiate a WebView asynchronously
Status in Oxide Webview:
Confirmed
Bug description:
In order to optimize the startup time of webbrowser-app, I looked into
instantiating WebView with Component.incubateObject(…) (see http://qt-
project.org/doc/qt-5/qml-qtqml-component.html#incubateObject-method)
instead of Component.createObject(…).
However for some reason the incubation always happens synchronously.
I’m attaching a couple of examples that demonstrate this (one using
Component.incubateObject(…), the other one using a Loader with
asynchronous set to true, both instantiate the WebView synchronously).
If we could instantiate WebViews truly asynchronously, that would
avoid blocking rendering while the webview is instantiated. Currently,
on a reference device, instantiating a WebView takes between 300 and
400ms to instantiate, and no rendering happens during that time.
To manage notifications about this bug go to:
https://bugs.launchpad.net/oxide/+bug/1359911/+subscriptions
Follow ups
References