Questions tagged [infinite-scroll]

Infinite Scrolling, also known as endless scrolling, is a technique that is widely used by websites and Web applications that host lots of content on a page where pagination would traditionally have been used. Infinite scrolling involves initially loading only one page of content. As the user scrolls down, the browser fetches another page via an AJAX request. There are several Infinite Scrolling plugins that facilitate this technique in modern browsers.

Background:

In Web 1.0 applications, it is common to see pagination used to limit the browser from displaying all of the data in a set all at once. Pagination allows a subset of the data to be displayed on the page, which reduces the memory footprint and decreases the lag-time caused by too much visible markup being displayed in the DOM.

Pagination involves "next" and "prev" links as controls in which a user uses to traverse through the data. This technique is facilitated through either full page reloads, where clicking next reloads the page with the next data subset, or it's facilitated through AJAX, where the application replaces a portion of the page with the next set of data.

Some Infinite Scrolling plugins, such as the Infinite Scrolling - A jQuery Plugin simply extend this type of pagination by hiding the "prev" and "next" hyperlinks and automating the click through process by monitoring the scrollTop position, while others do not.

Thus, for websites and web applications with an existing legacy pagination technique, a plugin that extends existing functionality may be more desirable.

Example of the Infinite Scrolling Technique:

An real-life example of the infinite scrolling technique is found here

Infinite scrolling plugins:

Below is a list of some widely known Infinite Scrolling plugins:

When should I use this tag?

You should use the [infinite-scroll] tag on questions where you know or reasonably believe through trial and error that the problem you're facing is related to an infinite scroll plugin or an infinite scroll technique.

For example, this question is asked by a user who was having problems getting the jQuery Infinite Scroll plugin to work. The error the user is seeing only appears when the plugin is loaded, which implies that the plugin is involved in the problem.

It's not helpful to tag a question with a tag that isn't specifically involved in the problem, so an example of a situation where I wouldn't use the tag would be if the Infinite Scroll plugin or technique was working great, yet I had problems making an AJAX call to the server. Additionally, the problem occurs with or without the plugin; therefore, I would not use that tag in this specific scenario.

Advanced Techniques:

The majority of the Infinite Scroll plugins that exist, in general, only offer one way scrolling functionality. In other words, as the user scrolls down, more content is added. However, in most cases, the content above the visible viewing area remains actively loaded in the DOM.

As users scroll down long enough, they may begin to experience a lag as more and more memory is consumed by the browser. With enough content, this could theoretically cause a browser crash.

Ben Nadel writes a blog post covering Bidirectional Infinite Scroll. While there is no demo, in the blog post, he includes a video that demonstrates the technique.

For Bidirectional Scroll, there exists no plug-in at this time, at least none that are easy to find. The bidirectional technique is much harder to implement than the one-way technique.

The difficulty comes not from implementing two directions per se, but instead the difficulty manifests itself when attempting to implement scrolling that loads content above the visible area, such as when the user scrolls up. When scrolling down, new content added to the page does not affect the visible viewing area. While users may see the scrollbar move, the content itself is not affected.

But when content is loaded on top, the visible scroll area shifts, and the user experiences a jarring effect. Ben Nadel's technique involves storing the scrollTop position prior to loading in new content on top, and then once the content loads, a new scrollTop is quickly calculated before the user experiences any side effects.

1977 questions
0
votes
0 answers

Infinite Scroll For Message List. Like Facebook Messages

My friends, I am having a trouble to load more messages when I scroll down. Initially I want latest messages. When the user scrolls, I want to load the another limited set of messages. When user scrolls again the next set loads. Similar to Facebook…
0
votes
0 answers

Using Jquery DFP with Fullpage.js on Pages with scrollOverflow

So, I built a small website using Alvaro Trigo's Fullpage.js. I have been trying to incorporate Google DFP ads throughout the site and have had a lot of problems as I am very weak when it comes to Javascript. What I have been able to do so far is to…
0
votes
1 answer

