0

我正在使用 jquery mobile 开发移动网页,它似乎具有几乎所有必需的功能,但我发现它非常慢。特别是,在过渡期间,整个性能是不可接受的。由于我没有更改有关 jquery mobile 的任何配置,有没有办法让它更快?

我正在 iis 8.0 + asp.net MVC 4.0 剃须刀、jquery mobile 1.0 上进行测试

4

1 回答 1

2

尝试在后端使用 Microsoft 的任务并行库来划分控制器需要执行的工作。并行运行将使其更快。另外,尝试从 JQM 中删除所有转换。它不那么性感,但会在页面转换时提供更多响应。

$(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;
}
于 2012-08-09T19:07:51.257 回答