Reputation: 502
I have many (5-10) WebViews that are shown simultaneously (e.g. as a "carousel" similar to stock Gallery). Remote web sites are loaded into these WebViews (not local html files). The web sites are quite complex - they have lots of javascript, images, may have some flash...
When app starts, all WebViews start loading/layouting their content and running javascript - all this takes quite some time. On the other hand, app is very responsive when the WebViews are loading - scrolling and other UI stuff is really smooth - CPU is definitely not under pressure.
Upvotes: 2
Views: 1223
Reputation: 502
Answering my own question:
Instead, I used WebChromeClient#shouldInterceptRequest to cache as much resources as possible, which improved loading times quite a bit.
Upvotes: 0