Skip to content

[hitokoto]: add refresh on loop option - #621

Merged
evannotfound merged 1 commit into
devfrom
feat/hitokoto-refresh-on-loop-604
Aug 5, 2026
Merged

[hitokoto]: add refresh on loop option#621
evannotfound merged 1 commit into
devfrom
feat/hitokoto-refresh-on-loop-604

Conversation

@evnluo

@evnluo evnluo commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator

Fixes #604

Summary

  • add home_banner.subtitle.hitokoto.refresh_on_loop, defaulting to false
  • when enabled with home_banner.subtitle.loop, prefetch the next quote while the current quote is visible
  • swap quotes after the current quote is erased and keep the current quote when a refresh fails

Verification

  • npm run build
  • focused Node harness covering initial fetch, successful prefetch/swap, and failed-refresh fallback
  • node --check source/js/plugins/typed.js
  • git diff --check

Generated assets were restored and are not included in the PR.

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown

@evannotfound
evannotfound merged commit a184781 into dev Aug 5, 2026
2 checks passed
@evannotfound
evannotfound deleted the feat/hitokoto-refresh-on-loop-604 branch August 5, 2026 21:22
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