NG.IX · Angular 22 practice question

A developer wants a non-critical sidebar in a @defer block to hydrate once the browser has spare cycles, while still guaranteeing hydration happens if the main thread stays busy. Which statement accurately describes hydrate on idle?

Choose one answer
Check answer and explanation

Correct answer: It triggers hydration when the browser is idle and supports an optional timeout.

Explanation

The hydrate on idle trigger starts hydration when the browser becomes idle and supports an optional timeout so hydration does not wait indefinitely.

Common trap

Hydrating on a user click describes an interaction-based trigger rather than hydrate on idle, and hydrate on idle does accept an optional timeout. Hydrating when scrolled into view describes a viewport trigger rather than idle, and the timeout on hydrate on idle is optional rather than mandatory.

Source: Angular docs: Incremental Hydration — `hydrate on`
Checked against the cited text on 2026-11-25.

Report an error in this question