I have a gallery grid that contains 50 rows and 30+ columns. There is both horizonal and vertical scrolling so as you can imagine, a majority of the objects are always off screen. In normal coding, we would implement virtual scrolling so that objects would be mounted/unmounted as they go on/off screen. Does setting the onVisible() of my objects to false when they're outside of screen view increase the performance? Does being invisible actually unmount these objects from the DOM and have less rendered objects that allows the app to feel more lightweight?
Hello @aec2018,
Here's a suggestion, how about trying the following:
1. Use the performance monitor and check screen load times for when the off screen items are visible vs. hidden.
2. Turn on Settings experimental feature "Enhanced features for Hidden Controls" - "Hidden controls will not be created until they become visible" (see attached screenshot) and see if that makes a difference in the performance monitor. Use caution since this is an experimental feature, and might impact your other hidden objects (e.g. timers) in an undesired manner.
Best Wishes,
Matren
User | Count |
---|---|
261 | |
128 | |
99 | |
48 | |
45 |