would raf/polyfill be suitable here instead? raf/polyfill is already indirectly a dependency from main-loop.