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 04:37:17 +08:00
parent 0a55e1297b
commit e9c920641b
No known key found for this signature in database
GPG Key ID: 0D9E54843167A808
1 changed files with 1 additions and 0 deletions

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: ''
};