Pahlevi Fikri Auliya
Pahlevi Fikri Auliya

Reputation: 4527

Bootstrap 3 run slowly in Phonegap

I load plain Bootstrap starter app (minified css and js) on PhoneGap (latest version, 3.0.0). Somehow it takes 8-10 seconds just to load the application (run on Samsung S3). Does anyone encounter the same issue? How to improve?

I believe it's not PhoneGap nor my Samsung S3 issue as plain HTML without Bootstrap load very fast.

Upvotes: 0

Views: 1433

Answers (3)

maltouzes
maltouzes

Reputation: 41

Do you really need phonegap? I made some applications with cordova + bootstrap (v3) and the applications start in less than 3 seconds.

Be sure that your resource files being loaded locally.

Upvotes: 0

fida1989
fida1989

Reputation: 3249

Try the following:

  • Adding android:hardwareAccelerated="true" in the manifest
  • If you use webview:

    webview.getSettings().setRenderPriority(RenderPriority.HIGH); and webview.getSettings().setCacheMode(WebSettings.LOAD_NO_CACHE);

Upvotes: 1

Matthew Reilly
Matthew Reilly

Reputation: 619

Have you tried removing the javascript? That's the only thing that really would be slowing it down I think.

Upvotes: 1

Related Questions