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

[Solved] App Performance Issues

1 Answer 103 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.
kory
Top achievements
Rank 1
kory asked on 26 Nov 2012, 05:25 PM
I have created a front end for an app my company is producing. I am early into the process so no data has been bound to any controls, however performance for simple things like scrolling and my simple jquery accordion menu are noticeably "laggy". When testing in the simulator I am getting smooth performance, but when testing on my galaxy s2 note I am getting what appears to be a low frame rate as well as a distinct delay on button press. Is there something I am doing wrong,  Or is this just how most apps run when being tested on a device (tested also with the airline app and it also seems to have "laggy" performance in device preview mode)? Perhaps the lag is fixed upon publishing the app? Does anybody have any input/experiences in this issue?

Here is my jquery for the accordion menu: <script>
           /*Activates and Configures Kendo Mobile App */
           var app = new kendo.mobile.Application(document.body, { transition: "slide", layout: "mobile-tabstrip" });
           
           $(document).ready(function () {
               /*Toggles Accordian Slide*/
               $('#nav > li > a').mousedown(function(){
                   $(this).next().slideToggle();
               });
               
               /*Toggles Nav Image*/
               $('#nav li div').mousedown( function() {
                  $(this).toggleClass('active');
               });
            });   
       </script>

1 Answer, 1 is accepted

Sort by
0
kory
Top achievements
Rank 1
answered on 26 Nov 2012, 05:56 PM
So it looks like my radial gradient backgrounds (not mentioned in my original post because I didn't think they would cause an issue) were causing a significant lag, app preforms way better if I style my main background with a linear gradient in stead of the radial gradient I had. Who'd of thought...
Tags
General Discussion
Asked by
kory
Top achievements
Rank 1
Answers by
kory
Top achievements
Rank 1
Share this question
or