Thanks to visit codestin.com
Credit goes to github.com

Skip to content

simple dynamic load of giscus #12659

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 1, 2025

Conversation

gordonwoodhull
Copy link
Contributor

@gordonwoodhull gordonwoodhull commented May 1, 2025

Solves wrong-theming of Giscus in Chrome when Giscus is scrolled off-screen.

Generate script tag based on user preference at page load.
No need for mutation observer because class is already set.

This PR is for 1.8, 1.7 backport is #12657

generate script tag based on user preference at page load
no need for mutation observer because class is already set
@posit-snyk-bot
Copy link
Collaborator

posit-snyk-bot commented May 1, 2025

🎉 Snyk checks have passed. No issues have been found so far.

security/snyk check is complete. No issues have been found. (View Details)

license/snyk check is complete. No issues have been found. (View Details)

@gordonwoodhull gordonwoodhull merged commit 74a48ba into main May 1, 2025
49 checks passed
@gordonwoodhull gordonwoodhull deleted the bugfix/load-giscus-generate-script-tag-simple branch May 1, 2025 22:10
@cderv
Copy link
Collaborator

cderv commented May 2, 2025

Really cool! This is the logic I had in mind, I think. Awesome. Thank you Gordon !

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.

3 participants