Alex-D / Cookies-EU-banner

1kb vanilla JS script which manages cookies consent banner display like asked by GDPR
http://alex-d.github.io/Cookies-EU-banner/
MIT License
439 stars 57 forks source link

Uncaught ReferenceError: CookiesEuBanner is not defined #31

Closed mrpacman101 closed 6 years ago

mrpacman101 commented 6 years ago

Hello @Alex-D,

i have downloaded the latest files from your repo. I opened your demo.html page and straight up got this error in the console: Uncaught ReferenceError: CookiesEuBanner is not defined at index.html:35

The JS file in my case was loaded from a cdn and it did load the JS (https://cdn.shopify.com/s/files/1/2252/6495/t/1/assets/cookies-eu-banner.js?11990101471996168049) but still it says not defined.

With my limited JS Skills i now reach out to you - you can see it in action here https://www.soundpost.com - if you check the source code and search for "Alex D" you should see my implementation is correct.

Help would be really appreciated.

Cheers

suttree commented 6 years ago

I'm not sure if this is the same issue, but you could try an older version (1.2.8) to get the dist folder - https://github.com/Alex-D/Cookies-EU-banner/issues/24

mrpacman101 commented 6 years ago

gosh the timing of the JS loading was wrong ... now it loads the script and all is good - very nice script and light, thanks 👍