queueMicrotask()
Term side of the Card
Topic: Scheduling Tasks
Unit title: queueMicrotask()
Categories: Method
Explanation side of the Card
Explanation: The browser API method that schedules a microtask to be executed after the currently executing script has completed and before the next task or re-render occurs. This is useful for ensuring that code runs asynchronously but still as soon as possible.
Browser compatibility:
- The chrome browser supports this feature starting from version 71
- The edge browser supports this feature starting from version 79
- The firefox browser supports this feature starting from version 69
- The safari browser supports this feature starting from version 12.1
Availability: