# Infinite scroll - is discourse recycling dom elements?

**URL:** https://meta.discourse.org/t/infinite-scroll-is-discourse-recycling-dom-elements/211069
**Category:** Development
**Created:** [December 4, 2021, 1:09am UTC](https://meta.discourse.org/t/infinite-scroll-is-discourse-recycling-dom-elements/211069 "2021-12-04T01:09:04Z")
**Posts on this page:** 1
**Showing post:** 4

<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: [December 6, 2021, 12:19am UTC](https://meta.discourse.org/t/infinite-scroll-is-discourse-recycling-dom-elements/211069/4 "2021-12-06T00:19:09Z")

</div>

No we leave them around, we have a “cloaking” piece of logic that replaces elements with a placeholder once you are very far from the viewport, then when you get closer to the element we uncloak by re-rendering. The threshold for this magic is quite high.

---

_[View the full topic](https://meta.discourse.org/t/infinite-scroll-is-discourse-recycling-dom-elements/211069)._
