This method is used to detect when Smile UI and it’s dependencies have been fully initialized and are ready to be interacted with on the page. This includes identifying the logged-in customer and loading up the loyalty panel. It is useful for wrapping calls to other methods on theDocumentation Index
Fetch the complete documentation index at: https://dev.smile.io/llms.txt
Use this file to discover all available pages before exploring further.
SmileUI object.
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.