Skip to content

Commit 590275c

Browse files
committed
perf: 렌더링 차단 리소스 최적화
1 parent 6437476 commit 590275c

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

index.html

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@
1919
})(window,document,'script','dataLayer','GTM-PKK35GL5');
2020
</script>
2121
<!-- 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>
2522
</head>
2623

2724
<body>
@@ -219,19 +216,22 @@ <h2>Newsletter Signup</h2>
219216
<script type="text/javascript" src="/js/main.js"></script>
220217
<script type="text/javascript" src="/js/products.js"></script>
221218

219+
<script type="text/javascript" src="//www.freeprivacypolicy.com/public/cookie-consent/4.1.0/cookie-consent.js" charset="UTF-8" async defer></script>
222220
<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+
}
235235
});
236236
</script>
237237

0 commit comments

Comments
 (0)