pinafore/routes/_utils/doubleRAF.js

4 lines
92 B
JavaScript
Raw Normal View History

export function doubleRAF (fn) {
requestAnimationFrame(() => requestAnimationFrame(fn))
}