Search code examples
androidjquery-mobilemobilerhomobile

Application with rhomobile and jQuery mobile is slow


I've developed a mobile application with rhomobile + jQuery Mobile.

When I deploy it on a mobile phone "for android", it is very slow.

Could you help me to find the reason?


Solution

  • You can deactivate transition in your Rhodes app very easily to give it a try. In the layout.erb file inside the app folder of your Rhodes application, you can find:

    // Uncomment these options in case of performance problem in pages transition
    //$.mobile.defaultPageTransition = 'none';
    //$.mobile.defaultDialogTransition = 'none';
    //$.mobile.ajaxEnabled = false;
    //$.mobile.pushStateEnabled = false;
    //$.mobile.loadingMessageDelay = 50; // in ms
    

    Just uncomment it and give it a try.