~/talk

Modern Web Apps Performance Tricks with PWA and Vue

Talkat Vue.js Amsterdam 2019 · 2019-02-14..02-15· [pwa, web-performance]
slides:none on file

Modern Vue PWA techniques: split route code with dynamic imports and webpack splitChunks, lazy-load off-screen components with v-if and dynamic import, and cache static assets via service workers using the Vue CLI PWA plugin or workbox. Measured claims include industry figures (Firefox: 2s faster → 15% more downloads; Aberdeen: 1s slower → 11% fewer pageviews; Bing: 2s → ~4% revenue loss) and a real project cutting bundle size by 60%. Tools: DevTools coverage, webpack bundle analyzer, bundle-phobia, import-cost.

AI-written summary · about

  1. 0:00Intro
  2. 0:57Why performance is important?
  3. 3:10What influences loading time performance?
  4. 3:29Parsing
  5. 4:44SPEED = MONEY
  6. 5:17How webpack bundling works?
  7. 8:03Nuxt is doing per-route code-splitting out of the box!
  8. 8:27Rule #1 - Split your code per route
  9. 8:58Load off-screen components lazily
  10. 10:00Load non-critical libraries lazily
  11. 11:08What about code duplication?
  12. 13:27Make use of cache for static assets
  13. 14:03Service Worker
  14. 14:50Vue CLI PWA plugin
  15. 15:06Nuxt PWA module
  16. 16:02Prefetch lazily loaded resources
  17. 16:51Vue-cli 3 is prefetching lazy chunks out of the box!
  18. 17:58Measuring and analyzing
  19. 19:15Webpack bundle analyzer
  20. 20:26#2 'bundlesize' package
  21. 20:58VS Code 'Import cost' plugin
~/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.