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

View file

@ -30,6 +30,7 @@
'data-theme': initTheme, 'data-theme': initTheme,
'data-input-position': '{{ site.comments.giscus.input_position | default: 'bottom' }}', 'data-input-position': '{{ site.comments.giscus.input_position | default: 'bottom' }}',
'data-lang': '{{ site.comments.giscus.lang | default: lang }}', 'data-lang': '{{ site.comments.giscus.lang | default: lang }}',
'data-loading': 'lazy',
crossorigin: 'anonymous', crossorigin: 'anonymous',
async: '' async: ''
}; };