<?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: Even better image preloading with CSS2</title>
	<atom:link href="http://www.thecssninja.com/css/even-better-image-preloading-with-css2/feed" rel="self" type="application/rss+xml" />
	<link>http://www.thecssninja.com/css/even-better-image-preloading-with-css2</link>
	<description>All things CSS, JavaScript &#38; HTML</description>
	<lastBuildDate>Sat, 21 Jan 2012 04:46:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
	<item>
		<title>By: Bas</title>
		<link>http://www.thecssninja.com/css/even-better-image-preloading-with-css2/comment-page-1#comment-2726</link>
		<dc:creator>Bas</dc:creator>
		<pubDate>Sat, 08 Oct 2011 15:44:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecssninja.com/?p=566#comment-2726</guid>
		<description>Thanks this is also very useful for websites with changing background images.</description>
		<content:encoded><![CDATA[<p>Thanks this is also very useful for websites with changing background images.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Donny</title>
		<link>http://www.thecssninja.com/css/even-better-image-preloading-with-css2/comment-page-1#comment-2539</link>
		<dc:creator>Donny</dc:creator>
		<pubDate>Wed, 04 May 2011 23:01:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecssninja.com/?p=566#comment-2539</guid>
		<description>Using this on my portfolio site (crediting CSS Ninja in the CSS file, of course) and it&#039;s great. Only bit of oddness is that when I nav away from the home page, then back again, the &quot;Loading&quot; image/text reappear briefly.</description>
		<content:encoded><![CDATA[<p>Using this on my portfolio site (crediting CSS Ninja in the CSS file, of course) and it&#8217;s great. Only bit of oddness is that when I nav away from the home page, then back again, the &#8220;Loading&#8221; image/text reappear briefly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zenta</title>
		<link>http://www.thecssninja.com/css/even-better-image-preloading-with-css2/comment-page-1#comment-2518</link>
		<dc:creator>Zenta</dc:creator>
		<pubDate>Wed, 20 Apr 2011 23:12:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecssninja.com/?p=566#comment-2518</guid>
		<description>Works like a charm. Elegant solution. Thank you for posting this.</description>
		<content:encoded><![CDATA[<p>Works like a charm. Elegant solution. Thank you for posting this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DrCord</title>
		<link>http://www.thecssninja.com/css/even-better-image-preloading-with-css2/comment-page-1#comment-2413</link>
		<dc:creator>DrCord</dc:creator>
		<pubDate>Wed, 23 Feb 2011 17:22:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecssninja.com/?p=566#comment-2413</guid>
		<description>Great preloader! Easy to implement and works like a charm...thanks!</description>
		<content:encoded><![CDATA[<p>Great preloader! Easy to implement and works like a charm&#8230;thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rebecca</title>
		<link>http://www.thecssninja.com/css/even-better-image-preloading-with-css2/comment-page-1#comment-2405</link>
		<dc:creator>rebecca</dc:creator>
		<pubDate>Thu, 17 Feb 2011 19:57:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecssninja.com/?p=566#comment-2405</guid>
		<description>Thank you so much for this. I do a lot of sites for artists so large images.  This technique has really made a difference to how they look. Very much appreciated.</description>
		<content:encoded><![CDATA[<p>Thank you so much for this. I do a lot of sites for artists so large images.  This technique has really made a difference to how they look. Very much appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CSS İpucu 29: CSS ile Önden Resim Yükleme Teknikleri &#124; M.Selman Ay</title>
		<link>http://www.thecssninja.com/css/even-better-image-preloading-with-css2/comment-page-1#comment-2392</link>
		<dc:creator>CSS İpucu 29: CSS ile Önden Resim Yükleme Teknikleri &#124; M.Selman Ay</dc:creator>
		<pubDate>Sat, 05 Feb 2011 05:02:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecssninja.com/?p=566#comment-2392</guid>
		<description>[...] http://www.thecssninja.com/css/even-better-image-preloading-with-css2 [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://www.thecssninja.com/css/even-better-image-preloading-with-css2" rel="nofollow">http://www.thecssninja.com/css/even-better-image-preloading-with-css2</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Css Ninja</title>
		<link>http://www.thecssninja.com/css/even-better-image-preloading-with-css2/comment-page-1#comment-2357</link>
		<dc:creator>The Css Ninja</dc:creator>
		<pubDate>Thu, 13 Jan 2011 01:58:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecssninja.com/?p=566#comment-2357</guid>
		<description>@kn33ch41 - I&#039;m getting the same behaviour now too. Thanks for the through follow up.</description>
		<content:encoded><![CDATA[<p>@kn33ch41 &#8211; I&#8217;m getting the same behaviour now too. Thanks for the through follow up.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kn33ch41</title>
		<link>http://www.thecssninja.com/css/even-better-image-preloading-with-css2/comment-page-1#comment-2345</link>
		<dc:creator>kn33ch41</dc:creator>
		<pubDate>Fri, 07 Jan 2011 00:46:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecssninja.com/?p=566#comment-2345</guid>
		<description>@TheCSSNinja

After an hour of troubleshooting I discovered a quirk in Webkit regarding this difference in our results. The below solution works in both Chrome 10 and Safari 5.0.3. 

On Firefox and Opera if you define a background image on an element and set &quot;display:none&quot; to that very element, the image will not download. However, if you do this with Webkit, the image will still download. In order to prevent the image from being downloaded in Webkit, Webkit requires that one of the *parent* elements of the element with the background image be set to &quot;display:none.&quot; 

I hadn&#039;t realized that this was occurring on my site by default, because I was never explicitly setting &quot;display:none&quot; on those decorative image elements, but always on one of their parent elements. 

It would appear, then, that the best way to preserve the most reliable, cross-browser behavior would be to set &quot;display:none&quot; on one of the parent elements of any given element with a defined background image. I&#039;d be curious to see if you can duplicate these results; I&#039;m confident you&#039;ll be able to. It&#039;s a handy tidbit of knowledge to have actually framed and defined, instead of being unaware of this subtle difference between browsers. 

Extra: 

IE is the only browser that does not suppress the download request, given the described usage.</description>
		<content:encoded><![CDATA[<p>@TheCSSNinja</p>
<p>After an hour of troubleshooting I discovered a quirk in Webkit regarding this difference in our results. The below solution works in both Chrome 10 and Safari 5.0.3. </p>
<p>On Firefox and Opera if you define a background image on an element and set &#8220;display:none&#8221; to that very element, the image will not download. However, if you do this with Webkit, the image will still download. In order to prevent the image from being downloaded in Webkit, Webkit requires that one of the *parent* elements of the element with the background image be set to &#8220;display:none.&#8221; </p>
<p>I hadn&#8217;t realized that this was occurring on my site by default, because I was never explicitly setting &#8220;display:none&#8221; on those decorative image elements, but always on one of their parent elements. </p>
<p>It would appear, then, that the best way to preserve the most reliable, cross-browser behavior would be to set &#8220;display:none&#8221; on one of the parent elements of any given element with a defined background image. I&#8217;d be curious to see if you can duplicate these results; I&#8217;m confident you&#8217;ll be able to. It&#8217;s a handy tidbit of knowledge to have actually framed and defined, instead of being unaware of this subtle difference between browsers. </p>
<p>Extra: </p>
<p>IE is the only browser that does not suppress the download request, given the described usage.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Css Ninja</title>
		<link>http://www.thecssninja.com/css/even-better-image-preloading-with-css2/comment-page-1#comment-2344</link>
		<dc:creator>The Css Ninja</dc:creator>
		<pubDate>Thu, 06 Jan 2011 04:02:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecssninja.com/?p=566#comment-2344</guid>
		<description>@kn33ch41 - I&#039;m still getting background images downloading even when the element is hidden in Safari and Chrome. Are you using media queries to detect viewport size?</description>
		<content:encoded><![CDATA[<p>@kn33ch41 &#8211; I&#8217;m still getting background images downloading even when the element is hidden in Safari and Chrome. Are you using media queries to detect viewport size?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kn33ch41</title>
		<link>http://www.thecssninja.com/css/even-better-image-preloading-with-css2/comment-page-1#comment-2342</link>
		<dc:creator>kn33ch41</dc:creator>
		<pubDate>Wed, 05 Jan 2011 06:55:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.thecssninja.com/?p=566#comment-2342</guid>
		<description>@TheCSSNinja

My results with Safari 5.0.3 and Chrome 10.0 don&#039;t follow with yours regarding the download of background images and the display property set to none. 

For several months I&#039;ve defined certain decorative images (user profile pictures) on a site as background images instead of using the HTML img tag. I do this because when the viewport is small and assumed to be a mobile device they are set to &quot;display: none&quot; to avoid the download and request overhead. It works as intended in all browsers. The reason I delegated certain images to CSS to be rendered as background images is because setting &quot;display: none&quot; on HTML img tags does not prevent the resource from being downloaded.</description>
		<content:encoded><![CDATA[<p>@TheCSSNinja</p>
<p>My results with Safari 5.0.3 and Chrome 10.0 don&#8217;t follow with yours regarding the download of background images and the display property set to none. </p>
<p>For several months I&#8217;ve defined certain decorative images (user profile pictures) on a site as background images instead of using the HTML img tag. I do this because when the viewport is small and assumed to be a mobile device they are set to &#8220;display: none&#8221; to avoid the download and request overhead. It works as intended in all browsers. The reason I delegated certain images to CSS to be rendered as background images is because setting &#8220;display: none&#8221; on HTML img tags does not prevent the resource from being downloaded.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

