The connectOnPageLoad setting can significantly impact the performance of your Web Widget. By default, the Web Widget connects to live chat services as soon as the page loads, which can slow down your website, especially if you have high traffic. This setting allows you to defer the connection until a visitor interacts with the widget, potentially improving page load speed.
When connectOnPageLoad is set to true, the widget connects immediately on page load, enabling features like proactive chat and conversion tracking. However, setting it to false means the connection only occurs when a user interacts with the widget, which can help focus resources on active users and improve performance. For more details, you can refer to theoriginal Zendesk article.
Using connectOnPageLoad comes with some trade-offs that you should consider. When set to true, the live chat functionality remains unaffected, and all features like conversion tracking and proactive triggers work as expected. However, setting it to…
Adding the connectOnPageLoad setting to your web pages is straightforward. You need to modify the source code of each page where the Web Widget is embedded. Insert the connectOnPageLoad setting above the Web Widget code snippet, specifying either…
Yes, you can use connectOnPageLoad even if you're not utilizing chat features. This setting is primarily beneficial for managing performance in the Chat dashboard, especially when handling a large number of chat requests. If your Web Widget is only…
If the Web Widget doesn't display when connectOnPageLoad is set to false, it could be due to the widget not being triggered by user interaction. This setting defers the connection until a user interacts with the widget, so if there's no…