The tag name of the element to wait for (e.g. 'pc-app').
A promise that resolves with the element once it's ready.
Waits for the given element to be fully initialized. Note that the promise never settles if the element cannot finish initializing (for example, an element that is never added to the document).
The element to wait for.
A promise that resolves with the element once it's ready.
Waits for the first element matching the given CSS selector to be fully initialized. Note that
the promise never settles if the element cannot finish initializing (for example, a <pc-script-instance>
that is not a direct child of <pc-script>, or a <pc-app> that could not create a graphics
device — listen for its error event instead). A component element outside an entity-fronting
element is the exception: it still becomes ready, but its component is null. Either way, a
misplaced element logs a warning naming the parent it requires.
A CSS selector matching the element to wait for (e.g. '#my-app').
A promise that resolves with the element once it's ready.
Waits for the first element matching the given tag name to be fully initialized. Note that the promise never settles if the element cannot finish initializing (for example, a
<pc-script-instance>that is not a direct child of<pc-script>, or a<pc-app>that could not create a graphics device — listen for itserrorevent instead). A component element outside an entity-fronting element is the exception: it still becomes ready, but itscomponentisnull. Either way, a misplaced element logs a warning naming the parent it requires.