diff options
author | jeffreytse <jeffreytse.mail@gmail.com> | 2021-06-28 18:41:08 +0800 |
---|---|---|
committer | jeffreytse <jeffreytse.mail@gmail.com> | 2021-06-28 18:41:08 +0800 |
commit | 735c2ad48be93582457395aa172f9951dadff37e (patch) | |
tree | fe4ff6cb1061bbb577ee0eefc1b8d9ff0c6abc0d /_includes/extensions | |
parent | 78f2d77170a95ac420c8906bdb6659bf2487b7e2 (diff) |
perf: postpone loading google-analytics script
Diffstat (limited to '_includes/extensions')
-rw-r--r-- | _includes/extensions/google-analytics.html | 2 |
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> |