# Continuously logging console.assert error when try loading model

**URL:** <https://forum.techsoft3d.com/t/continuously-logging-console-assert-error-when-try-loading-model/3595>\
**Category:** HOOPS Visualize Web\
**Tags:** how-to, webviewer, code, sample\
**Created:** [April 22, 2024, 8:56am UTC](https://forum.techsoft3d.com/t/continuously-logging-console-assert-error-when-try-loading-model/3595 "2024-04-22T08:56:30Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![tino](https://avatars.discourse-cdn.com/v4/letter/t/9dc877/32.png) [@tino](https://forum.techsoft3d.com/u/tino)\
**Post date:** [April 22, 2024, 7:34pm UTC](https://forum.techsoft3d.com/t/continuously-logging-console-assert-error-when-try-loading-model/3595/4 "2024-04-22T19:34:15Z")

</div>

To ensure the model is fully loaded and the scene is fully drawn, you can use the function [waitForIdle](https://docs.techsoft3d.com/communicator/latest/api_ref/viewing/classes/Communicator.WebViewer.html#Communicator.WebViewer.waitForIdle). At which point, you can get the boundings of the nodes.

Also, please see this older post:

> [@How do you get the state when the model is fully loaded](https://forum.techsoft3d.com/t/how-do-you-get-the-state-when-the-model-is-fully-loaded/2043/2):
>
> Because the model might be streaming interactively and some data might be left on the server, it is not always clear what “fully loaded” means. The `modelStructureReady’ callback lets you know that the model structure data is fully loaded and the model can be interacted with and queried. You can also use the function below to determine if the viewer has reached an idle state, which generally means that loading has ended. await hwv.waitForIdle();

---

_[View the full topic](https://forum.techsoft3d.com/t/continuously-logging-console-assert-error-when-try-loading-model/3595)._
