Android webview Loads Web Pages Too Slow

  android, question

I checked some information on the internet and said that it is ok to add these codes to js. loadcomplete () what code is to be written here
<script src=”/css/j/lazyload-min.js” type=”text/javascript”></script>

<script type="text/javascript" charset="utf-8">
 
 loadComplete(){
 
 //instead of document.read()
 
 bracket
 
 function loadscript()
 
 bracket

LazyLoad.loadOnce([

‘/css/j/jquery-1.6.2.min.js’,

‘/css/j/flow/jquery.flow.1.1.min.js’,

‘/css/j/min.js? v=2011100852’

], loadComplete);

bracket
 
 setTimeout(loadscript,10);
 
 </script>
 His original address is http://www.cnblogs.com/xinye/p/3144139.html

Lazyload is just a helpless thing. The key is to reduce the page size, and to rely on the resource file size, optimize the code (merge, compression) appropriately, and use the cache reasonably (Nginx reverse proxy cache, HTTP header control cache, app cache local cache)