Defer Blocks
Two @defer blocks: one renders when you tap a button, and one renders after three seconds.
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.@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.
