Stop Images from loading in UIWebView

Posted by Zac Altman on Stack Overflow See other posts from Stack Overflow or by Zac Altman
Published on 2010-04-08T09:40:28Z Indexed on 2010/04/08 9:43 UTC
Read the original article Hit count: 323

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 iPhone. I dont own the website so I cannot change the site's actual code.

The webpage is heavily linked in to the web with ASP.NET and AJAX (needs external files), so i dont think it is possible to have it load an HTML string.

I want to stop the images from loading altogether. So how do i block them? Change the HTML code as its loading somehow, or block images from being loaded?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about JavaScript