summaryrefslogtreecommitdiff
path: root/_includes/extensions/google-analytics.html
diff options
context:
space:
mode:
authorjeffreytse <jeffreytse.mail@gmail.com>2021-06-28 18:41:08 +0800
committerjeffreytse <jeffreytse.mail@gmail.com>2021-06-28 18:41:08 +0800
commit735c2ad48be93582457395aa172f9951dadff37e (patch)
treefe4ff6cb1061bbb577ee0eefc1b8d9ff0c6abc0d /_includes/extensions/google-analytics.html
parent78f2d77170a95ac420c8906bdb6659bf2487b7e2 (diff)
perf: postpone loading google-analytics script
Diffstat (limited to '_includes/extensions/google-analytics.html')
-rw-r--r--_includes/extensions/google-analytics.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/_includes/extensions/google-analytics.html b/_includes/extensions/google-analytics.html
index a73c860..a3b6d85 100644
--- a/_includes/extensions/google-analytics.html
+++ b/_includes/extensions/google-analytics.html
@@ -14,6 +14,6 @@
ga('send', 'pageview');
}
}
- initGoogleAnalytics();
+ window.addEventListener("load", initGoogleAnalytics);
</script>