ladybird/Libraries/LibWeb/HTML/EventLoop
Andreas Kling ad183e04d4 LibWeb: Store idle tasks separately from normal tasks
Idle callbacks are only appropriate when the event loop has no other
runnable work. TaskQueue previously stored idle tasks in the same FIFO
list as all other tasks, so an idle callback queued during an idle
period could still run ahead of later posted-message work.

Keep idle tasks in a separate queue and only select from it after all
normal runnable tasks have been considered. This keeps cleanup queued
with requestIdleCallback from racing React hydration on Shopify.
2026-05-13 20:54:10 +02:00
..
EventLoop.cpp LibWeb: Run observers after compositor-only scrolls 2026-05-13 15:00:31 +02:00
EventLoop.h LibWeb: Remove unused m_skip_event_loop_processing_steps flag 2026-04-27 20:58:54 +02:00
Task.cpp LibWeb: Remove tasks for destroyed documents when filtering on tasks 2026-03-22 14:26:50 -05:00
Task.h LibWeb: Implement makeXRCompatible() enough to work 2026-04-03 13:14:33 +02:00
TaskQueue.cpp LibWeb: Store idle tasks separately from normal tasks 2026-05-13 20:54:10 +02:00
TaskQueue.h LibWeb: Store idle tasks separately from normal tasks 2026-05-13 20:54:10 +02:00