~/talk

Improving Startup Performance with Lazy Loading in Angular

Talkat NG-NL 2017 · on Thursday, 2017-03-16· [angular, web-performance]
slides:none on file

Shows that switching routes to loadChildren with 'path#Module' and using Webpack/CLI code-splitting cuts the initial bundle and makes the flight-booking demo load feature chunks on demand (observed ~1–2 second fetch delay when navigating). Demonstrates built-in preloadAllModules and a custom strategy that delays preloading by seven seconds to hide that delay. Reveals duplicate-service bugs from lazy-loaded injectors and fixes them with a CoreModule imported only in AppModule or a shared module exposing services via the forRoot pattern; the fixes work in the demo.

AI-written summary · about

  1. 0:00Introduction to lazy loading
  2. 1:34Configuring lazy loading
  3. 5:06Lazy loading demonstration
  4. 9:21Implementing pre-loading
  5. 15:37Custom pre-loading strategies
  6. 20:51Shared module issues
  7. 28:31The forRoot pattern
~/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.