12-10-2013 04:16 AM
Would there be any performance improvement for webworks in SDK 2.0?
It's tooo slow,
my app needs almost 2 seconds to boot up
1.5 seconds for the splashing screen that I can't disable
0.5 second for a white web-view and bbui init
it's just too slow.
and when the app runs,the animation of bbui sometimes has lag
you can see it's not smooth enough to call it a native app.
would there be any improvement ?
or I have to switch to Casades / native for a better performance?
Solved! Go to Solution.
12-10-2013 11:55 AM
Its a beta so less than optimal is to be expected
Just not that slow
I presume you're doing something in startup - loading something / externally loaded JS libs / compulcated DOM (BBui will get hurt by that)
12-10-2013 05:35 PM
12-12-2013 09:43 AM
There are actually a few performance enhancements in the beta SDK. It's unlikely to be noticable unless you are loading a large number of plugins or are making frequent API calls.
To add to Erik's comments about splash screen. The Cordova SplashScreen API eliminates the need to have a "fake" splashscreen in place while UI frameworks are initializing.
webworks plugin add org.apache.cordova.splashscreen
Then in config.xml:
<preference name="AutoHideSplashScreen" value="false" />
Now you have full control over when the splash screen is hidden: