~/talk

ES6 Modules & HTTP/2 - Will We Stop Packaging Our JavaScript Code?

TalkinFrenchat DevFest Toulouse 2017 · on Thursday, 2017-09-28· [javascript]
slides:none on file

Explains how native ES6 modules (supported by about 99% of modern browsers) let JavaScript be modular and enable tree‑shaking, and reports experiments comparing three build strategies: transpiled ES5 bundle, non‑bundled ES6 modules, and concatenated ES6 bundle. Finds concatenated ES6 bundles are smallest and fastest to execute, while serving many non‑bundled ES6 modules can hurt load time today; recommends using Rollup/Babel for fallbacks and combining type="module" with a legacy bundle. Notes that HTTP/2 server push plus service workers complicate caching and rarely outperform simple concatenation.

AI-written summary · about

  1. 0:00Introduction
  2. 1:27JavaScript modules history
  3. 5:14ES6 modules syntax
  4. 9:25ES6 modules pros/cons
  5. 11:50Classic vs modules
  6. 21:01ES6 in browser
  7. 24:34Unpackaged in production?
  8. 27:02HTTP/2 and modules
  9. 31:35Production strategy
  10. 34:23Conclusion
~/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.