|
19 | 19 | })(window,document,'script','dataLayer','GTM-PKK35GL5'); |
20 | 20 | </script> |
21 | 21 | <!-- End Google Tag Manager --> |
22 | | - |
23 | | - <!-- Cookie Consent by FreePrivacyPolicy.com https://www.FreePrivacyPolicy.com --> |
24 | | - <script type="text/javascript" src="//www.freeprivacypolicy.com/public/cookie-consent/4.1.0/cookie-consent.js" charset="UTF-8"></script> |
25 | 22 | </head> |
26 | 23 |
|
27 | 24 | <body> |
@@ -219,19 +216,22 @@ <h2>Newsletter Signup</h2> |
219 | 216 | <script type="text/javascript" src="/js/main.js"></script> |
220 | 217 | <script type="text/javascript" src="/js/products.js"></script> |
221 | 218 |
|
| 219 | + <script type="text/javascript" src="//www.freeprivacypolicy.com/public/cookie-consent/4.1.0/cookie-consent.js" charset="UTF-8" async defer></script> |
222 | 220 | <script type="text/javascript" charset="UTF-8"> |
223 | | - document.addEventListener('DOMContentLoaded', function() { |
224 | | - cookieconsent.run({ |
225 | | - "notice_banner_type": "simple", |
226 | | - "consent_type": "express", |
227 | | - "palette": "light", |
228 | | - "language": "en", |
229 | | - "page_load_consent_levels": ["strictly-necessary"], |
230 | | - "notice_banner_reject_button_hide": false, |
231 | | - "preferences_center_close_button_hide": false, |
232 | | - "page_refresh_confirmation_buttons": false, |
233 | | - "website_name": "Performance Course" |
234 | | - }); |
| 221 | + window.addEventListener('load', function() { |
| 222 | + if (typeof cookieconsent !== 'undefined') { |
| 223 | + cookieconsent.run({ |
| 224 | + "notice_banner_type": "simple", |
| 225 | + "consent_type": "express", |
| 226 | + "palette": "light", |
| 227 | + "language": "en", |
| 228 | + "page_load_consent_levels": ["strictly-necessary"], |
| 229 | + "notice_banner_reject_button_hide": false, |
| 230 | + "preferences_center_close_button_hide": false, |
| 231 | + "page_refresh_confirmation_buttons": false, |
| 232 | + "website_name": "Performance Course" |
| 233 | + }); |
| 234 | + } |
235 | 235 | }); |
236 | 236 | </script> |
237 | 237 |
|
|
0 commit comments