VNik Thanks for your detailed reply! Look forward to your upcoming articles about those topics like thisReply·Article·Apr 28, 2023·Browser Event loop: micro and macro tasks, call stack, render queue: layout, paint, composite
VThanks for this comprehensive article! Can I ask a question? If we mutate and read the DOM separately twice like your example, does it pause the task and run the layout step before give the result back?Comment·Article·Apr 24, 2023·Browser Event loop: micro and macro tasks, call stack, render queue: layout, paint, composite