angularjs - Best way to improve android webview loading performance for SPA -


question

i wonder best way make android webview perform best single page application loading.

situation

i have web application angularjs.

currently, i'm building android application , use webview main view of one.

this android application sends http request every time when users click menu on native side.

sadly, webview loading slow since entire resource web application, although 1 of great benefits of single-page-application url routing function without refreshing page entirely understand correctly. below code webview loading. nothing changed set setcachemode(websettings.load_default) though.

webviewfragment.java public void onactivitycreated(bundle savedinstancestate) {     super.onactivitycreated(savedinstancestate);     string url = getarguments().getstring("url");     websettings settings = webview.getsettings();     settings.setjavascriptenabled(true);     settings.setdomstorageenabled(true);     settings.setallowfileaccess(true);     settings.setcachemode(websettings.load_default);     webview.loadurl(url);     webview.setwebviewclient(new webviewclient() {         // handle url-scheme     }         webview.setwebchromeclient(new webchromeclient() {         // handle reaction ui component     } } 


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -