web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Does setting onVisible...
Power Apps
Unanswered

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

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

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? 

Categories:
I have the same question (0)
  • Matren Profile Picture
    454 Super User 2024 Season 1 on at

    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

    Hidden Experimental.png

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard