NG.VIII · Angular 22 practice question

An engineering team is evaluating why removing ZoneJS improves runtime performance. Why does ZoneJS trigger application synchronization more often than needed?

Choose one answer
Check answer and explanation

Correct answer: Because ZoneJS cannot tell whether application state actually changed when DOM events or async tasks occur

Explanation

ZoneJS relies on DOM events and async tasks as guesses that state might have changed, lacking insight into whether application state actually updated and therefore triggering synchronization too frequently.

Common trap

Assuming ZoneJS uses a 16ms polling loop confuses event-driven monkey-patching with frame-based polling; ZoneJS reacts to DOM events and async tasks instead. ZoneJS does not disable OnPush, though it still triggers application-level synchronization cycles whenever patched async tasks complete.

Source: Angular docs: Angular without ZoneJS (Zoneless) — Why use Zoneless?
Checked against the cited text on 2026-11-25.

Report an error in this question