Conflict with Mailchimp code snipped
Opened this issue · 0 comments
Inversion-des commented
I discovered a problem that if on the page we have a Mailchimp form, linked with
<script src="//s3.amazonaws.com/downloads.mailchimp.com/js/signup-forms/popup/embed.js" data-dojo-config="usePlainJson: true, isDebug: false"></script>
And after this, we have linked SmoothScroll — Mailchimp form becomes broken.
In the SmoothScroll's init block this condition passes because define is defined in embed.js:
if (typeof define === 'function' && define.amd)
define(function() {
return SmoothScroll;
});
…
and something goes wrong for Mailchimp…
I do not expect any resolution here, just wanted to share knowledge after an hour of debugging…