-
Notifications
You must be signed in to change notification settings - Fork 7
Startup Performance
David Ortinau edited this page Apr 10, 2025
·
3 revisions
Start-up time impacts the first impression of your app. Slower startup is often caused by unnecessary synchronous work.
- Heavy logic in
MauiProgram.CreateMauiApp() - DI container scanning assemblies or loading all services
- Eager loading of large resource dictionaries or services
- Use lazy registration or
Lazy<T>for services - Delay non-critical work until after the first screen renders
- Avoid blocking file IO or HTTP calls in startup code