<div dir="ltr">Yep, infinite scrolling can be a bad idea. That said, you really need it if you are going to do an updating feed, like Facebook.<br><div><br></div><div>Cheers,</div><div><br></div><div>Jeff</div></div><br><div class="gmail_quote">On Tue, Apr 28, 2015 at 1:32 PM Mark RD Jones &lt;<a href="mailto:redtexture@gmail.com">redtexture@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Commentary on Infinite Scrolling,<br>
and the better and worse varieties of implemetation.<br>
<br>
Hacker News - April 22, 2015<br>
&quot;Ask HN: Please stop making infinite scrolling websites&quot;<br>
<a href="https://news.ycombinator.com/item?id=9416017" target="_blank">https://news.ycombinator.com/item?id=9416017</a><br>
<br>
<br>
On Tue, Apr 28, 2015 at 10:08 AM, J.F. Rick &lt;<a href="mailto:self@je77.com" target="_blank">self@je77.com</a>&gt; wrote:<br>
&gt; Cool. Thanks for sharing.<br>
&gt;<br>
&gt; On Mon, Apr 27, 2015 at 7:35 PM Paul DeBruicker &lt;<a href="mailto:pdebruic@gmail.com" target="_blank">pdebruic@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; I made an JQWidgetBox endless scroll widget a while ago, but never shared<br>
&gt;&gt; it<br>
&gt;&gt; I guess.  I just uploaded it to Smalltalkhub.  see:<br>
&gt;&gt; <a href="http://smalltalkhub.com/#!/~Seaside/JQueryWidgetBox" target="_blank">http://smalltalkhub.com/#!/~Seaside/JQueryWidgetBox</a><br>
&gt;&gt;<br>
&gt;&gt; Its a plugin for <a href="https://github.com/fredwu/jQuery-Endless-Scroll" target="_blank">https://github.com/fredwu/jQuery-Endless-Scroll</a><br>
&gt;&gt;<br>
&gt;&gt; I&#39;m not sure if/how the Widget is out of sync with the JS code in the git<br>
&gt;&gt; repo but its a start.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; I used it like this:<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; renderEndlessScroll: html with: aRequest with: id<br>
&gt;&gt;<br>
&gt;&gt;         html<br>
&gt;&gt;                 script:<br>
&gt;&gt;                         (((html jQuery id: id) endlessScroll)<br>
&gt;&gt;                                 fireDelay: 5000;<br>
&gt;&gt;                                 fireOnce: true;<br>
&gt;&gt;                                 bottomPixels: 850;<br>
&gt;&gt;                                 insertAfter: &#39;.results:visible:last&#39;;<br>
&gt;&gt;                                 visible: &#39;#&#39; , id;<br>
&gt;&gt;                                 callback:<br>
&gt;&gt;                                                 (html jQuery ajax<br>
&gt;&gt;                                                                 script: [<br>
&gt;&gt; :s |<br>
&gt;&gt;                                                                         s<br>
&gt;&gt; &lt;&lt; (s jQuery class: &#39;loader&#39;) show.<br>
&gt;&gt;                                                                         s<br>
&gt;&gt; &lt;&lt; (s jQuery class: &#39;results:visible:last&#39;)<br>
&gt;&gt;<br>
&gt;&gt; replaceWith: [ :h |     | moreItems |<br>
&gt;&gt;<br>
&gt;&gt; moreItems := self getMoreResults: aRequest.<br>
&gt;&gt;<br>
&gt;&gt; self renderMoreItems: moreItems from: aRequest at: id on: h ].<br>
&gt;&gt;                                                                         s<br>
&gt;&gt; &lt;&lt; (s jQuery class: &#39;shown:visible&#39;)<br>
&gt;&gt;<br>
&gt;&gt; replaceWith: [ :h |<br>
&gt;&gt;<br>
&gt;&gt; (h span)<br>
&gt;&gt;<br>
&gt;&gt; class: &#39;shown&#39;;<br>
&gt;&gt;<br>
&gt;&gt; with: [html strong: aRequest results oldResults size<br>
&gt;&gt; asStringWithCommas ] ] ]))<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; jrick wrote<br>
&gt;&gt; &gt; I&#39;m implementing a blog with many posts. I&#39;d like to implement infinite<br>
&gt;&gt; &gt; scrolling<br>
&gt;&gt; &gt; &amp;lt;<a href="http://www.sitepoint.com/jquery-infinite-scrolling-demos/&amp;gt" target="_blank">http://www.sitepoint.com/jquery-infinite-scrolling-demos/&amp;gt</a>; so<br>
&gt;&gt; &gt; that only a few posts get loaded initially and then subsequent posts get<br>
&gt;&gt; &gt; loaded once the person scrolls to the bottom of the page. I&#39;d like to<br>
&gt;&gt; &gt; use<br>
&gt;&gt; &gt; AJAX prepend to make this happen.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Has anyone implemented something similar? Is there a good way to trigger<br>
&gt;&gt; &gt; a<br>
&gt;&gt; &gt; seaside ajax call based on an element appearing on screen or a scroll<br>
&gt;&gt; &gt; event<br>
&gt;&gt; &gt; reaching near the bottom?<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Cheers,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Jeff<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; seaside mailing list<br>
&gt;&gt;<br>
&gt;&gt; &gt; seaside@.squeakfoundation<br>
&gt;&gt;<br>
&gt;&gt; &gt; <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; View this message in context:<br>
&gt;&gt; <a href="http://forum.world.st/Infinite-Scrolling-tp4821669p4822313.html" target="_blank">http://forum.world.st/Infinite-Scrolling-tp4821669p4822313.html</a><br>
&gt;&gt; Sent from the Seaside General mailing list archive at Nabble.com.<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; seaside mailing list<br>
&gt;&gt; <a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a><br>
&gt;&gt; <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; seaside mailing list<br>
&gt; <a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a><br>
&gt; <a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
&gt;<br>
_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</blockquote></div>