> ## Documentation Index
> Fetch the complete documentation index at: https://dev.smile.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Ready method

> `Smile.ready()`

<Danger>
  This method is deprecated and will be removed on August 1, 2026. Specify `includeSdk: true` when [initializing Smile UI](/ui/initializing), and then listen for the [`smile-js-initialized`](/js/concepts/initialized-event) event from the JavaScript SDK instead.
</Danger>

This method is used to detect when Smile and it's dependencies have been fully initialized and are ready to be interacted with. It is useful for wrapping calls to other methods on the `Smile` object.

## Returns

This method returns a `Promise` that resolves once Smile.js 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 `Smile` object.
* On failure, an error object.

<Panel>
  ```javascript JavaScript lines theme={null}
  Smile.ready().then(
    (smileInstance) => {
      // Smile has been fully intialized
      // and is ready to be used. Note that
      // 'Smile' and 'smileInstance' refer to
      // the same object
    }
  ).catch((err) => {
    // An error has occurred while initializing
  });
  ```
</Panel>
