queueMicrotask()
The queueMicrotask()
method schedules a function to run after the currently running synchronous JavaScript finishes but before returning to the event loop.
Status
Baseline Widely Available (since 2023-01-28)
MDN documentation
Specifications
- HTML (#microtask-queuing), from HTML Workstream (WHATWG).
Browser support
- Chrome 71 Released on 2018-12-04
- Chrome Android 71 Released on 2018-12-04
- Edge 79 Released on 2020-01-15
- Firefox 69 Released on 2019-09-03
- Firefox for Android 79 Released on 2020-07-28
- Safari 12.1 Released on 2019-03-25
- Safari on iOS 12.2 Released on 2019-03-25
View as JSON | Edit this feature | Report an issue | Web-features entry: source, dist