jakearchibald/svgomg

Revisit `setTimeout` usage/JS animations

オープン

#332 opened on 2021/09/29

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)JavaScript (526 件のフォーク)batch import
enhancementhelp wanted

Repository metrics

Stars
 (6,191 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

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.

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