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

Skip to content

simple dynamic load of giscus #12657

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

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 is the v1.7 backport of #12659

@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)

generate script tag based on user preference at page load
no need for any mutation observers, because class is already set
@gordonwoodhull gordonwoodhull force-pushed the bugfix/load-giscus-generate-script-tag-simple-1.7 branch from fb79ed1 to e0d0702 Compare May 1, 2025 19:53
@gordonwoodhull gordonwoodhull marked this pull request as ready for review May 1, 2025 19:58
@gordonwoodhull gordonwoodhull merged commit 027acbf into v1.7 May 1, 2025
44 checks passed
@gordonwoodhull gordonwoodhull deleted the bugfix/load-giscus-generate-script-tag-simple-1.7 branch May 1, 2025 22:09
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