# גלילה אינסופית - האם דיסקורס ממחזרת אלמנטים של DOM?

**URL:** <https://meta.discourse.org/t/infinite-scroll-is-discourse-recycling-dom-elements/211069>\
**Category:** Development\
**Created:** [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:** 8

<div class="post-metadata">

**Author:** ![spirobel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/spirobel/32/170908_2.png) [@spirobel](https://meta.discourse.org/u/spirobel)\
**Post date:** [10 בדצמבר,‏ 2021,‏ 7:14am UTC](https://meta.discourse.org/t/infinite-scroll-is-discourse-recycling-dom-elements/211069/8 "2021-12-10T07:14:18Z")

</div>

@eviltrout I saw this post [We finally did something about Android Performance | Evil Trout Inc.](https://eviltrout.com/2016/02/25/fixing-android-performance.html)

> After years of waiting for a breakthrough in Android or Ember performance, we decided it was time to to take the nuclear option: we replaced the Ember rendering engine for our most common view with a custom virtual DOM based renderer.

So it seems like the vdom/widget system in discourse was built as a response to the android performance issues.  
This commit that introduces cloaking seems to happen after the vdom/widget system:  
[https://github.com/discourse/discourse/commit/cc5ca90ac6234483bf3ebf0522df4455cdb044fe](https://github.com/discourse/discourse/commit/cc5ca90ac6234483bf3ebf0522df4455cdb044fe)  
Is cloaking and the vdom/widget system in some way related? It seems like they both address performance. Recycling components would reduce the amount of dom elements significantly, so something like the vdom/widget system wouldn’t be necessary, right?

---

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