rdw-archive / WebClient

[Proof of Concept] Browser-based client capable of rendering networked multiplayer games using modern web technologies
1 stars 0 forks source link

Add an API to schedule asynchronous tasks and display a loading screen while they're running #167

Closed Duckwhale closed 2 years ago

Duckwhale commented 2 years ago

Goals:

The tasks need to be deferred so that the browser's layout engine has time to render the loading screen widget. To simplify things, only one task should be considered, since it's just a function that could combine multiple tasks if that were needed.

Duckwhale commented 2 years ago

Since there's no proper API to configure frame strata and levels, I just hardcoded the z-index for now... It will have to be streamlined at some point in the future (see #12).