~/talk

A Guide to Instant Loading Angular Apps

Talkat JSHeroes 2018 · on Wednesday, 2018-04-11· [angular, web-performance]

Claim: first-render times commonly hit ~16 seconds and vendor bundles balloon to 3–5 MB; compile cost alone can be ~2.5s per 1 MB on slow phones. Practical fixes shown: AOT and build optimizer and webpack updates yield ~10–20% savings, lazy loading cuts a login page from ~5 MB to ~200 KB, analyzing with webpack bundle analyzer or source-map-explorer exposes 300 KB offenders (rxjs, moment), Ivy promises 35 KB → 3.7 KB for tiny apps, and service workers and server-side rendering make perceived loads instant.

AI-written summary · about

  1. 0:00Intro
  2. 0:15A Guide to Instant Loading Angular Apps
  3. 2:13How long does it take for an average SPA to load?
  4. 4:29Preparing the bundle for best load times
  5. 5:03Staying up to date is the easiest way to gain performance.
  6. 6:03Whats helps with bundle size in Angular v6?
  7. 7:01AOT pre-compiles your app for a faster boot and smaller bundle
  8. 7:542.1 Build Optimizer helps further reduce the size of your bundle
  9. 8:402.2 Use ng eject to customize your webpack config (for custom builds)
  10. 9:55Lazy Loading helps break your app into smaller bundles
  11. 11:14Analyze your bundles to strip out code you are not using.
  12. 14:11Service workers are awesome at caching your build
  13. 15:22A different approach, Angular Universal can improve perceived responsiveness
  14. 16:05Prevention is better than cure: Performance Budgets
~/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.