-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
Preloader CSS animation on Lazy module causing heavy CPU usage #5202
Labels
Comments
Possibility related to this old issue #1451 |
aynzad
added a commit
to aynzad/swiper
that referenced
this issue
Nov 16, 2021
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Swiper v9 doesn't lazy module anymore. If you have similar issues in Swiper 9, open a new issue with a CodeSandbox showing the issue. |
Repository owner
locked and limited conversation to collaborators
Feb 1, 2023
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Check that this is really a bug
Reproduction link
https://swiper-lazy-load-images-react-heavy-cpu-usage.vercel.app/
https://github.com/aynzad/swiper-lazy-load-images-react-heavy-cpu-usage
Bug description
When Swiper with Lazy Images module is used, CPU usage is always high on the page even when there is no activity.
There will be a major issue when a page contains a lot of sliders using Swiper with lazy images that are using a lot of CPU power (in Chrome's Task Manager) and
Style recalcs / sec
, even when there is no activity.Expected Behavior
On basic usage like pagination and scrolling, CPU usage and
Style recalcs / sec
should not be noticeable heavy.On idle (no activity) there should be minimum CPU usage with zero
Style recalcs / sec
Actual Behavior
On basic usage like pagination and scrolling, CPU usage and
Style recalcs / sec
are noticeable heavy.On idle (no activity) there is heavy CPU usage with continuously changing
Style recalcs / sec
Swiper version
7.2.0
Platform/Target and Browser Versions
macOS 12.0.1, Chrome 92.0.45, Safari 15.1
Validations
Would you like to open a PR for this bug?
The text was updated successfully, but these errors were encountered: