N
N
Nikolai2021-09-26 20:20:26
Android
Nikolai, 2021-09-26 20:20:26

How to pre-set cache data in webview?

There is an application on webview. The application has an offline html page, the files of which are stored directly in the apk.
To speed up the application, I want to wrap all css, js and images used on the site in apk to speed up page loading. Will it work? And does it make sense if the application will be used in conditions of poor Internet quality?
To catch up: does it make sense to pack all the css, js and images used in apk, and request data not from mysite.com, but from custom.mysite.com in a simple text form (html) and output taking into account the built-in css, js and images ? It seems to me that this should reduce the load on the server and on the user's network.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AlexVWill, 2021-09-26
@AlexVWill

It seems to me that this should reduce the load on the server and on the user's network.

theoretically yes, but practically - taking into account modern Internet speeds, this is an extra gimor, and when you change the site, you will need to repack everything into a new ARP (ARC is no longer accepted for publication), and this is fraught with glitches if there is one thing in the program cache, and another on the site . It is expedient to get confused by this only if the site is VERY heavy, but writing such sites for mobile devices is another top perversion. Think about it, do you need it?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question