~/talk

Image Optimization Best Practices with Angular

Talkat NG Poland 2022 · on Tuesday, 2022-10-25· [angular, web-performance]
slides:none on file

Angular's NG Optimized Image directive (ngSrc) ships in 14.2 preview and targets LCP; real-site lab tests show Lands' End saw ~40% median LCP improvement on mobile and ~75% on desktop. Demo converts img to ngSrc, adds priority (loading=eager + fetchpriority), inserts preconnect, uses provideImagexLoader to get AVIF, and adds sizes/srcset; WebPageTest runs drop median LCP from 7.8s to 2.2s. The talk shows exact console warnings, the waterfall changes, and the specific code and providers to implement each fix.

AI-written summary · about

  1. 0:00Intro
  2. 0:50Why Angular
  3. 1:25LCP
  4. 2:12Image Directive
  5. 4:46Example App
  6. 12:04Performance Profiling
  7. 13:07Waterfalls
  8. 16:16Lazy Loading
  9. 17:08Loading Attribute
  10. 20:23Responsive Images
~/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.