Is there any way to tell a UIWebView not to load images and CSS for faster rendering?
views:
381answers:
2
A:
Use media queries. The first one says "if it is not an iphone, use the normal style sheet", the second says "if it is an iphone, implement style rule: don't 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;
}
}
Anthony
2010-01-14 22:28:01
I don't have access to the server side. So I need to tell the UIWebView not to load the images. Is that possible?
dan
2010-01-18 19:38:18