One Main Thread Sharing JS, Input & Paint
Every browser tab runs user clicks, JavaScript execution, Promise microtasks, and frame painting on **one single Main Thread**. After each task completes, the loop drains all microtasks before checking if it is time to paint.
idea:Click Play Ticks or Step Forward on the stage to watch Sync → Microtasks → rAF Paint → Macrotask execute in exact browser spec order.