This is a migrated thread and some comments may be shown as answers.

My application is too slow

5 Answers 180 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Andres
Top achievements
Rank 1
Andres asked on 25 Oct 2013, 10:39 AM
Hello, 

I am finishing my first application development with Icenium. I have only one concern regarding the speed of the application. I have already published as a beta in Google Play and after downloading it, is still slow. It is not too big, only 1,5 Mbytes. After running the application couple of times, the second launching goes a little bit better but still not optimum. 

Do you have any advise I can try in order to optimize tha application speed. It generally happens when navegating throw the different windows and not when making request to the server.

Thanks a lot,
Andrés

5 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 25 Oct 2013, 10:58 AM
Hi Andrés,

First it is important to mention whether you're using jQuery, Kendo UI Mobile or other framework as base for your hybrid app. Second, does your application slow down with time or you just find it slow in general? If the latter, maybe you're comparing it with a native app performance, which would not be correct?
If the app gets slower with time, upgrading to latest jQuery or Kendo UI Mobile version might be a good idea in case there is a memory leak that is already addressed. You can even try profiling the app in Chrome (or the Icenium simulator) and identify what takes most time.

Regards,
Steve
Telerik
You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
0
Andres
Top achievements
Rank 1
answered on 25 Oct 2013, 11:12 AM
Thanks a lot for your support. We are using JQuery but the application does not get slower with time, I would say the opposite. It takes time when loading first and after (looks like it has the pages in memory) goes much faster. 

The first time I load my app it takes 10 seconds and this is too much, I guess we are doign something wrong but I do not know what, any idea? 

0
Andres
Top achievements
Rank 1
answered on 29 Oct 2013, 10:05 AM
Hello,

I am trying to debug my APP using the simulator. It seems that when starting the APP is loading a lot of components of the Cordova Library and is taking a lot of time. In the simulator works fine but in an Android device (Nexus 4 for example) takes 10 seconds. Any suggestion how can I accelarate the APP loading?

Thanks a lot,
Andres
0
Kristian D. Dimitrov
Telerik team
answered on 29 Oct 2013, 12:52 PM
Hello Andres,

 Performance issues are very tricky and app specific. However here are some general tips that might help:



1: Hide the splashscreen on "deviceready" event. I guess this might cause the 10 seconds initial start. Add this code to your application if you already haven't:

document.addEventListener('deviceready', onDeviceReady, false);
 
onDeviceReady = function() {
        navigator.splashscreen.hide()
},


2: Get to deviceready event as soon as possible. More information about this here.



3.Turning hardware acceleration for Android on from Project Properties might increase the performance of your application on some Android devices.



4. Here is a blog post with some tips. You might want to take a look at this and this thread on stackoverflow.Regards,

Kristian D. Dimitrov
Telerik

You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.

Looking for tips & tricks directly from the Icenium team? Check out our blog!

Share feedback and vote for features on our Feedback Portal.
0
Andres
Top achievements
Rank 1
answered on 29 Oct 2013, 01:03 PM
Thanks a lot, I am going to try it and see if the performance improves. I will let you know.

Cheers,
Andrés
Tags
General Discussion
Asked by
Andres
Top achievements
Rank 1
Answers by
Steve
Telerik team
Andres
Top achievements
Rank 1
Kristian D. Dimitrov
Telerik team
Share this question
or