gpt4 book ai didi

javascript - 聊天 Smartsupp-Drupal 脚本

转载 作者:太空宇宙 更新时间:2023-11-04 15:28:50 24 4
gpt4 key购买 nike

我在 drupal 上使用 smartsupp 聊天时遇到问题,

这是调用聊天框的代码,我将其插入到 php 页面中,但问题是加载时间很长。如何优化脚本以使加载速度更快。

<!-- Smartsupp Live Chat script -->
<script src="js/loader.js"></script>
<script type="text/javascript">
var _smartsupp = _smartsupp || {};
_smartsupp.key = '425fb33bf5e0cf0b359b9e60a17d16a78fd5efa3';
window.smartsupp||(function(d) {
var s,c,o=smartsupp=function(){ o._.push(arguments)};o._=[];
s=d.getElementsByTagName('script')[0];c=d.createElement('script');
c.type='text/javascript';c.charset='utf-8';c.async=true;
c.src='//www.smartsuppchat.com/loader.js';s.parentNode.insertBefore(c,s);
})(document);
</script>

最佳答案

我是来自 Smartsupp 的弗拉基米尔。

您在 Smartsupp 中使用访客录音吗?该功能负载最大。如果加载时间是您最关心的问题,您可以关闭访客记录(访客记录选项卡中的齿轮图标)。

有关 Smartsupp 脚本加载时间的一点信息:

Smartsupp 聊天脚本大小为 112 KB。所有 Smartsupp 元素加载时的大小为 450 KB,在宽带互联网连接上加载需要 230 毫秒。该脚本是异步的,因此不会减慢网站的加载速度。您可以在此处查看脚本加载详细信息:

https://www.dropbox.com/s/0vy54qnuko7884n/_Smartsupp%20script%20load%20time.png?dl=0

如果您还有其他问题,可以通过 support@smartsupp.com 与我们联系。

关于javascript - 聊天 Smartsupp-Drupal 脚本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44974318/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com