Reputation: 11
I have an Android Web apps using jquerymobile and phonegap.
I already compress js/html, place my scripts at the bottom of the page, and I am still not satisfied with the performance of my apps, especially when my script is doing DOM manipulation.
The response of the touch event is very slow (>2 sec or event more).
Tested with Android Browser/Android Firefox and the results are still the same.
When I compare the performance to the normal desktop browser / iPhone Safari / BlackBerry Browser / Nokia Browser my apps are responsive.
Specifications:
Recap of what I have already tried:
Upvotes: 1
Views: 1118
Reputation: 6973
Try the following.
Add:
webview.getSettings().setRenderPriority(RenderPriority.HIGH);
webview.getSettings().setCacheMode(WebSettings.LOAD_NO_CACHE);
And to the manifest:
android:hardwareAccelerated="true"
Also, collate and minify the scripts (instead of just minifying) and use .destroy() a lot to keep your DOM trim.
PhoneGap on Android is notoriously slow unfortunately.
Upvotes: 1