event loop
JS in Prod notes about event loop
Why a Cached Callback and Its Promise Follow-Up Run Before a Timer
A browser cache-hit callback can defer its notification, then schedule a promise handler and one more microtask. Follow that chain to see why the timer waits.

