~/talk

Lazy Loading Web Applications

Talkat AngularNL 2020 · on Friday, 2020-07-24· [angular, frontend-architecture]
slides:none on file

Demonstrates how Angular actually lazy loads a component at runtime: a button triggers an async import that returns a component, then ViewContainerRef plus ComponentFactoryResolver injects it into the page; the StackBlitz demo loads and displays “I am a lazy component” so the approach works. Explains difference from route-based chunks, shows creating an inline NgModule to get CommonModule pipes, and mentions custom preload strategies and Angular 9+ support for lazy-loaded components.

AI-written summary · about

  1. 0:00Start
  2. 0:05How Lazy Is Your Component
  3. 2:51Let's Talk About Lazy Loading
  4. 6:13Single Page Application Architecture
  5. 9:53The Problem?
  6. 11:59Angular Lazy Loading
  7. 12:44Uses Javascript import Syntax
  8. 13:16Allows for a custom strategy for lazy loading
  9. 17:56Angular Component Lazy Loading
  10. 26:05When To Use Lazy Loaded Components?
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.