I seem to be having trouble getting the Mailchimp pop-up subscribe function to work on Chrome:
I added the following code to my index.html page in django:
<script type="text/javascript" src="//downloads.mailchimp.com/js/signup-forms/popup/unique-methods/embed.js" data-dojo-config="usePlainJson: true, isDebug: false">
</script>
<script type="text/javascript">window.dojoRequire(["mojo/signup-forms/Loader"], function(L) { L.start({"baseUrl":"mc.us19.list-manage.com","uuid":"4eccd5a19349953c3e023b61d","lid":"9b2e4611ac","uniqueMethods":true}) })
</script>
Seems to be working fine in Opera, Firefox and IE but in Chrome I get the following error:
Uncaught TypeError: window.dojoRequire is not a function.
What am I missing to make this work in Chrome?
Additional info:
- Python 3.6.1
- Django 2.1.3