Tasks, Microtasks, and the Rendering Gap
A small ordering rule explains why a resolved promise can still postpone painting and user input.
Topic
4 entries connected by this thread.
A small ordering rule explains why a resolved promise can still postpone painting and user input.
A recorded debugging session that follows one delayed click from an input event to the long task responsible for it.
JavaScript can start asynchronous work without making the single main thread magically perform two tasks at once.
A practical model for understanding why browser work feels instant until one task holds the main thread for too long.