jakearchibald/svgomg

Revisit `setTimeout` usage/JS animations

Open

#332 opened on 2021年9月29日

GitHub で見る
 (0 comments) (0 reactions) (0 assignees)JavaScript (5,473 stars) (474 forks)batch import
enhancementhelp wanted

説明

There are known performance issues with setTimeout. IIRC requestAnimationFrame should behave better.

I notice junky settings checkboxes animation on Firefox for Android when Power Saving is enabled on the device. Not sure it's related, but it would probably be better to use rAF anyway?

EDIT: we are also using offsetLeft is ripple. Not sure if there's a better way to do the same thing nowadays.

コントリビューターガイド