perf: postpone loading google-analytics script

This commit is contained in:
jeffreytse 2021-06-28 18:41:08 +08:00
parent 78f2d77170
commit 735c2ad48b

View file

@ -14,6 +14,6 @@
ga('send', 'pageview');
}
}
initGoogleAnalytics();
window.addEventListener("load", initGoogleAnalytics);
</script>