1. #1
    Sencha User
    Join Date
    Nov 2012
    Posts
    3
    Vote Rating
    0
    lcba813 is on a distinguished road

      0  

    Default Unanswered: ST2 Button very slow, but only the first tap

    Unanswered: ST2 Button very slow, but only the first tap


    Good afternoon,

    I am starting to use ST2 and on my first application I have a form screen with a button that loads a JsonP store and pushes a new Nestedlist with the response to the filters in the first screen. Everything peachy...

    My only problem is that the first time I tap the button, the application takes about 15 seconds to go from the first screen to the next one, the button just stays there visibly pressed and nothing happens, if I get back to the main query window, and change parameters and issue a new query, everything works perfectly, no delay at all...

    Anyone can help pointing to where should I start looking for answers to this problem?

    Best regards,

    LC

  2. #2
    Sencha User
    Join Date
    Nov 2012
    Posts
    3
    Vote Rating
    0
    lcba813 is on a distinguished road

      0  

    Default


    I did some more investigation, made a profile of the application with Chrome, and found this stack of events taking 1.3 minutes.

    Any idea why it is happening?

    Screen Shot 2012-11-29 at 11.16.48 AM.jpg

  3. #3
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,142
    Answers
    3505
    Vote Rating
    855
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    I have not had any issues with this on any device I have used. How many components do you have rendered?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  4. #4
    Sencha User
    Join Date
    Nov 2012
    Posts
    3
    Vote Rating
    0
    lcba813 is on a distinguished road

      0  

    Default


    Hi Mitchell,

    I found what was wrong, the problem was with a grouper function associated to the store, and that was causing the delay. Since I had no idea where to start, I started commenting "additional" lines from the code, until I found the problem.

    Finally I started reading more and found out I was using the Tree Store where I should have been using a regular Store. Now the application is very responsive.

    Thanks anyways!

    LC

Thread Participants: 1