iPhone UIWebView slow loading to local HTML files

前端 未结 7 1467
无人及你
无人及你 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:17

    I've found certain kinds of CSS can grind WebView rendering to a halt. For example:

    body { -webkit-box-shadow:inset 0 0 100px #222; }
    

    This works great in the simulator, looks nice too. But on the phone (even the iPhone 4, iOS 4.2), a simple page will take 10sec to render.

提交回复
热议问题