Q-img high Recalc per sec when the image hasn't been in the viewport #17151
Labels
area/components
bug/0-needs-info
Need more info to reproduce
flavour/vite-plugin
Bugs related to Vite usage with Quasar
kind/bug 🐞
Qv2 🔝
Quasar v2 issues
What happened?
I noticed high CPU usage while doing nothing in the browser.
After some research I figured out that there are a lot of "Style recalcs / sec" being invoked by the browser.
I could locate it to the quasar img (q-img) when the image hasn't been in the viewport it probably is showing an q-spin that recalcs the page due to it's animation.
What did you expect to happen?
"Style recalcs / sec" being 0 when the Q-img is not in the viewport
Reproduction URL
https://codepen.io/yellowq/pen/NWmVPQg
How to reproduce?
You can very easily reproduce this on the documentation website of Quasar itself.
Flavour
Vite Plugin (@quasar/vite-plugin)
Areas
Components (quasar)
Platforms/Browsers
Chrome
Quasar info output
Relevant log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: