Contains utility functions intended to be used during application bootstrapping
Methods
-
(static) whenDocumentReady() : {Promise<void>}
-
Returns a Promise that is resolved when document.readyState is no longer 'loading' i.e. when it is 'interactive' or 'complete'. This may be used to delay an application's initial applyBindings call until DOM elements are accessible.
Returns:
a Promise that is resolved when document.readyState is no longer 'loading'- Type
- Promise<void>