Recent searches


No recent searches

Optimizing Chat and Web Widget (Classic) performance



image avatar

Aimee Spanier

Zendesk Documentation Team

Edited Sep 02, 2022


0

10

10 comments

Hi Support

If I use Web Widget only for "Contact forms" and NOT for "Chat", can I still enable the:

connectOnPageLoad: false

in order to improve performance site?

Thanks

0


image avatar

DJ Buenavista Jr.

Zendesk Customer Care

Hi Daniele,

Thank you for reaching out to Zendesk Support.

In regards to your concern, the following performance benefits of using this code are mainly used in the Chat dashboard. This will help where agents are handling a large number of incoming chat requests and those who are interacting with the Web Widget.

I don't see any issues using the following code since you will not be using chat or engaging with end-users from the web widget.

Please don't hesitate to reach out if you have any other questions or concerns. Thank you and have a wonderful day ahead!

Kind regards,

DJ Buenavista Jr. |
Customer Advocacy Specialist | Support@Zendesk.com

0


We've implemented the suggestion but it loads intermittently or hangs with loading animation. Any idea what is wrong? This is our script:

<!-- Start of tatcha Zendesk Widget script -->
<script id=“ze-snippet” src=“https://static.zdassets.com/ekr/snippet.js?key=${KEY_VALUE}” defer> </script>
<!-- End of tatcha Zendesk Widget script -->
<script type=“text/javascript”>
window.zESettings = {
webWidget: {
chat: {
connectOnPageLoad: false
}
}
};
</script>

0


image avatar

Miranda Burford

Zendesk Product Manager

Hi @...,

Thanks for your message.  Apologies for the short delay in my reply.

The script looks OK, as is.  Would you mind sending over your website URL so we can see this in action and investigate further? 

Thanks,

- Miranda.

0


Ive also implemented the suggestion with the following script, but the chat button does not display at all when connectOnPageLoad is set to false. It only displays when set it to true.
Id like to have the chat button displaying, but only actually connecting once user clicks the chat button.

 

<script type="text/javascript">
window.zESettings = {
webWidget: {
chat: {
connectOnPageLoad: false
}
}
};
</script>

0


image avatar

Miranda Burford

Zendesk Product Manager

Hi @...,

Thanks for your message. 

Would you mind sending over your website URL so we can see this in action and investigate further? 

Thanks,

- Miranda.

0


Hi Miranda,

Thanks for replying,

Is there an email I can send to you?

Thanks

0


image avatar

Miranda Burford

Zendesk Product Manager

Hi @...,

Sure.  I just contacted you via email.  Please respond there and we can continue the conversation.

Thanks,

- Miranda.

0


were you guys able to get this issue resolved? i am having the same issues where the Classic Widget is slowing down my Wix website. I have a post up but haven't heard back from anyone relating this issue

1


Hi there, I have the above code on my site and i still have over 1 second of JS slowing down my 
Reduce JavaScript execution time and Reduce the impact of third-party code in PageSpeed. Can you take a look and advise? I am comfortable with any and all custom code you can throw at me. Site is https://www.mylegacy.ai/
Thanks,
Ben 
 

0


Please sign in to leave a comment.