pinafore/routes/_utils/doubleRAF.js
2018-03-29 23:16:53 -07:00

4 lines
92 B
JavaScript

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