Showing results for 
Search instead for 
Did you mean: 

Does setting onVisible() to false for objects off screen increase performance?

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? 

Responsive Resident
Responsive Resident

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,

Helpful resources

Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (6,555)