SmileUI object.
If your code isn’t using the Smile UI object, use the
Smile.ready() method instead.Returns
This method returns aPromise that resolves once Smile UI and it’s dependencies have been fully initialized. If initialization has already occurred, the Promise will resolve immediately.
The Promise will resolve with:
- On success, an initialized instance of the
SmileUIobject. - On failure, an error object.