<?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: Using Load Icons</title>
	<atom:link href="http://www.lateralcode.com/using-load-icons/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lateralcode.com/using-load-icons/</link>
	<description>A Web Development Blog Focused on Code and Technology</description>
	<lastBuildDate>Thu, 07 Jul 2011 20:22:31 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
	<item>
		<title>By: Reave</title>
		<link>http://www.lateralcode.com/using-load-icons/#comment-1021</link>
		<dc:creator>Reave</dc:creator>
		<pubDate>Fri, 12 Mar 2010 21:25:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.lateralcode.com/?p=808#comment-1021</guid>
		<description>Hey Karthik Viswanathan, can you combine that java code with the firefox fix. I dont know how to add to the code. Thanks</description>
		<content:encoded><![CDATA[<p>Hey Karthik Viswanathan, can you combine that java code with the firefox fix. I dont know how to add to the code. Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: b2b</title>
		<link>http://www.lateralcode.com/using-load-icons/#comment-578</link>
		<dc:creator>b2b</dc:creator>
		<pubDate>Wed, 24 Jun 2009 14:46:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.lateralcode.com/?p=808#comment-578</guid>
		<description>great tip, will use it</description>
		<content:encoded><![CDATA[<p>great tip, will use it</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karthik Viswanathan</title>
		<link>http://www.lateralcode.com/using-load-icons/#comment-488</link>
		<dc:creator>Karthik Viswanathan</dc:creator>
		<pubDate>Wed, 15 Apr 2009 18:30:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.lateralcode.com/?p=808#comment-488</guid>
		<description>@JohnDBB: I have experienced this same problem when the user refreshes the page multiple times in a short interval. To remedy the situation, I suggest adding this function:
&lt;pre&gt;function loadAnyway() {
	document.getElementById(&#039;loader&#039;).style.display = &#039;none&#039;;
	document.getElementById(&#039;large-img&#039;).style.display = &#039;block&#039;;
}&lt;/pre&gt;

Conversely, if you are using jQuery, you may use this:
&lt;pre&gt;function loadAnyway() {
	$(&#039;#loader&#039;).hide();
	$(&#039;#large-img&#039;).show()&#039;;
}&lt;/pre&gt;

Now, using the timeout of your choice, place this line of code in your JavaScript:
&lt;pre&gt;setTimeout( &quot;loadAnyway()&quot;, timeout );&lt;/pre&gt;

Timeout must be an integer that represents the time (in milliseconds) to wait before forcibly removing the load icon and trying to display the actual image.

If you are still having trouble, feel free to leave another comment.</description>
		<content:encoded><![CDATA[<p>@JohnDBB: I have experienced this same problem when the user refreshes the page multiple times in a short interval. To remedy the situation, I suggest adding this function:</p>
<pre>function loadAnyway() {
	document.getElementById('loader').style.display = 'none';
	document.getElementById('large-img').style.display = 'block';
}</pre>
<p>Conversely, if you are using jQuery, you may use this:</p>
<pre>function loadAnyway() {
	$('#loader').hide();
	$('#large-img').show()';
}</pre>
<p>Now, using the timeout of your choice, place this line of code in your JavaScript:</p>
<pre>setTimeout( "loadAnyway()", timeout );</pre>
<p>Timeout must be an integer that represents the time (in milliseconds) to wait before forcibly removing the load icon and trying to display the actual image.</p>
<p>If you are still having trouble, feel free to leave another comment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JohnDBB</title>
		<link>http://www.lateralcode.com/using-load-icons/#comment-487</link>
		<dc:creator>JohnDBB</dc:creator>
		<pubDate>Wed, 15 Apr 2009 06:38:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.lateralcode.com/?p=808#comment-487</guid>
		<description>I have tried it on a site but sometimes (seems randomly) with Firefox it doesn&#039;t work as the loading icon stays forever and the image doesn&#039;t appear. Any ideas?</description>
		<content:encoded><![CDATA[<p>I have tried it on a site but sometimes (seems randomly) with Firefox it doesn&#8217;t work as the loading icon stays forever and the image doesn&#8217;t appear. Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Perfectflow</title>
		<link>http://www.lateralcode.com/using-load-icons/#comment-484</link>
		<dc:creator>Perfectflow</dc:creator>
		<pubDate>Tue, 14 Apr 2009 08:05:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.lateralcode.com/?p=808#comment-484</guid>
		<description>OMG this is nice and useful jQuery trick. How did I didn&#039;t think of this before. Thank you.</description>
		<content:encoded><![CDATA[<p>OMG this is nice and useful jQuery trick. How did I didn&#8217;t think of this before. Thank you.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

