# Prevent bot from loading immediately

**URL:** <https://community.hubspot.com/t/prevent-bot-from-loading-immediately/16819>\
**Category:** APIs & Integrations\
**Tags:** timeline-and-extensions-apis\
**Created:** [October 18, 2019, 3:04pm UTC](https://community.hubspot.com/t/prevent-bot-from-loading-immediately/16819 "2019-10-18T15:04:25Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![WendyGoh](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/wendygoh/32/42320_2.png) [@WendyGoh](https://community.hubspot.com/u/WendyGoh)\
**Post date:** [October 21, 2019, 4:32am UTC](https://community.hubspot.com/t/prevent-bot-from-loading-immediately/16819/2 "2019-10-21T04:32:38Z")

</div>

Hi @Siyabonga,

I hope all is well with you 😄

As mentioned on this documentation - [HubSpot Conversations JavaScript API:](https://developers.hubspot.com/docs/methods/conversations_api/hubspot-conversations-javascript-api#loadImmediately)

"_The API is housed in the `window.HubSpotConversations` object. All available methods can be accessed via this object. The HubSpot script loader on your page will create this object for you, but it may not be available immediately. To defer accessing the API until it has been initialized, you may use the [`window.hsConversationsOnReady`](https://developers.hubspot.com/docs/methods/conversations_api/hubspot-conversations-javascript-api#hsConversationsOnReady) helper._ "

And so, can you try the following code and see if this works for you:

```auto
<script >
 if (window.HubSpotConversations) {
 window.hsConversationsSettings = {
 loadImmediately: false,
 };
 }else {
 window.hsConversationsOnReady = [
 () => {
 window.hsConversationsSettings = {
 loadImmediately: false,
 };
 },
 ];
 }
</script>

```

---

_[View the full topic](https://community.hubspot.com/t/prevent-bot-from-loading-immediately/16819)._
