Skip to content

Conversation

@joshlk
Copy link

@joshlk joshlk commented Dec 3, 2025

Type of change

  • New feature (non-breaking change which adds functionality)

Description

Add a config option for Giscus comments, which allows you to set the iframe data-loading. Currently, it's hard-coded for lazy loading, but this will enable you to set it to load eagerly when the page loads. I personally don't think it's a good user experience for the user to wait for the comments to load once they scroll to the bottom of the page. The default has been kept as lazy loading.

@joshlk joshlk changed the title feat(giscus): allow giscus data-loading to be eager (not lazy)) feat(giscus): allow giscus data-loading to be eager (not lazy) Dec 3, 2025
Copy link
Owner

@cotes2020 cotes2020 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

data-loading='eager' is the default behavior, so there's no need to set it manually. Using a site.comments.giscus.lazy_loading: true option would be more intuitive and concise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants