Object allowing user to customize the background.
Object allowing user to customize the error dialog and what the user can do when something goes wrong.
Highest ranking parent of all HTML elements the loading screen is made from.
Current mode of the loading screen. Controls which submenu is currently visible.
Current mode of the loading screen. Controls which submenu is currently visible.
True if loading screen is currently a child of another element, presumably the document body.
Allows user to control whether loading screen is currently a child of another element, presumably the document body.
Setting it to true will add it to document.body, setting it to false will remove it from its parent.
Call will be ignored if it is already in the desired state.
A lightweight class allowing the user to display a loading spinner until they are done with something.
On its own, it is just a configurable UI.
There are several convenient utility functions to setup the loading screen for common operations, such as awaitPromise for an event you only want to fire off once succeed or fail, awaitPromiseFunction for something that you want the user to be able to try again with, or awaitScriptLoad for initializing an application.
The LoadingScreen.visible property determines whether the loading screen is part of the document body and therefore visible or not.
The LoadingScreen.state property determines whether it is playing the spinner animation or displaying an error message.
The LoadingScreen.errorDialog property allows you to customize what happens when something goes wrong.