San
San

Reputation: 1104

possible way to make jquery mobile faster?

I'm working on mobile web page using jquery mobile, it seems to have almost every required feature but I found it's very slow. Especially, during transition the whole performance is not acceptable. Since I didn't change any configuration about jquery mobile, is there any possible way to make it faster?

I'm testing on iis 8.0 + asp.net MVC 4.0 razor, jquery mobile 1.0

Upvotes: 0

Views: 1390

Answers (1)

The Internet
The Internet

Reputation: 8103

Try using Microsoft's Task Parallel Library on the backend to divvy up the work your controllers need to do. Running in parallel will make it faster. Also, try removing all transitions from JQM. It's less sexy, but will provide more responsiveness on page transitions.

$(document).bind("mobileinit", function() {
      //Set your global init settings here
      //This is the setting you are looking for!      
      $.mobile.defaultPageTransition = 'none';

      //I personally use some other settings, such as:
      $.mobile.page.prototype.options.addBackBtn = true;
      $.mobile.useFastClick  = false;
}

Upvotes: 2

Related Questions