From e1dedb6f6274787aa204290481c5d94db5e66ae2 Mon Sep 17 00:00:00 2001 From: sunface Date: Fri, 25 Mar 2022 11:48:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AF=BC=E8=88=AA=E5=9B=BE?= =?UTF-8?q?=E6=A0=87=E8=A2=AB=E7=AB=A0=E8=8A=82=E7=9B=AE=E5=BD=95=E9=81=AE?= =?UTF-8?q?=E7=9B=96=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/custom.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/custom.js b/assets/custom.js index 10d5422e..2c773238 100644 --- a/assets/custom.js +++ b/assets/custom.js @@ -112,7 +112,8 @@ var initAll = function () { script.setAttribute("data-input-position", "top"); script.setAttribute("data-theme", theme); script.setAttribute("data-lang", lang); - script.setAttribute("data-loading", "lazy"); + // 预先加载评论会更好,这样用户读到那边时,评论就加载好了 + // script.setAttribute("data-loading", "lazy"); document.getElementById("giscus-container").appendChild(script); };