Skip to content
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

fix: ensure pageviews are fetched after DOM is loaded #2071

Merged
merged 1 commit into from
Nov 30, 2024

Conversation

kungfux
Copy link
Collaborator

@kungfux kungfux commented Nov 29, 2024

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Description

The pageviews script is loaded inside the <head> and is therefore executed too early, causing pageviews to display an infinite spinner. In Chirpy 7.1.1 the script was loaded at the end of the <body>.

image

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.

Nice fix, the pageview part was missing when I changed the JS at v7.2.0

@kungfux kungfux merged commit b4019f3 into cotes2020:master Nov 30, 2024
6 checks passed
@kungfux kungfux deleted the fix/pageviews branch November 30, 2024 20:07
github-actions bot pushed a commit that referenced this pull request Dec 5, 2024
## [7.2.1](v7.2.0...v7.2.1) (2024-12-05)

### Bug Fixes

* **build:** exclude `purgecss.js` from output files ([#2090](#2090)) ([976e1a1](976e1a1))
* correct the import condition for theme script ([#2075](#2075)) ([a16aa7d](a16aa7d))
* ensure pageviews are fetched after DOM is loaded ([#2071](#2071)) ([b4019f3](b4019f3))
* **toc:** resume fade up animation in desktop mode ([#2085](#2085)) ([8280adb](8280adb))
Copy link

github-actions bot commented Dec 5, 2024

🎉 This PR is included in version 7.2.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions bot added the released Included or resolved in the release label Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released Included or resolved in the release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants