Initial Webview load very slow, can we pre-cache?
See original GitHub issueIs your feature request related to a problem? If so, Please describe.
Recently, on 10.9.0
, I’ve noticed that our Webview loads very slowly (on the order of ~8 seconds, when hitting a localhost address from my iOS simulator). This didn’t seem to be a problem in the past, and neither the content we are loading nor our Webview component usage have changed. Is it possible there has been a regression? I have noticed that subsequent loads seem to be much faster (~1-2 seconds), which makes me think that the caching behavior is very helpful for performance.
Describe the solutions you came up with
I was wondering if you had any other solutions off the top of your head that might help performance. Alternatively, would it be possible to pre-cache/pre-load the page content before the Webview is rendered, so on initial render it could render from a cache and our users wouldn’t have to wait 10 seconds for load? I would like to avoid doing something like rendering an invisible Webview on app load and displaying it when needed.
Additional context
Please let me know if there’s any other information that might be helpful. Thanks!
Issue Analytics
- State:
- Created 3 years ago
- Reactions:31
- Comments:39
Top GitHub Comments
This works for me.
Agreed