如何延迟MailChimp订阅弹出窗口?

时间:2016-07-16 15:51:53

标签: javascript popup mailchimp

MailChimp订阅弹出窗口的免费版本(低于2000个订阅者)允许在弹出窗口执行前最多延迟5秒。但我想将弹出窗口延迟45秒。有没有办法让它成真?在此先感谢。

<script type="text/javascript" src="//s3.amazonaws.com/downloads.mailchimp.com/js/signup-forms/popup/embed.js" data-dojo-config="usePlainJson: true, isDebug: false"></script><script type="text/javascript">require(["mojo/signup-forms/Loader"], function(L) { L.start({"baseUrl":"mc.us11.list-manage.com","uuid":"32e8df9557dd399bb3ba2ae61","lid":"6d35f0128b"}) })</script>

1 个答案:

答案 0 :(得分:2)

设置加载超时时加载它。

<script type="text/javascript" src="//s3.amazonaws.com/downloads.mailchimp.com/js/signup-forms/popup/embed.js" data-dojo-config="usePlainJson: true, isDebug: false"></script>
<script type="text/javascript">
   setTimeout(function(){
                require(["mojo/signup-forms/Loader"], function(L) { L.start({"baseUrl":"mc.us11.list-manage.com","uuid":"32e8df9557dd399bb3ba2ae61","lid":"6d35f0128b"}) })
    }, 45000);
</script>