web-feature: queueMicrotask()

baseline logo Widely available

The queueMicrotask() method schedules a function to run after the currently running synchronous JavaScript finishes but before returning to the event loop.