Canvas app performance: find what's slow and fix it at the source
The documented causes behind slow canvas app performance — OnStart bloat, N+1 queries, cross-screen references, collection abuse — how to find each with Monitor and App Checker, and the fix Microsoft recommends.
Power AppsFix a problem5 min read
Slow canvas apps are rarely slow for mysterious reasons — Microsoft's performance documentation names the same handful of patterns again and again. This guide maps symptom to cause to documented fix.
Measure first
Two built-in tools turn "it feels slow" into a diagnosis:
- Monitor logs every data call and key activity as the app runs — including a session attached to a phone, so field-reported slowness can be seen rather than imagined.
- Performance insights and App Checker in Studio flag known anti-patterns; cross-screen references surface under "Inefficient Delay Loading".
Fix what the trace shows, not what a checklist guesses — and when a fix lands, re-measure the same journey so the claim "it's faster now" belongs to evidence someone actually gathered.
Fix the start
App.OnStart is imperative: an ordered list of work. How much it delays the first screen depends on one app setting:
- With non-blocking OnStart, which is now the default, OnStart runs alongside everything else. The first screen can appear and respond before OnStart finishes, so a variable or collection that OnStart sets may still be empty when a screen reads it. That's the cause of "the gallery is blank for a moment" and "it works on the second try".
- With the older blocking behaviour, or when OnStart contains
Navigate, everything in OnStart must finish before the first screen appears, which is where a long OnStart turns into a long white screen.
Either way, Microsoft's guidance is the same:
- Move variable setup to named formulas in
App.Formulas. They're calculated when first needed, are never "not set yet", and don't hold up the first screen. - Replace
Navigateinside OnStart withApp.StartScreen. It's declarative, and the first screen can show before OnStart completes. (Navigatein OnStart is retired.) - Load data a single screen needs in that screen's OnVisible, not in OnStart.
// Instead of:
App.OnStart = Collect(OrdersCache, Orders);
If(Param("AdminMode") = "1", Navigate(AdminScreen), Navigate(HomeScreen))
// Declare the start screen and let it paint:
App.StartScreen = If(Param("AdminMode") = "1", AdminScreen, HomeScreen)
Hunt the data patterns
The three documented heavyweights:
- Select N+1: a gallery whose rows each fire a
LookUpturns one screen into dozens of calls. Watch Monitor for repeated calls to the same source; fix by batching into one query, using a view that already includes the related columns, or reshaping the data so the join happens at the source. Microsoft's example case cut a five-minute load to under ten seconds by fixing the join at the source. - Collections as a crutch:
ClearCollectof a large table blocks the UI until every row lands. Collections are for small data you compute against repeatedly (a basket, not a backlog); read-only data belongs directly in the gallery'sItems, delegated to the source. Delegation itself is its own discipline — our delegation cheat sheet covers which functions push work to the server. - Power Automate as a data loader: each flow call costs roughly 0.6 seconds just to start, before any work happens. Microsoft is blunt that the worst-performing apps overuse this; query the source directly, or move server-side logic into Dataverse views or low-code plugins that return finished results.
Remove cross-screen references
A label on Screen A reading a control on Screen B forces Power Apps to load both screens before A appears — multiplied across an app, that's the "every screen is slow" signature. The documented cure: hold shared state in variables or collections, pass values through navigation parameters, and keep each screen self-contained. On phones this also fights memory-driven app restarts, which Microsoft ties directly to how the app is authored.
- Step 1Trace with Monitor
- Step 2Fix the top pattern
- Step 3Re-measure the same journey
- Step 4Repeat until the trace is boring
Don't
- Don't
Patchrows one by one in a loop — bulk-patch a collection of changes. - Don't ship media-heavy screens untested on the oldest device your users carry.
Sources
- Identify and mitigate canvas app performance issues — Microsoft Learn
- Troubleshoot Power Apps canvas app performance issues — Microsoft Learn
- Optimize app or page load for peak performance — Microsoft Learn
- Power Apps coding guidelines: code optimization — Microsoft Learn
- App object: OnStart and StartScreen properties — Microsoft Learn
- Prevent canvas app restarts in the Power Apps mobile app — Microsoft Learn
Add LowCodeStacks as a preferred source on Google
Did this fix it?
Get the weekly email
New guides and updates from LowCodeStacks, every Tuesday. One email a week, no more.
From LowCodeStacks, Regina, SK, contact@lowcodestacks.com. You can unsubscribe any time, from the link in every email or in your privacy settings. See the Privacy notice.
Comments
No comments yet. Share what worked for you.
Sign in to comment. Comments show under a display name you choose, never your email.