<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: CSS Image Replacement for iPhone 4 High-DPI Retina Display</title>
	<atom:link href="http://flowz.com/2010/07/css-image-replacement-for-iphone-4-high-dpi-retina-display/feed/" rel="self" type="application/rss+xml" />
	<link>http://flowz.com/2010/07/css-image-replacement-for-iphone-4-high-dpi-retina-display/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=css-image-replacement-for-iphone-4-high-dpi-retina-display</link>
	<description>Our brain goo cup overfloweth</description>
	<lastBuildDate>Mon, 30 Jan 2012 22:27:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
	<item>
		<title>By: Mike Wille</title>
		<link>http://flowz.com/2010/07/css-image-replacement-for-iphone-4-high-dpi-retina-display/comment-page-1/#comment-11953</link>
		<dc:creator>Mike Wille</dc:creator>
		<pubDate>Mon, 09 Jan 2012 22:02:13 +0000</pubDate>
		<guid isPermaLink="false">http://flowz.com/?p=920#comment-11953</guid>
		<description>@amy:

The function, highdpi_init(), is being called no matter what.  However, the code that actually does the image replacement is only executed if the retina.css file is loaded.  This line here:

   if(jQuery(&#039;.replace-2x&#039;).css(&#039;font-size&#039;) == &quot;1px&quot;) {

Will only evaluate to true if retina.css was included.

HTH.</description>
		<content:encoded><![CDATA[<p>@amy:</p>
<p>The function, highdpi_init(), is being called no matter what.  However, the code that actually does the image replacement is only executed if the retina.css file is loaded.  This line here:</p>
<p>   if(jQuery(&#8216;.replace-2x&#8217;).css(&#8216;font-size&#8217;) == &#8220;1px&#8221;) {</p>
<p>Will only evaluate to true if retina.css was included.</p>
<p>HTH.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amy Stoddard</title>
		<link>http://flowz.com/2010/07/css-image-replacement-for-iphone-4-high-dpi-retina-display/comment-page-1/#comment-11952</link>
		<dc:creator>Amy Stoddard</dc:creator>
		<pubDate>Mon, 09 Jan 2012 21:59:27 +0000</pubDate>
		<guid isPermaLink="false">http://flowz.com/?p=920#comment-11952</guid>
		<description>I found the answer to my own question.  Detect whether its a retina display with Javascript.  http://briancray.com/2011/05/05/detect-retina-displays-with-javascript/</description>
		<content:encoded><![CDATA[<p>I found the answer to my own question.  Detect whether its a retina display with Javascript.  <a href="http://briancray.com/2011/05/05/detect-retina-displays-with-javascript/" rel="nofollow">http://briancray.com/2011/05/05/detect-retina-displays-with-javascript/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amy Stoddard</title>
		<link>http://flowz.com/2010/07/css-image-replacement-for-iphone-4-high-dpi-retina-display/comment-page-1/#comment-11951</link>
		<dc:creator>Amy Stoddard</dc:creator>
		<pubDate>Mon, 09 Jan 2012 21:56:17 +0000</pubDate>
		<guid isPermaLink="false">http://flowz.com/?p=920#comment-11951</guid>
		<description>What I don&#039;t understand is that the JavaScript to replace the images is being called regardless of whether &quot;retina.css&quot; is loaded.  What can I add to the jQuery function call to see if the retina.css even go loaded?</description>
		<content:encoded><![CDATA[<p>What I don&#8217;t understand is that the JavaScript to replace the images is being called regardless of whether &#8220;retina.css&#8221; is loaded.  What can I add to the jQuery function call to see if the retina.css even go loaded?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maciej Swic</title>
		<link>http://flowz.com/2010/07/css-image-replacement-for-iphone-4-high-dpi-retina-display/comment-page-1/#comment-11887</link>
		<dc:creator>Maciej Swic</dc:creator>
		<pubDate>Thu, 05 Jan 2012 00:26:08 +0000</pubDate>
		<guid isPermaLink="false">http://flowz.com/?p=920#comment-11887</guid>
		<description>Not working on http://staging.appulize.com any ideas please?

Thanks
Maciej</description>
		<content:encoded><![CDATA[<p>Not working on <a href="http://staging.appulize.com" rel="nofollow">http://staging.appulize.com</a> any ideas please?</p>
<p>Thanks<br />
Maciej</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Construir para Retina Display &#x21A9; CSSLab</title>
		<link>http://flowz.com/2010/07/css-image-replacement-for-iphone-4-high-dpi-retina-display/comment-page-1/#comment-11597</link>
		<dc:creator>Construir para Retina Display &#x21A9; CSSLab</dc:creator>
		<pubDate>Thu, 15 Dec 2011 18:45:14 +0000</pubDate>
		<guid isPermaLink="false">http://flowz.com/?p=920#comment-11597</guid>
		<description>[...] CSS Image Replacement for iPhone 4 High-DPI Retina Display [...]</description>
		<content:encoded><![CDATA[<p>[...] CSS Image Replacement for iPhone 4 High-DPI Retina Display [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Wille</title>
		<link>http://flowz.com/2010/07/css-image-replacement-for-iphone-4-high-dpi-retina-display/comment-page-1/#comment-11325</link>
		<dc:creator>Mike Wille</dc:creator>
		<pubDate>Tue, 29 Nov 2011 01:31:51 +0000</pubDate>
		<guid isPermaLink="false">http://flowz.com/?p=920#comment-11325</guid>
		<description>Chris,

This method is a trade off between performance and maintainability/ease-of-use.  You certainly could create a site that only makes one request to the server for each image.  The way to do that would be to serve up the HTML with src&#039;s pointing to @2x files the first time around.  However, that would require either your server-side application to support that, specifically, or you to maintain two separate source files.</description>
		<content:encoded><![CDATA[<p>Chris,</p>
<p>This method is a trade off between performance and maintainability/ease-of-use.  You certainly could create a site that only makes one request to the server for each image.  The way to do that would be to serve up the HTML with src&#8217;s pointing to @2x files the first time around.  However, that would require either your server-side application to support that, specifically, or you to maintain two separate source files.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Niki</title>
		<link>http://flowz.com/2010/07/css-image-replacement-for-iphone-4-high-dpi-retina-display/comment-page-1/#comment-11321</link>
		<dc:creator>Niki</dc:creator>
		<pubDate>Mon, 28 Nov 2011 23:33:19 +0000</pubDate>
		<guid isPermaLink="false">http://flowz.com/?p=920#comment-11321</guid>
		<description>thanks so much for this. I am using jqtouch and was struggling BIG TIME with the fact that their icons were super pixelated. I have looked on countless sites before I came across yours. Your fix it brilliant!
Thanks again!</description>
		<content:encoded><![CDATA[<p>thanks so much for this. I am using jqtouch and was struggling BIG TIME with the fact that their icons were super pixelated. I have looked on countless sites before I came across yours. Your fix it brilliant!<br />
Thanks again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Webdesigners/code: Stuck in the middle?The One Who Knocks - The One Who Knocks</title>
		<link>http://flowz.com/2010/07/css-image-replacement-for-iphone-4-high-dpi-retina-display/comment-page-1/#comment-11320</link>
		<dc:creator>Webdesigners/code: Stuck in the middle?The One Who Knocks - The One Who Knocks</dc:creator>
		<pubDate>Mon, 28 Nov 2011 21:47:07 +0000</pubDate>
		<guid isPermaLink="false">http://flowz.com/?p=920#comment-11320</guid>
		<description>[...] the rendering problem with Webkit vs Gecko browsers into a project? or @font-face on iPhone? The Retina issue with graphics elements? Or, simply, the fallbacks for old [...]</description>
		<content:encoded><![CDATA[<p>[...] the rendering problem with Webkit vs Gecko browsers into a project? or @font-face on iPhone? The Retina issue with graphics elements? Or, simply, the fallbacks for old [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://flowz.com/2010/07/css-image-replacement-for-iphone-4-high-dpi-retina-display/comment-page-1/#comment-11176</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Fri, 18 Nov 2011 00:09:26 +0000</pubDate>
		<guid isPermaLink="false">http://flowz.com/?p=920#comment-11176</guid>
		<description>I&#039;m currently implementing this method, but noticed that it causes the browser to make 2 requests for each image. First, it requests the normal image, and then if the JS recognizes we&#039;re on a high-res device, it changes the img src, and a second request happens--the request for the @2x image.

You can use the net tab in Firebug to see this happening. Is there a recommended way to avoid this? I imagine that loading twice as many images will have a significant effect on a mobile site&#039;s performance.</description>
		<content:encoded><![CDATA[<p>I&#8217;m currently implementing this method, but noticed that it causes the browser to make 2 requests for each image. First, it requests the normal image, and then if the JS recognizes we&#8217;re on a high-res device, it changes the img src, and a second request happens&#8211;the request for the @2x image.</p>
<p>You can use the net tab in Firebug to see this happening. Is there a recommended way to avoid this? I imagine that loading twice as many images will have a significant effect on a mobile site&#8217;s performance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Samuel Menezes</title>
		<link>http://flowz.com/2010/07/css-image-replacement-for-iphone-4-high-dpi-retina-display/comment-page-1/#comment-11021</link>
		<dc:creator>Samuel Menezes</dc:creator>
		<pubDate>Sun, 23 Oct 2011 13:49:04 +0000</pubDate>
		<guid isPermaLink="false">http://flowz.com/?p=920#comment-11021</guid>
		<description>Really useful, Mike!
Thanks a lot :)</description>
		<content:encoded><![CDATA[<p>Really useful, Mike!<br />
Thanks a lot <img src='http://flowz.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

