IPhone SDK: Tell UIWebView not to load images and CSS is just HTML and JS?

Is there a way to tell the UIWebView not to load images and CSS for faster rendering?

Solution: Filtering URLs for UIWebView on iPhone

0


source to share


1 answer


Use multimedia queries. The first says, "If it's not an iphone, use a regular stylesheet", the second says, "If it's an iphone, implement the style rule: do not display images":



<link type="text/css" rel="stylesheet" media="not (max-device-width: 480px)" href="normalstyle.css">

<style type="text/css">
@media (max-device-width: 480px) {
     img {
       display: none;
     }
}

      

0


source







All Articles