diff --git a/src/overrides/blog.html b/src/overrides/blog.html index 4f6833e2b..c57dfdba7 100644 --- a/src/overrides/blog.html +++ b/src/overrides/blog.html @@ -53,7 +53,7 @@ giscus.setAttribute("data-theme", "dark") } - /* Reload on palette change */ + /* Register event handlers after documented loaded */ document.addEventListener("DOMContentLoaded", function() { var ref = document.querySelector("[data-md-component=palette]") component$.subscribe(function (component) { diff --git a/src/partials/integrations/analytics/google.html b/src/partials/integrations/analytics/google.html index 26a051f47..061c35b1b 100644 --- a/src/partials/integrations/analytics/google.html +++ b/src/partials/integrations/analytics/google.html @@ -35,7 +35,7 @@ gtag("js", new Date()) gtag("config", "{{ property }}") - /* Register virtual event handlers */ + /* Register event handlers after documented loaded */ document.addEventListener("DOMContentLoaded", function() { if (document.forms.search) { var query = document.forms.search.query @@ -70,7 +70,7 @@ ga("set", "anonymizeIp", true) ga("send", "pageview") - /* Register virtual event handlers */ + /* Register event handlers after documented loaded */ document.addEventListener("DOMContentLoaded", function() { if (document.forms.search) { var query = document.forms.search.query