Check if Cxbus js fully initialize

I have a problem when trying to load messaging chat. The scenario is i have applied the lazyload module for genesys bus, after my site loaded, this will load the cxbus.min.js. And the problem is when page didn't fully load or init Genesys, user can may click on message bubble chat (please refer to the image below), then log will throw the error Uncaught ReferenceError: Genesys is not defined.
image

How can i make sure that everything of cxbus min fully loaded then i can enable my bubble chat to prevent the error thrown?

Hi - our native Launcher is subscribing to Messenger.ready event.
If you are building your own custom launcher, see this example > https://developer.genesys.cloud/commdigital/digital/webmessaging/messengersdk/pluginExamples#subscribing-to-events.

1 Like

Thank you Angelo. Let me take a look on this guide.

Thank you for your solution Angelo. It work like a charm.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.