Party like it's 1999, write JavaScript like it's 2012
summary
Argues that AMD is the practical module system for browsers now and demonstrates using RequireJS to declare dependencies and load a todo app’s modules and text templates, then running the optimizer (Uglify) to concatenate and minify into a single production file. Notes that the full loader is about 8 KB but swapping to almond ~800 bytes slims the build. Shows templates inlined, dependency order preserved, and the app running after build, and stresses always optimizing before deployment.
AI-written summary · about
chapters (17)
- 0:00Intro
- 0:55Whats not covered
- 1:34The lay of the land
- 2:20Frontend JavaScript
- 3:00Modular Code
- 4:14Script Tag Order
- 5:12Script Tag Effects
- 6:03What do you want
- 6:54Commonjs
- 9:22Asynchronous Modules
- 12:11Requiredjs
- 12:47Modules
- 13:26Script tags
- 14:18Testing
- 15:30Plugins
- 17:23Required Rest
- 18:20Running the build
related talks
41mThe future is modules not frameworks. JS modules Architecture demo.
34mTowards a simpler JavaScript ecosystem
27mCompile Like It's 2017
35mAshley Williams - SeattleJS Conference 2017
59mNo Strings Attached: JavaScript without Webpack, Transpilers, or Frameworks
21mAsk not what JavaScript can do for you
01h 32mIOC + Javascript
47m2017 DevFestMN Eric Brandes
