<?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: Load Content While Scrolling With jQuery</title>
	<atom:link href="http://www.webresourcesdepot.com/load-content-while-scrolling-with-jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webresourcesdepot.com/load-content-while-scrolling-with-jquery/</link>
	<description>Free Web Resources</description>
	<lastBuildDate>Fri, 19 Mar 2010 13:26:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Eric Kerr</title>
		<link>http://www.webresourcesdepot.com/load-content-while-scrolling-with-jquery/comment-page-2/#comment-112205</link>
		<dc:creator>Eric Kerr</dc:creator>
		<pubDate>Tue, 16 Feb 2010 19:41:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.webresourcesdepot.com/?p=327#comment-112205</guid>
		<description>Not having the content listed in the HTML for search engines is horrible for SEO.

This approach is fine for images (which produce little SEO benefit), but I would never use it for loading additional content.

If you somehow sniffed the USER_AGENT for google/bing/etc. bots, and displayed all of the content for search engines to index, then it might be a plausible solution.</description>
		<content:encoded><![CDATA[<p>Not having the content listed in the HTML for search engines is horrible for SEO.</p>
<p>This approach is fine for images (which produce little SEO benefit), but I would never use it for loading additional content.</p>
<p>If you somehow sniffed the USER_AGENT for google/bing/etc. bots, and displayed all of the content for search engines to index, then it might be a plausible solution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Spratley</title>
		<link>http://www.webresourcesdepot.com/load-content-while-scrolling-with-jquery/comment-page-2/#comment-109002</link>
		<dc:creator>Andrew Spratley</dc:creator>
		<pubDate>Sun, 31 Jan 2010 22:45:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.webresourcesdepot.com/?p=327#comment-109002</guid>
		<description>@umut I found using == would only fire if you were at exactly that scroll position and when I was testing it the event didn&#039;t seem to get fired reliably (if you scrolled too  fast or jumped to the bottom somehow), using &gt; means it will fire anytime you&#039;re in the bottom section. I also prefer setting it as a percentage as it doesn&#039;t matter how large the window is, your buffer area should be proportional.</description>
		<content:encoded><![CDATA[<p>@umut I found using == would only fire if you were at exactly that scroll position and when I was testing it the event didn&#8217;t seem to get fired reliably (if you scrolled too  fast or jumped to the bottom somehow), using &gt; means it will fire anytime you&#8217;re in the bottom section. I also prefer setting it as a percentage as it doesn&#8217;t matter how large the window is, your buffer area should be proportional.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Umut M.</title>
		<link>http://www.webresourcesdepot.com/load-content-while-scrolling-with-jquery/comment-page-2/#comment-108978</link>
		<dc:creator>Umut M.</dc:creator>
		<pubDate>Sun, 31 Jan 2010 19:28:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.webresourcesdepot.com/?p=327#comment-108978</guid>
		<description>@Andrew,

You can also add a small equation to the code above to fire the load event anytime you want: 

Just change:
if  ($(window).scrollTop() == $(document).height() - $(window).height()){

to

if  ($(window).scrollTop() -20 == $(document).height() - $(window).height()){

would fire the event when you&#039;re 20px close to the bottom.</description>
		<content:encoded><![CDATA[<p>@Andrew,</p>
<p>You can also add a small equation to the code above to fire the load event anytime you want: </p>
<p>Just change:<br />
if  ($(window).scrollTop() == $(document).height() &#8211; $(window).height()){</p>
<p>to</p>
<p>if  ($(window).scrollTop() -20 == $(document).height() &#8211; $(window).height()){</p>
<p>would fire the event when you&#8217;re 20px close to the bottom.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Spratley</title>
		<link>http://www.webresourcesdepot.com/load-content-while-scrolling-with-jquery/comment-page-2/#comment-108960</link>
		<dc:creator>Andrew Spratley</dc:creator>
		<pubDate>Sun, 31 Jan 2010 17:32:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.webresourcesdepot.com/?p=327#comment-108960</guid>
		<description>I&#039;ve made some changes to the code that only make one request at a time and to call the update before the scroll gets right to the bottom. The changes are here if you want to see: http://learninglamp.wordpress.com/2010/01/30/endless-scrolling-with-jquery/ . I&#039;ve only tested this in FF on a Mac, the demo pulls live images from Flickr so I can&#039;t guarantee they&#039;re all &quot;safe&quot;.

@Robert have you tried a lazy loader solution: http://www.appelsiini.net/projects/lazyload</description>
		<content:encoded><![CDATA[<p>I&#8217;ve made some changes to the code that only make one request at a time and to call the update before the scroll gets right to the bottom. The changes are here if you want to see: <a href="http://learninglamp.wordpress.com/2010/01/30/endless-scrolling-with-jquery/" rel="nofollow">http://learninglamp.wordpress.com/2010/01/30/endless-scrolling-with-jquery/</a> . I&#8217;ve only tested this in FF on a Mac, the demo pulls live images from Flickr so I can&#8217;t guarantee they&#8217;re all &#8220;safe&#8221;.</p>
<p>@Robert have you tried a lazy loader solution: <a href="http://www.appelsiini.net/projects/lazyload" rel="nofollow">http://www.appelsiini.net/projects/lazyload</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robert Brown</title>
		<link>http://www.webresourcesdepot.com/load-content-while-scrolling-with-jquery/comment-page-2/#comment-97467</link>
		<dc:creator>Robert Brown</dc:creator>
		<pubDate>Tue, 15 Dec 2009 12:01:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.webresourcesdepot.com/?p=327#comment-97467</guid>
		<description>Can anyone tell me if it is possible to do this scrolling from left to right rather then down the page?

We have a large map that I would like load in sections but only download the section which the visitor wishes to see.</description>
		<content:encoded><![CDATA[<p>Can anyone tell me if it is possible to do this scrolling from left to right rather then down the page?</p>
<p>We have a large map that I would like load in sections but only download the section which the visitor wishes to see.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nitesh Sharma</title>
		<link>http://www.webresourcesdepot.com/load-content-while-scrolling-with-jquery/comment-page-2/#comment-96264</link>
		<dc:creator>Nitesh Sharma</dc:creator>
		<pubDate>Fri, 11 Dec 2009 06:50:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.webresourcesdepot.com/?p=327#comment-96264</guid>
		<description>Hi i want to apply the same thing on iframe  such that scrolling the iframe loads the rest og the content.Is that possible using this jquery script?</description>
		<content:encoded><![CDATA[<p>Hi i want to apply the same thing on iframe  such that scrolling the iframe loads the rest og the content.Is that possible using this jquery script?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff</title>
		<link>http://www.webresourcesdepot.com/load-content-while-scrolling-with-jquery/comment-page-2/#comment-93941</link>
		<dc:creator>Jeff</dc:creator>
		<pubDate>Wed, 02 Dec 2009 00:03:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.webresourcesdepot.com/?p=327#comment-93941</guid>
		<description>Yeah, this demo has a bit of a bug where if the scroll event fires multiple time before the AJAX is finished doing it&#039;s thing (think scrolling up and down at the end of the page) it will fire several times.</description>
		<content:encoded><![CDATA[<p>Yeah, this demo has a bit of a bug where if the scroll event fires multiple time before the AJAX is finished doing it&#8217;s thing (think scrolling up and down at the end of the page) it will fire several times.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joakim</title>
		<link>http://www.webresourcesdepot.com/load-content-while-scrolling-with-jquery/comment-page-2/#comment-86429</link>
		<dc:creator>Joakim</dc:creator>
		<pubDate>Sat, 31 Oct 2009 09:48:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.webresourcesdepot.com/?p=327#comment-86429</guid>
		<description>Hi, I am looking at your demo with MSIE 8.0 and onces it starts to scrool with the mousewheel, it creates dupes of every 5 records?</description>
		<content:encoded><![CDATA[<p>Hi, I am looking at your demo with MSIE 8.0 and onces it starts to scrool with the mousewheel, it creates dupes of every 5 records?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shahriar Hyder</title>
		<link>http://www.webresourcesdepot.com/load-content-while-scrolling-with-jquery/comment-page-2/#comment-81500</link>
		<dc:creator>Shahriar Hyder</dc:creator>
		<pubDate>Mon, 12 Oct 2009 05:11:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.webresourcesdepot.com/?p=327#comment-81500</guid>
		<description>Nice one mate. I have also added the link to your post in my Ultimate collection of top jQuery tutorials, tips-tricks and techniques to improve performance. Have a check below:

http://technosiastic.wordpress.com/2009/09/24/collection-of-top-jquery-tutorials-tips-tricks-techniques-to-improve-performance/</description>
		<content:encoded><![CDATA[<p>Nice one mate. I have also added the link to your post in my Ultimate collection of top jQuery tutorials, tips-tricks and techniques to improve performance. Have a check below:</p>
<p><a href="http://technosiastic.wordpress.com/2009/09/24/collection-of-top-jquery-tutorials-tips-tricks-techniques-to-improve-performance/" rel="nofollow">http://technosiastic.wordpress.com/2009/09/24/collection-of-top-jquery-tutorials-tips-tricks-techniques-to-improve-performance/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aaron</title>
		<link>http://www.webresourcesdepot.com/load-content-while-scrolling-with-jquery/comment-page-2/#comment-78351</link>
		<dc:creator>aaron</dc:creator>
		<pubDate>Mon, 28 Sep 2009 17:57:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.webresourcesdepot.com/?p=327#comment-78351</guid>
		<description>got it....

create a div: Load more

then add this inside of the document.ready function:

var loadMore = $(&#039;#more&#039;); 
		loadMore.click(function(){
		lastPostFunc();
		});

I removed the scrolling function because my mouse scroll wheel would execute the same query 4 times in a row.</description>
		<content:encoded><![CDATA[<p>got it&#8230;.</p>
<p>create a div: Load more</p>
<p>then add this inside of the document.ready function:</p>
<p>var loadMore = $(&#8216;#more&#8217;);<br />
		loadMore.click(function(){<br />
		lastPostFunc();<br />
		});</p>
<p>I removed the scrolling function because my mouse scroll wheel would execute the same query 4 times in a row.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- This site's performance optimized by W3 Total Cache. Dramatically improve the speed and reliability of your blog!

Learn more about our WordPress Plugins: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)
Database Caching 4/19 queries in 3.972 seconds using disk

Served from: www.webresourcesdepot.com @ 2010-03-19 19:29:10 -->