slmnio / slmngg-sfc

New SLMN.GG website & server
5 stars 8 forks source link

Investigate async components #257

Open slmnio opened 5 months ago

slmnio commented 5 months ago

Some components take significant time or resources to load, especially due to our method of loading reactive data. Using async components and Suspenses, we can show a loading state while the full component loads, with the benefit of the page not being frozen during load. You can see the freezing easily on the Dashboad.

Because our method of requesting data isn't a regular fetch request and therefore not a simple promise, we would need some interesting solution. It would have to: