My application is too slow

6 posts, 0 answers
  1. Andres
    Andres avatar
    13 posts
    Member since:
    Aug 2013

    Posted 25 Oct 2013 Link to this post

    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
  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 25 Oct 2013 Link to this post

    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.
  3. Andres
    Andres avatar
    13 posts
    Member since:
    Aug 2013

    Posted 25 Oct 2013 Link to this post

    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? 

  4. Andres
    Andres avatar
    13 posts
    Member since:
    Aug 2013

    Posted 29 Oct 2013 Link to this post

    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
  5. Kristian D. Dimitrov
    Admin
    Kristian D. Dimitrov avatar
    68 posts

    Posted 29 Oct 2013 Link to this post

    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.
  6. Andres
    Andres avatar
    13 posts
    Member since:
    Aug 2013

    Posted 29 Oct 2013 Link to this post

    Thanks a lot, I am going to try it and see if the performance improves. I will let you know.

    Cheers,
    Andrés
Back to Top