diff --git a/_config.yml b/_config.yml index 9b9e2b27bbd..b25ef67a119 100644 --- a/_config.yml +++ b/_config.yml @@ -129,6 +129,7 @@ comments: input_position: # optional, default to 'bottom' lang: # optional, default to the value of `site.lang` reactions_enabled: # optional, default to the value of `1` + data_loading: # optional, default to 'lazy'. Set to 'eager' to load giscus immediately with page. # Self-hosted static assets, optional › https://github.com/cotes2020/chirpy-static-assets assets: diff --git a/_includes/comments/giscus.html b/_includes/comments/giscus.html index 8058472028f..17f55c4d4fe 100644 --- a/_includes/comments/giscus.html +++ b/_includes/comments/giscus.html @@ -23,7 +23,7 @@ 'data-theme': initTheme, 'data-input-position': '{{ site.comments.giscus.input_position | default: 'bottom' }}', 'data-lang': lang, - 'data-loading': 'lazy', + 'data-loading': '{{ site.comments.giscus.data_loading | default: 'lazy' }}', crossorigin: 'anonymous', async: '' };