# Is there any way to monitor the event when the entire page is initialized?

**URL:** <https://forum.webostv.developer.lge.com/t/is-there-any-way-to-monitor-the-event-when-the-entire-page-is-initialized/8721>\
**Category:** Web App Development\
**Created:** [July 29, 2024, 3:53am UTC](https://forum.webostv.developer.lge.com/t/is-there-any-way-to-monitor-the-event-when-the-entire-page-is-initialized/8721 "2024-07-29T03:53:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Allanxue](https://avatars.discourse-cdn.com/v4/letter/a/ecccb3/32.png) [@Allanxue](https://forum.webostv.developer.lge.com/u/Allanxue)\
**Post date:** [July 29, 2024, 3:53am UTC](https://forum.webostv.developer.lge.com/t/is-there-any-way-to-monitor-the-event-when-the-entire-page-is-initialized/8721/1 "2024-07-29T03:53:41Z")

</div>

When I use launch to call another app, it shows that the jump is successful, but there is no jump in fact. When I set the delay for 2 seconds, it can jump normally. I asked AI and he said it might be because the initialization has not been completed yet. As a result, I cannot jump, so is there any way to monitor the time when the entire page is initialized?

```auto
function toLogin() {
    setTimeout(function () {
        webOSDev.launch({
            id: "com.domain.login",
            params: {},
            onSuccess: function (res) {
                // do something
                console.log("success");
            },
            onFailure: function (res) {
                // error
                console.log("failed");
            },
        });
    }, 2000)
}

```

---

<div class="post-metadata">

**Author:** ![narae0.kim](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@narae0.kim](https://forum.webostv.developer.lge.com/u/narae0.kim)\
**Post date:** [July 29, 2024, 7:49am UTC](https://forum.webostv.developer.lge.com/t/is-there-any-way-to-monitor-the-event-when-the-entire-page-is-initialized/8721/2 "2024-07-29T07:49:15Z")

</div>

There is currently no API provided for this. Sorry for not being helpful.
