-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Labels
Description
Current implementation use setTimeouts, there is a faster version from MDN
`typeof queueMicrotask !== 'function' && (queueMicrotask = function (callback) {
Promise.resolve()
.then(callback) }
)`
https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/queueMicrotask
Its also possible to implement
0ms setTimeout via https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage