Skip to content

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.

4 participants