To maximize efficiency for mobile devices, I would rather not have images that are used for the desktop version. Through research, I have learned that simply using display:none;
css or jQuery('img').hide()
will only hide the image, but still use the resources to load it.
How can I take this:
<div class="com_router_img">
<img src="http://www.example.com/wp-content/uploads/2013/05/img.jpg"
alt="img" width="700" height="350" class="aligncenter size-full wp-image-307" />
</div>
And NOT display it on my mobile stylesheet? Here is mobile stylesheet query:
<link rel="stylesheet" media='screen and
(-webkit-min-device-pixel-ratio: 1.4) and (-webkit-max-device-pixel-ratio: 1.5)'
href="<?php bloginfo('template_url'); ?>/smallphone.css" />
svg
to handle responsive images. Have a read through this article and try out their approach. – Cohosh