Defer Blocks
Six @defer blocks, one for each kind of trigger.
What it shows
@defer (when visible())— renders<app-heavy>once the signal turnstrue. See@defer.@defer (on timer(3000ms))— renders it after a delay, with no user action.@defer (on idle(500ms))— renders it once the app has a moment to spare, or after 500 ms if it stays busy that long. The timeout is new in Angular 22. On a device it renders on the next turn of the event loop instead (Triggers).@defer (on interaction)— renders it when you tap the placeholder.@defer (on hover)— renders it when a finger touches the placeholder, or, in the web preview, when the mouse moves over it.@defer (on viewport)— renders it when you scroll the placeholder on screen.@placeholderand@loading— show content before the trigger fires and while the block loads.- The main bundle by default — the deferred component still ships in your main bundle (Glossary) unless you turn on the
experimental_isLazyBundleplugin option. See@blotch/angular-lynx-build.
