From e9c920641b9c97594fa078ea89747d77eb7e7493 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Wed, 20 Sep 2023 04:37:17 +0800 Subject: [PATCH] perf(comments): lazy load `giscus` (#1254) Enable the `giscus` lazy loading option to improve web performance. --- _includes/comments/giscus.html | 1 + 1 file changed, 1 insertion(+) diff --git a/_includes/comments/giscus.html b/_includes/comments/giscus.html index ed918a9..8f04246 100644 --- a/_includes/comments/giscus.html +++ b/_includes/comments/giscus.html @@ -30,6 +30,7 @@ 'data-theme': initTheme, 'data-input-position': '{{ site.comments.giscus.input_position | default: 'bottom' }}', 'data-lang': '{{ site.comments.giscus.lang | default: lang }}', + 'data-loading': 'lazy', crossorigin: 'anonymous', async: '' };