iPhone UIWebView slow loading to local HTML files

前端 未结 7 1466
无人及你
无人及你 2021-02-01 03:47

I\'m developing an app that requires caching web pages (completely) along with their CSS files and images after saving the entire HTML of the page (going through the links to st

7条回答
  •  不思量自难忘°
    2021-02-01 04:36

    I'm almost sure you will never be able to do this. The UIWebView just needs some time to process your webpage even when it's a local page.

    Keeping that in mind you can try to preload the page before it's being shown. For example if you show it after a user presses a button, preload the page when you show the button instead of when the user actually presses the button. The user doesn't notice the slow loading, because it's being handled in the background so when the user presses the button the page is already been loaded.

提交回复
热议问题