Execute functions when HubSpotConversations loads

Last updated March 26, 2019

window.hsConversationsOnReady = [...]

This endpoint is part of our developer preview program, and should be considered as a non-stable release that will be subject to bugs and breaking changes while under development. Please take this into account as you build against a release. Please subscribe to our changelog for updates.

hsConversationsOnReady takes an array functions that will be executed as soon as the JavaScript API becomes available.

This array will only be processed once, when the JavaScript API is loaded. Adding items to the array after window.HubSpotConversations is ready will have no effect.