backface-visibility: hidden causes animation frozen with javascript longtask
Categories
(Core :: Graphics: WebRender, defect, P2)
Tracking
()
| Performance Impact | low |
People
(Reporter: yuhao.fu1995, Unassigned)
References
Details
(Keywords: perf:animation, perf:responsiveness, reproducible)
Attachments
(1 file)
|
2.47 MB,
application/gzip
|
Details |
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36 Edg/111.0.1661.62
Steps to reproduce:
you can easily reproduce by using this demo: https://ri87sb.csb.app/. Animation of the little ball would be suspended every 6s until the javascript longtask finished.
demo code: https://codesandbox.io/s/pensive-napier-ri87sb?file=/index.html
Actual results:
animation stopped during javascript longtask
Expected results:
Running the same demo on chrome and safari won't reproduce this issue, so we want to know why and if we can have it fixed on firefox.
Updated•3 years ago
|
Comment 1•3 years ago
|
||
This bug was moved into the Performance component.
:yuhao.fu1995, could you make sure the following information is on this bug?
- For slowness or high CPU usage, capture a profile with http://profiler.firefox.com/, upload it and share the link here.
- For memory usage issues, capture a memory dump from
about:memoryand attach it to this bug. - Troubleshooting information: Go to
about:support, click "Copy raw data to clipboard", paste it into a file, save it, and attach the file here.
If the requested information is already in the bug, please confirm it is recent.
Thank you.
| Reporter | ||
Comment 2•3 years ago
|
||
add the performance profile, it's easy to see the renderer thread interupted by javasdcript.
Updated•3 years ago
|
Comment 3•3 years ago
|
||
Moving to core graphics. This is probably just creates an animation that isn't supported on the compositor.
The Performance Impact Calculator has determined this bug's performance impact to be low. If you'd like to request re-triage, you can reset the Performance Impact flag to "?" or needinfo the triage sheriff.
Platforms: [x] Windows [x] macOS [x] Linux [x] Android
Impact on site: Causes noticeable jank
Websites affected: Rare
[x] Affects animation smoothness
[x] Able to reproduce locally
Comment 4•3 years ago
|
||
The severity field is not set for this bug.
:bhood, could you have a look please?
For more information, please visit BugBot documentation.
Updated•3 years ago
|
| Comment hidden (spam) |
The CSS property backface-visibility: hidden typically doesn't directly cause animations to freeze or create long tasks in JavaScript. Instead, such issues are usually related to performance and JavaScript optimization. To address animation freezing, ensure efficient JavaScript code, avoid long tasks, utilize hardware acceleration for animations, and minimize complex transformations. Testing in different browsers and reducing layout and paint operations can also help improve overall performance and maintain smooth animations.
Solution Credit : https://escortcallgirlservice.com/
Comment 9•2 years ago
|
||
(In reply to Rohini from comment #8)
The CSS property backface-visibility: hidden typically doesn't directly cause animations to freeze or create long tasks in JavaScript. Instead, such issues are usually related to performance and JavaScript optimization. To address animation freezing, ensure efficient JavaScript code, avoid long tasks, utilize hardware acceleration for animations, and minimize complex transformations. Testing in different browsers and reducing layout and paint operations can also help improve overall performance and maintain smooth animations.x
Solution Credit : https://escortcallgirlservice.com/
Comment 10•2 years ago
|
||
When it comes to creating smooth animations on the web, optimizing both JavaScript and CSS is crucial. While the CSS property backface-visibility: hidden itself doesn't directly cause animation freezing or long tasks in JavaScript, it's essential to focus on performance and JavaScript optimization. To prevent animation freezing, it is important to write efficient JavaScript code, avoid lengthy tasks, and take advantage of hardware acceleration for animations. Additionally, reducing layout and paint operations, testing in different browsers, and minimizing complex transformations can significantly improve overall performance and ensure that animations remain fluid and seamless.
Solution Credit : <a href="https://callgirlescort.in/" rel="nofollow">Call Girls In Rishikesh</a>
Updated•2 years ago
|
Description
•