DanXi-Dev / DanXi-swift

A Swift Reimplementation of DanXi
GNU Affero General Public License v3.0
13 stars 3 forks source link

Load DanKe and Calendar in the background on app launch #132

Closed singularity-s0 closed 5 months ago

singularity-s0 commented 6 months ago

These two pages take a lot of time on first load. They will also show a brief loading screen when loading from disk cache. This is not great for user experience. We expect them to load in the background on app launch so that they can be presented to the user immediately. However, we must be careful not to start multiple loading tasks.

fsy2001 commented 5 months ago

The load time is improved after I fixed a bug in AsyncContentView (see 605c30062226c6820eaed0e466386aee164e2f60), these pages will now finish loading in about 1 second. It's no longer necessary for this optimization.