perf(auth): remove resource-heavy animated backgrounds on sign-in page - #1978
Open
trim21 wants to merge 1 commit into
Open
perf(auth): remove resource-heavy animated backgrounds on sign-in page#1978trim21 wants to merge 1 commit into
trim21 wants to merge 1 commit into
Conversation
Replace 60fps Canvas particle animation (O(n^2) ~7200 line draws/frame), 80 DOM floating particles with box-shadow, and SVG data-flow animations with a static CSS gradient background. This resolves browser freezing on the sign-in / initialization pages caused by stacking multiple layers of continuous animations.
Contributor
Author
Contributor
Greptile SummaryThis PR simplifies the auth pages by replacing continuous animated backgrounds with static styling. The main changes are:
Confidence Score: 5/5The changed auth flow looks safe to merge after a small visual cleanup.
frontend/src/features/auth/sign-in/index.tsx Important Files Changed
Reviews (1): Last reviewed commit: "perf(auth): remove resource-heavy animat..." | Re-trigger Greptile |
Owner
|
这个页面也会一直停留吧。 |
Contributor
Author
|
就是只剩这个动画了,不再有背景的3d粒子效果了 screen_recording_2026-07-09_18-18-08.mp4 |
Contributor
Author
能考虑一下这个嘛 |
Owner
|
没看出来有什么很大必要性。能不能优化性能解决? |
Contributor
Author
我个人觉得登录界面这个粒子效果就没什么必要性... |
Contributor
Author
|
首页这个数据流的动画还是在的,现在的注册/登录页面也不是完全静态的 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Problem
The sign-in page causes browser freezing/lagging due to three layers of simultaneous continuous animations:
Solution
Replace all continuous animations with static CSS gradients:
AutoRouterDiagram SVG animations are kept — GPU-compositable only, negligible overhead.
Changes