perf(comments): lazy load giscus (#1254)

Enable the `giscus` lazy loading option to improve web performance.
This commit is contained in:
Cotes Chung
2023-09-20 05:48:14 +08:00
parent 0a55e1297b
commit e9c920641b
+1
View File
@@ -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: ''
};