~/talk

Shrink an elephant into a fly

TalkinRussianat JavaScript fwdays'19 · on Saturday, 2019-03-16· [frontend-architecture]
slides:none on file

A concrete workflow for drastically reducing image payloads on a real site — from 6 MB to 315 KB — by re-exporting images to appropriate formats, optimizing with Squoosh and SVGO, and replacing GIFs by converting them to MP4 with ffmpeg or using video/webp. Graphics are rebuilt programmatically using canvas and the CSS Paint API, served with picture/img, rel=preload and img.decode(), resulting in much faster page loads and cooler-running animations.

AI-written summary · about

  1. 0:00Introduction
  2. 3:13Web graphics problems
  3. 6:27Content vs interface
  4. 8:58Image formats overview
  5. 12:51GIF outdated
  6. 14:18GIF to video
  7. 17:32Graphics in editors
  8. 19:20CSS and Canvas
  9. 21:06CSS Paint API
  10. 23:12Exporting graphics
  11. 26:00Optimization tools
  12. 28:30Raster optimization
  13. 30:36Squoosh compression
  14. 32:02Inserting graphics
  15. 33:31Content images with img
  16. 35:39Background images
  17. 37:48Inline graphics pitfalls
  18. 39:14Caching graphics
  19. 40:37Image loading priorities
  20. 42:02New image APIs
  21. 43:06Further learning
~/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.