console.log("start");
requestAnimationFrame(function () {
console.log("Animation Frames Run");
});
setTimeout(() => {
console.log("Task Run");
}, 0);
new Promise((resolve) => {
console.log("promise run");
resolve();
})
.then(() => {
console.log("Microtask1 run");
})
console.log("end");
console.log("start");
requestAnimationFrame(function () {
console.log("Animation Frames Run");
});
setTimeout(() => {
console.log("Task Run");
}, 0);
new Promise((resolve) => {
console.log("promise run");
resolve();
})
.then(() => {
console.log("Microtask1 run");
})
console.log("end");
console.log("start");
requestAnimationFrame(function () {
console.log("Animation Frames Run");
});
setTimeout(() => {
console.log("Task Run");
}, 0);
new Promise((resolve) => {
console.log("promise run");
resolve();
})
.then(() => {
console.log("Microtask1 run");
})
console.log("end");
console.log("start");
requestAnimationFrame(function () {
console.log("Animation Frames Run");
});
setTimeout(() => {
console.log("Task Run");
}, 0);
new Promise((resolve) => {
console.log("promise run");
resolve();
})
.then(() => {
console.log("Microtask1 run");
})
console.log("end");
console.log("start");
requestAnimationFrame(function () {
console.log("Animation Frames Run");
});
setTimeout(() => {
console.log("Task Run");
}, 0);
new Promise((resolve) => {
console.log("promise run");
resolve();
})
.then(() => {
console.log("Microtask1 run");
})
console.log("end");
console.log("start");
requestAnimationFrame(function () {
console.log("Animation Frames Run");
});
setTimeout(() => {
console.log("Task Run");
}, 0);
new Promise((resolve) => {
console.log("promise run");
resolve();
})
.then(() => {
console.log("Microtask1 run");
})
console.log("end");
console.log("start");
requestAnimationFrame(function () {
console.log("Animation Frames Run");
});
setTimeout(() => {
console.log("Task Run");
}, 0);
new Promise((resolve) => {
console.log("promise run");
resolve();
})
.then(() => {
console.log("Microtask1 run");
})
console.log("end");
console.log("start");
requestAnimationFrame(function () {
console.log("Animation Frames Run");
});
setTimeout(() => {
console.log("Task Run");
}, 0);
new Promise((resolve) => {
console.log("promise run");
resolve();
})
.then(() => {
console.log("Microtask1 run");
})
console.log("end");
console.log("start");
requestAnimationFrame(function () {
console.log("Animation Frames Run");
});
setTimeout(() => {
console.log("Task Run");
}, 0);
new Promise((resolve) => {
console.log("promise run");
resolve();
})
.then(() => {
console.log("Microtask1 run");
})
console.log("end");