Is this the correct way to create a system of infinite-scrolling on my website?

I've recently learned the basics of SQL, Ajax and (object oriented) PHP, which I've put to use by creating a user build feed of information. However, at present the feed only loads the 20 most recent posts in the database (since loading all of them…
John Smith
  • 349
  • 1
  • 12
0
votes
0 answers

Get window height with absolute positioning

I am trying to implement infinite scroll in my web page but because of absolute positioning window scroll event is not getting triggered. Please help. Thanks
Aarush
  • 9
  • 3
0
votes
1 answer

Meteor infinite scroll : prevent subscribe to rerender elements

I'm implementing an infinite scroll on Meteor in order to display a grid of pictures linked to a large collection. When the user is at the end of the page I subscribe to more elements and I increase the number of pictures displayed (through my…
Rzqt
  • 1
  • 1
0
votes
1 answer

Using objects in child controller from parent controller in Angular

I have a Parent Angular Controller that has a method that needs to be shared with some other controller. The parent controller looks like this: "use strict"; (function() { var ParentCtrl = function($scope, atomico, Asset) { var _this =…
Leon
  • 1,108
  • 2
  • 15
  • 37
0
votes
2 answers

function firing multiple times when scrolling fast

First of all, I'm not very advanced at code and tend to only do this part time so please excuse all terrible/ugly code! I appreciate there are already some solutions out there but I can't seem to make any of them work with my code so would really…
0
votes
1 answer

How to set the Adapter for the circular Scroll-able tab

I am trying to set infinite view Pager(circular Scroll-able tab) using Infinite ViewPager but when I tried to set the adapter 1.It work only from the end side (last Position). 2.It is not working on the start(position 0) side. 3.It repeat the last…
0
votes
1 answer

Triggering fluffy.js

I'm trying to make a simple tumblr theme using the fluffy plugin (https://github.com/mzdr/fluffy.js) but I've ran into a problem. The plugin only executes once on page load. I'm trying to get it to work with the infinite scroll plugin…
Jovil Hiew
  • 15
  • 7
0
votes
0 answers

How to add more json data to a scroll-able table through AJAX calls?

I am currently pulling down records(json data) down from an online database with the following ajax call. This json data is populating scroll-able table. The issue is that the ajax call can only pull down a finite amount of data, around 30 entries…
GoldenEagle
  • 105
  • 2
  • 15
0
votes
2 answers

ClassCastException:MyViewHolder cannot be cast to ProgressViewHolder

Iam trying to implement Endless Infinite Scrolling with RecyclerView, but I am only getting all records and even not getting any progress while trying to scroll at bottom. and see this my code this is my News_Adapter public class NewsAdapter extends…
0
votes
1 answer

RecyclerViewPagination Endless Infinite Scrolling Issue

I am trying to implement Endless Infinite Scrolling with RecyclerView, but I am only getting all records and even not getting any progress while trying to scroll at bottom. this is News_Fragment public class News_Fragment extends Fragment { private…
0
votes
2 answers

Infinite Scrolling reloads page, Ionic

What is happening is that when I reach the bottom of the page, it refreshes and loads the new data, however it doesn't show the data for the previous and current page. For example it looks like this: 1 2 3 4 * end of page, refreshes page*…
noor
  • 491
  • 6
  • 18
0
votes
2 answers

Having trouble with infinite scroll

I've been trying to get this infinite scroll script to work for the past 8 hours and can't figure it out. I uploaded the site here so you can see the problem: http://kevinellerton.com/meditationmagazine/article01/ as you scroll down, it's supposed…
0
votes
1 answer

ExtJs BufferedStore fetching descending by id

I have REST service with some data: [{id:20},{id:16},{id:14},{id:11},{id:9},{id:8}] request (get data with id less then 15) ?fromId=15&count=3 response [{id:14}, {id:11},{id:9}] request (no fromId means get last…
Yuri Smirnoff
  • 459
  • 1
  • 5
  • 9
1 2 3
99
100