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
2 answers

Asynchronus Infinite scrolling to display data in table view in reacts app

I am developing my first reacts application, I go through various reacts plugins for data grid with infinite scroll option but didn't get proper solution. What I have and What I need is: I am fetching the users list from 3rd party API. At a time…
Ankush Kataria
  • 323
  • 3
  • 13
0
votes
1 answer

Angular2 Infinite Scroll implementation

I am using angular2-infinite-scroll for my project. My idea is first time page will loads 6 items, and then each time I scroll to the end of page, it should render 6 items more. But when I scroll, it loads continuously and never stop, although I…
0
votes
1 answer

Paginate multiple models with Ajax & Params

In my app I allow users to like item/cover object which they can later view in their profile. I have a profile model that shows a list of items and covers in separate tabs. A user clicks on a link to selects which list to view, which sends the…
0
votes
0 answers

How to implement infinite ajax scroll pagination in Laravel

I want to use infinite ajax scroll pagination for my blog, but unfortunately I do not have a result!? I still get this error message : server not responding... Below the code used. controller: $posts =Post::paginate(5); if ($request->ajax()) { …
visulo
  • 313
  • 1
  • 9
  • 19
0
votes
0 answers

Get past visible items of a RecyclerView

I'm doing an endless scroll RecyclerView that load items on demand. But I cannot detect the position of my LayoutManager because the function FindFirstVisibleItemPosition is always returning -1. Here's the code: FRAGMENT VIEW
user3535054
  • 67
  • 1
  • 9
0
votes
0 answers

scrollPagination 'is not a function'

I have the file javascript.js (function($) { $.fn.scrollPagination = function(options) { var settings = { nop : 10, // The number of posts per scroll to be loaded offset : 0, // Initial offset,…
Shold1934
  • 13
  • 4
0
votes
0 answers

Speeding up reactjs complex list rendering

I'm trying to speed up the rendering (or perceived rendering) of a very detailed infinite list: I'm rendering the list using reactjs. As you can see certain rows are more detailed than others and when there are a lot of components in the row being…
majorBummer
  • 6,357
  • 5
  • 29
  • 44
0
votes
1 answer

infinite scrolling using requests.get method python

Is it possible to achieve infinite read scrap using just get method. for example, http://www.justdial.com/Ahmedabad/Bearing-Dealers/ct-302676 gives following link for each page when we…
Bhavesh Ghodasara
  • 1,510
  • 1
  • 10
  • 24
0
votes
1 answer

Meteor mongo pagination

I am working on a Meteor app that requires a pagination (infinite scrolling). If the user scrolls to the bottom, I pull the next chunk of data by Collection.find({"offset": {$gte: currentOffset}}, {limit: limit}). The problem with this approach is…
user2646559
  • 71
  • 1
  • 8
0
votes
1 answer

Sending different json requests but getting similar results in Python

I am trying to send json requests to scrape an infinite scroll element in this link.Though, I know some parameters are not neccessary, but to be sure, I define exactly the same parameters that are sent to the server:my parameters and code…
mk_sch
  • 912
  • 1
  • 11
  • 26
0
votes
0 answers

ngInfiniteScroll is not working on huawei honor 7

ngInfiniteScroll is not working on huawei honor 7,but working fine on some other android device and iphone, and when I test in huawei phone ,it can not find bug.I have no idea how to fix it!so did you meet the same question! here is my code!
0
votes
0 answers

Codeigniter Infinite Scroll error

I try to make infinite scroll pagination in my codeigniter project. I'am using this tutorial http://www.mostlikers.com/2016/05/codeigniter-pagination-infinite-scroll.html to make it. But this is what i get View …
Nicky Apriliani
  • 293
  • 4
  • 21
0
votes
1 answer

Loading more links in a page after sending json requests in Python

I am parsing this URL to get links from one of the boxes with infinite scroll. Here is mo code for sending the requests for the website to get next 10 links: import requests from bs4 import BeautifulSoup import urllib2 import urllib import…
mk_sch
  • 912
  • 1
  • 11
  • 26
0
votes
2 answers

sending json requests in Python

I am trying to send some json requests for scraping an infinite scroll box like this link. Its json link…
mk_sch
  • 912
  • 1
  • 11
  • 26
0
votes
1 answer

Infinite ajax scroll did not working in Django

I am trying to use infinite ajax scroll plugin in my project. I just followed the official website and include the necessary javascript files. Following is my code:
user2970089
  • 215
  • 3
  • 14