本文介绍了Phonegap + jQuery移动改进的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用jQuery Mobile构建Phonegap应用程序,整个App都是动态的,它正在从API加载数据。我有大约10页,而且App在Phonegap上的运行速度太慢了,但是当它涉及本机浏览器时,速度很快。我可以做些什么来加快Phonegap或者其他地方?

I am building a Phonegap App with jQuery Mobile, and the entire App is dynamic, it's loading data from an API. I have about 10 pages and the App is running too much slow on the Phonegap, but when it comes to native browser it's fast. There's something that I can do to speed up the Phonegap or wherever?

推荐答案

尝试禁用一些减慢它的CSS。在你的jquery mobile .css文件中添加到底部:

Try disabling some of the CSS that slows it down. In your jquery mobile .css file add this to the bottom:

* {
text-shadow: none !important;
-webkit-box-shadow: none !important;
-webkit-border-radius:0 !important;
-webkit-border-top-left-radius:0 !important;
-webkit-border-bottom-left-radius:0 !important;
-webkit-border-bottom-right-radius:0 !important;
-webkit-border-top-right-radius:0 !important;
}

这篇关于Phonegap + jQuery移动改进的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-02 00:46