<?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: jQuery Image Preload Plugin	</title>
	<atom:link href="https://www.farinspace.com/jquery-image-preload-plugin/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.farinspace.com/jquery-image-preload-plugin/</link>
	<description>Practical Real World Web Development</description>
	<lastBuildDate>Wed, 30 Sep 2015 19:45:27 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.2</generator>
	<item>
		<title>
		By: Dimas		</title>
		<link>https://www.farinspace.com/jquery-image-preload-plugin/#comment-37529</link>

		<dc:creator><![CDATA[Dimas]]></dc:creator>
		<pubDate>Tue, 13 May 2014 16:27:29 +0000</pubDate>
		<guid isPermaLink="false">http://farinspace.com/?p=50#comment-37529</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.farinspace.com/jquery-image-preload-plugin/#comment-37521&quot;&gt;Nan&lt;/a&gt;.

https://github.com/farinspace/jquery.imgpreload]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.farinspace.com/jquery-image-preload-plugin/#comment-37521">Nan</a>.</p>
<p><a href="https://github.com/farinspace/jquery.imgpreload" rel="nofollow ugc">https://github.com/farinspace/jquery.imgpreload</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Nan		</title>
		<link>https://www.farinspace.com/jquery-image-preload-plugin/#comment-37521</link>

		<dc:creator><![CDATA[Nan]]></dc:creator>
		<pubDate>Wed, 30 Apr 2014 02:51:02 +0000</pubDate>
		<guid isPermaLink="false">http://farinspace.com/?p=50#comment-37521</guid>

					<description><![CDATA[I cannot download the image preload plugin..where do I go?]]></description>
			<content:encoded><![CDATA[<p>I cannot download the image preload plugin..where do I go?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Nate		</title>
		<link>https://www.farinspace.com/jquery-image-preload-plugin/#comment-37498</link>

		<dc:creator><![CDATA[Nate]]></dc:creator>
		<pubDate>Fri, 21 Feb 2014 20:49:37 +0000</pubDate>
		<guid isPermaLink="false">http://farinspace.com/?p=50#comment-37498</guid>

					<description><![CDATA[Is there a way to pull the percentage progress from this method? Works great for small files, but I&#039;m concerned about larger files and people not realizing what&#039;s happening.]]></description>
			<content:encoded><![CDATA[<p>Is there a way to pull the percentage progress from this method? Works great for small files, but I&#8217;m concerned about larger files and people not realizing what&#8217;s happening.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Danny		</title>
		<link>https://www.farinspace.com/jquery-image-preload-plugin/#comment-37078</link>

		<dc:creator><![CDATA[Danny]]></dc:creator>
		<pubDate>Thu, 14 Nov 2013 14:17:04 +0000</pubDate>
		<guid isPermaLink="false">http://farinspace.com/?p=50#comment-37078</guid>

					<description><![CDATA[It seems the array of loaded images has a different order than the one of filenames you issue to the plugin (I guess the order is based on loaded status). It would be nice to have this to be the same order or have some method to fetch an image from the array of loaded images by an id or filename. Currently i&#039;m doing something this:

var _imageCache;

$.imgpreload([&#039;images/test1.jpg&#039;, &#039;images/test2.jpg&#039;], function() {
    _imageCache = this;
    _onImagesLoaded();
});

var _getImage = function(src) {
		
    for(var i = 0, len = _imageCache.length; i&#060;len; i++){ 
        if(_getImageFilename(_imageCache[i].src) == _getImageFilename(src)) return _imageCache[i];
    }
}

var _getImageFilename = function(src) {
		
    return src.substring(src.lastIndexOf(&#039;/&#039;) + 1);
}

var _onImagesLoaded = function() {
    var image = _getImage(&#039;images/test.jpg&#039;);
}

This only works in my case, where there are no duplicate filenames. It&#039;s a workaround for the fact src returns a full path instead of the given url in the array.]]></description>
			<content:encoded><![CDATA[<p>It seems the array of loaded images has a different order than the one of filenames you issue to the plugin (I guess the order is based on loaded status). It would be nice to have this to be the same order or have some method to fetch an image from the array of loaded images by an id or filename. Currently i&#8217;m doing something this:</p>
<p>var _imageCache;</p>
<p>$.imgpreload([&#8216;images/test1.jpg&#8217;, &#8216;images/test2.jpg&#8217;], function() {<br />
    _imageCache = this;<br />
    _onImagesLoaded();<br />
});</p>
<p>var _getImage = function(src) {</p>
<p>    for(var i = 0, len = _imageCache.length; i&lt;len; i++){<br />
        if(_getImageFilename(_imageCache[i].src) == _getImageFilename(src)) return _imageCache[i];<br />
    }<br />
}</p>
<p>var _getImageFilename = function(src) {</p>
<p>    return src.substring(src.lastIndexOf(&#039;/&#039;) + 1);<br />
}</p>
<p>var _onImagesLoaded = function() {<br />
    var image = _getImage(&#039;images/test.jpg&#039;);<br />
}</p>
<p>This only works in my case, where there are no duplicate filenames. It&#039;s a workaround for the fact src returns a full path instead of the given url in the array.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: druellan		</title>
		<link>https://www.farinspace.com/jquery-image-preload-plugin/#comment-33988</link>

		<dc:creator><![CDATA[druellan]]></dc:creator>
		<pubDate>Thu, 29 Aug 2013 17:35:54 +0000</pubDate>
		<guid isPermaLink="false">http://farinspace.com/?p=50#comment-33988</guid>

					<description><![CDATA[Great plugin, a must-have in my collection.
If you&#039;re having random 404 errors popping up on the console, about an image file named &quot;undefined&quot;, thats due to an  tag that has &quot;src&quot; missing.
To avoid the error, add a new line right below &#039;url = $(elem).attr(&#039;src&#039;);&#039; like this: if ( &#039;undefined&#039; == typeof url ) url = &quot;&quot;;
That will prevent imgpreload to try load an incorrect filename.]]></description>
			<content:encoded><![CDATA[<p>Great plugin, a must-have in my collection.<br />
If you&#8217;re having random 404 errors popping up on the console, about an image file named &#8220;undefined&#8221;, thats due to an  tag that has &#8220;src&#8221; missing.<br />
To avoid the error, add a new line right below &#8216;url = $(elem).attr(&#8216;src&#8217;);&#8217; like this: if ( &#8216;undefined&#8217; == typeof url ) url = &#8220;&#8221;;<br />
That will prevent imgpreload to try load an incorrect filename.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: nicothezulu		</title>
		<link>https://www.farinspace.com/jquery-image-preload-plugin/#comment-27559</link>

		<dc:creator><![CDATA[nicothezulu]]></dc:creator>
		<pubDate>Wed, 20 Feb 2013 02:15:54 +0000</pubDate>
		<guid isPermaLink="false">http://farinspace.com/?p=50#comment-27559</guid>

					<description><![CDATA[THX.. This is working well.]]></description>
			<content:encoded><![CDATA[<p>THX.. This is working well.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jordan		</title>
		<link>https://www.farinspace.com/jquery-image-preload-plugin/#comment-26088</link>

		<dc:creator><![CDATA[Jordan]]></dc:creator>
		<pubDate>Wed, 05 Dec 2012 01:58:48 +0000</pubDate>
		<guid isPermaLink="false">http://farinspace.com/?p=50#comment-26088</guid>

					<description><![CDATA[Also, why does the page &#039;redirect&#039; me to a blank page with successful loaded images (still being in the same URL)?

Thanks again!]]></description>
			<content:encoded><![CDATA[<p>Also, why does the page &#8216;redirect&#8217; me to a blank page with successful loaded images (still being in the same URL)?</p>
<p>Thanks again!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Jordan		</title>
		<link>https://www.farinspace.com/jquery-image-preload-plugin/#comment-26087</link>

		<dc:creator><![CDATA[Jordan]]></dc:creator>
		<pubDate>Wed, 05 Dec 2012 01:20:18 +0000</pubDate>
		<guid isPermaLink="false">http://farinspace.com/?p=50#comment-26087</guid>

					<description><![CDATA[Great job! 

One thing I&#039;m having problem is, when i try to replace your outcome with Images, it appears to say &#039;error&#039; when the image actually loaded. I am trying to remove those messages and replace them with images, it just gets confusing. 

Can you link us another demo, but with ACUTAL images? This will save our time and struggle. 

Thank you!]]></description>
			<content:encoded><![CDATA[<p>Great job! </p>
<p>One thing I&#8217;m having problem is, when i try to replace your outcome with Images, it appears to say &#8216;error&#8217; when the image actually loaded. I am trying to remove those messages and replace them with images, it just gets confusing. </p>
<p>Can you link us another demo, but with ACUTAL images? This will save our time and struggle. </p>
<p>Thank you!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: ricardomasao		</title>
		<link>https://www.farinspace.com/jquery-image-preload-plugin/#comment-25586</link>

		<dc:creator><![CDATA[ricardomasao]]></dc:creator>
		<pubDate>Mon, 22 Oct 2012 20:37:18 +0000</pubDate>
		<guid isPermaLink="false">http://farinspace.com/?p=50#comment-25586</guid>

					<description><![CDATA[Hi all,

I&#039;m trying to load images from a bidimensional array. Is this possible to catch the DOM object at the end of the load? Above my code:

var filesToLoad = []
filesToLoad.push({src:$(element).attr(&#039;background&#039;), id:&#039;background&#039;})

$.imgpreload(filesToLoad,
	{
	    each: function()
	    {
		console.log($(this)) // big and strange object;

	    }
	})

Thank you]]></description>
			<content:encoded><![CDATA[<p>Hi all,</p>
<p>I&#8217;m trying to load images from a bidimensional array. Is this possible to catch the DOM object at the end of the load? Above my code:</p>
<p>var filesToLoad = []<br />
filesToLoad.push({src:$(element).attr(&#8216;background&#8217;), id:&#8217;background&#8217;})</p>
<p>$.imgpreload(filesToLoad,<br />
	{<br />
	    each: function()<br />
	    {<br />
		console.log($(this)) // big and strange object;</p>
<p>	    }<br />
	})</p>
<p>Thank you</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: MrK		</title>
		<link>https://www.farinspace.com/jquery-image-preload-plugin/#comment-24645</link>

		<dc:creator><![CDATA[MrK]]></dc:creator>
		<pubDate>Fri, 03 Aug 2012 03:55:34 +0000</pubDate>
		<guid isPermaLink="false">http://farinspace.com/?p=50#comment-24645</guid>

					<description><![CDATA[Man, thanks for this. Has been really useful.]]></description>
			<content:encoded><![CDATA[<p>Man, thanks for this. Has been really useful.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
