Skip to content

Conversation

@JoeyC-Dev
Copy link
Contributor

Type of change

  • Bug fix (a non-breaking change that fixes an issue)
  • New feature (a non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Other (please describe):

Checklist

  • I have read the CONTRIBUTING document.
  • I have checked to ensure that this Pull Request is not for personal changes.
  • I have performed a self-review of my own code.
  • My changes generate no new warnings.

Related Issue

Resolve: #637

  • Addresses the perceived freeze (4-5s) when navigating to long articles via swup, where the DOM replacement blocks the main thread with no visual indication of progress.

Changes

  • Add progress bar HTML element, CSS styles (loading animation, finishing, done states), and swup hook integration (visit:start, visit:end). The bar uses a CSS keyframe animation that gradually fills from 0% to 95% over 8 seconds, then snaps to 100% when the navigation completes.
  • All tunable values are extracted into CSS custom properties (--progress-height, --progress-duration, --progress-hue-start, --progress-hue-end, --progress-glow) for easy customization.

How To Test

Use 3G mode to check while switching pages.

Screenshots (if applicable)

image image

@vercel
Copy link

vercel bot commented Feb 2, 2026

@JoeyC-Dev is attempting to deploy a commit to the zephyirdgmailcom's projects Team on Vercel.

A member of the Team first needs to authorize it.

CMSZ001 pushed a commit to CMSZ001/fuwari that referenced this pull request Feb 9, 2026
在布局中添加视觉反馈进度条,提升页面切换时的用户体验。进度条在导航开始时显示彩色动画,在页面加载完成时平滑过渡并淡出。
saicaca/fuwari#728
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.

[Feature]: 添加博客内容懒加载

1 participant