Stop Images from loading in UIWebView

前端 未结 4 1984
借酒劲吻你
借酒劲吻你 2020-12-19 21:37

I have a website that I wish to load in a UIWebView, but it is full of images and takes ages to load. The images are useless, and only serve to reduce the usability on the i

4条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-19 22:20

    I have 3 thoughts.

    1. Use a proxy to filter the HTML
    2. Filter the HTML yourself by downloading it first
    3. Just download the html and load it using a file:// URL. This will most likely prevent the image references from being resolved - though it will leave ugly squares everywhere

提交回复
热议问题