From 735c2ad48be93582457395aa172f9951dadff37e Mon Sep 17 00:00:00 2001 From: jeffreytse Date: Mon, 28 Jun 2021 18:41:08 +0800 Subject: perf: postpone loading google-analytics script --- _includes/extensions/google-analytics.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '_includes') 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); -- cgit v1.2.3