> ## 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.

# Initialized event

> `smile-js-initialized`

This event is dispatched when [`Smile.initialize()`](/js/smile/initialize) completes successfully — indicating that the SDK is fully initialized and all methods are ready to use.

## When to use

Listen for this event to perform actions that depend on the SDK being fully initialized, such as displaying customer data, accessing preloaded resources, or rendering UI components that require SDK functionality.

## Good to know

* It only fires on successful initialization (not on errors).
* The event fires after any preloaded data has been fetched and cached.
* If the [`Smile.initialize()`](/js/smile/initialize) method is called multiple times with the same credentials, this event only fires on the first successful initialization.

<Panel>
  ```javascript JavaScript lines theme={null}
  document.addEventListener(
    'smile-js-initialized', () => {
      // SDK is initialized and ready to use
    }
  );
  ```
</Panel>
