github-wc-polyfill
github-wc-polyfill copied to clipboard
Faster queueMicrotask?
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