자마린 다 좋은데 앱 로딩이 좀 늦다


로딩 타임 줄이는 방법이라는데...


1. 로컬 리소스 먼저 불러오기


2. assets 최적화


3. 당장 필요 없는 리소스는 천천히 로딩하기


4. xaml 컴파일 

앱 레벨

using Xamarin.Forms.Xaml;

...

[assembly: XamlCompilation (XamlCompilationOptions.Compile)]

namespace PhotoApp

{

  ...

}


클래스 레벨

using Xamarin.Forms.Xaml;

...

[XamlCompilation (XamlCompilationOptions.Compile)]

public class HomePage : ContentPage

{

  ...

}


5. Number of Assemblies를 줄이라는데
패키지 사용 줄이라는 뜻인 듯

출처 :
https://blog.xamarin.com/5-ways-boost-xamarin-forms-app-startup-time/


+ Recent posts