# Trying to understand how infinite scrolling works in Discourse

**URL:** https://meta.discourse.org/t/trying-to-understand-how-infinite-scrolling-works-in-discourse/109653
**Category:** Development
**Created:** [2월 20, 2019, 1:29오후 UTC](https://meta.discourse.org/t/trying-to-understand-how-infinite-scrolling-works-in-discourse/109653 "2019-02-20T13:29:38Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Goop](https://avatars.discourse-cdn.com/v4/letter/g/47e85d/32.png) [@Goop](https://meta.discourse.org/u/Goop)
#### Post date: [2월 20, 2019, 1:29오후 UTC](https://meta.discourse.org/t/trying-to-understand-how-infinite-scrolling-works-in-discourse/109653/1 "2019-02-20T13:29:38Z")

</div>

Would someone please explain how Discourse does infinite scrolling? It has already been described to me by devs that to disable it is extremely difficult and would take months of danger-prone changes to so, but I’m not asking anyone to do this. I’m just trying to get an understanding of the innards of Discourse so I can craft a plug-in to adjust how infinite scrolling works. Telling those of us trying to figure this out that it’s impossible or nearly so and then ending the conversation is not helpful. Let’s get a dialog going on this.

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [2월 20, 2019, 7:08오후 UTC](https://meta.discourse.org/t/trying-to-understand-how-infinite-scrolling-works-in-discourse/109653/3 "2019-02-20T19:08:29Z")

</div>

As you know, it is very complex. More complex than a single topic or even several topics could cover adequately. To start off a discussion, how about starting with what you have figured out so far?

---

<div class="post-metadata">

### Author: ![joebuhlig](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joebuhlig/32/193054_2.png) [@joebuhlig](https://meta.discourse.org/u/joebuhlig)
#### Post date: [2월 20, 2019, 7:20오후 UTC](https://meta.discourse.org/t/trying-to-understand-how-infinite-scrolling-works-in-discourse/109653/4 "2019-02-20T19:20:07Z")

</div>

The easy (and not advisable) way to disable it is to override the handlebars templates where it exists and leave out the `load-more` pieces. That would break it in that specific location.

---

<div class="post-metadata">

### Author: ![Goop](https://avatars.discourse-cdn.com/v4/letter/g/47e85d/32.png) [@Goop](https://meta.discourse.org/u/Goop)
#### Post date: [2월 21, 2019, 3:23오전 UTC](https://meta.discourse.org/t/trying-to-understand-how-infinite-scrolling-works-in-discourse/109653/5 "2019-02-21T03:23:15Z")

</div>

I’ve gathered so far that if Javascript is turned off, then pagination is turned on by something in the server-side code. I intend to identify what code produces that and investigate how to selectively activate it.

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [2월 21, 2019, 4:12오전 UTC](https://meta.discourse.org/t/trying-to-understand-how-infinite-scrolling-works-in-discourse/109653/6 "2019-02-21T04:12:50Z")

</div>

The files in this folder may be some help  
[discourse/app/views/topics at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/tree/master/app/views/topics)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2월 21, 2019, 4:17오전 UTC](https://meta.discourse.org/t/trying-to-understand-how-infinite-scrolling-works-in-discourse/109653/7 "2019-02-21T04:17:12Z")

</div>

I can help here:

See:

> [@Contributing to Discourse development](https://meta.discourse.org/t/discourse-development-contribution-guidelines/3823):
>
> bookmark This guide is designed for those who wish to contribute to the Discourse open-source project, detailing the setup and conventions necessary for effective collaboration. person_raising_hand Required user level: While anyone can contribute code, you will need to be familiar with Ruby and JavaScript. Summary This documentation will cover the following: Setting up your development environment Understanding where to begin contributing Creating and working with Discourse plugins Co…

Then once you are done with that and have a dev environment up, work through 2-3 or so #starter-task’s , after that submit about 10-20 PRs that are #pr-welcome, once you did all of that, please feel free to post a well framed technical question asking for guidance.

You are asking skyscraper construction level questions, got to start by building your first mud hut.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2월 21, 2019, 4:17오전 UTC](https://meta.discourse.org/t/trying-to-understand-how-infinite-scrolling-works-in-discourse/109653/8 "2019-02-21T04:17:17Z")

</div>


