---
title: "Comment by Zhenyu on \"Browser Event loop: micro and macro tasks, call stack, render queue: layout, paint, composite\" | Hashnode"
description: "Thanks for this great article! Can I ask a question? if TaskQueue only has TaskA takes 4ms, TaskA call setTimeout(FuncA, 0), next step is RenderQueue or FuncA?"
url: "https://hashnode.com/posts/event-loop-and-render-queue/640dda1fbcc5b29f3eeaf226/comment/649eae262a0936ab01ee2424"
---

[Discussion](https://hashnode.com/posts/event-loop-and-render-queue/640dda1fbcc5b29f3eeaf226)

Comment [Browser Event loop: micro and macro tasks, call stack, render queue: layout, paint, composite](https://hashnode.com/posts/event-loop-and-render-queue/640dda1fbcc5b29f3eeaf226)

[Zhenyu](https://hashnode.com/@joy598)

[Jun 30, 2023](https://hashnode.com/posts/event-loop-and-render-queue/640dda1fbcc5b29f3eeaf226/comment/649eae262a0936ab01ee2424)

Thanks for this great article! Can I ask a question? if TaskQueue only has TaskA takes 4ms, TaskA call setTimeout(FuncA, 0), next step is RenderQueue or FuncA?

[Nik](https://hashnode.com/@xnim)

[Jan 29, 2024](https://hashnode.com/posts/event-loop-and-render-queue/640dda1fbcc5b29f3eeaf226/comment/649eae262a0936ab01ee2424#reply-65b8218dd3c9bd8cdf6afe3d)

The correct answer is that behaviour is not determined. (as we should know when render happens the last time).

e.g. if the render happens right before TaskA, then there is a high probability, that FuncA will be executed before.
