> For the complete documentation index, see [llms.txt](https://docs.xaman.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.xaman.dev/js-ts-sdk/sdk-syntax/xumm.xapp/ready.md).

# ready()

{% hint style="info" %}
This feature is available in Xumm 2.5.0 and higher.
{% endhint %}

To prevent showing a double loader (first the Xumm xApp loader, then your xApp's loader while hydrating / booting) you have to [enable the "**Xumm loader till SDK ready() is called**" option in the Xumm Developer Console (xApp tab)](https://apps.xumm.dev/app-xapp). The xApp will then show the Xumm native loader, until your application calls the `ready()` method on the Xumm SDK.

### Syntax

First your app loads, fetches, etc. Then you have all the information you need to render & show your app, and you call:

```javascript
xumm.xapp.ready()
```

#### Exception flows

1. **The xApp doesn't load, to be able to debug the app needs to be displayed (e.g. reverse proxy 502 error or some other app error, preventing the SDK's `ready()` call being made).**\
   With Xumm in Developer Mode, the Xumm loading screen shows a 'Proceed to xApp' button at the Xumm loader screen, below the spinner. This way you can dismiss the Xumm loader and view the underlying problem.
2. **The xApp takes very long to load or doesn't load at all: users are confronted with a long wait.**\
   If the `ready()` method in the Xumm SDK isn't called within \~6 seconds a label + button is made visible: "xApp is slow to respond..." `[Contact Developer]`.\
   This button then opens the Support URL for the xApp as entered in the Developer Console.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.xaman.dev/js-ts-sdk/sdk-syntax/xumm.xapp/ready.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
