Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
AMD with RequireJS
Search
Matthew Osborn
June 29, 2015
Technology
160
0
Share
AMD with RequireJS
Another brown bag on AMD concepts and RequireJS
Matthew Osborn
June 29, 2015
More Decks by Matthew Osborn
See All by Matthew Osborn
Palmetto - Introductory Messaging
osbornm
0
97
React: How to JavaScript Hipster
osbornm
0
170
UX / UI - Lunch & Learn
osbornm
0
310
Practical Knockout
osbornm
0
190
CSS, LESS, & The New UI
osbornm
0
240
3D Printing Introduction
osbornm
0
130
Practical HTML 5
osbornm
2
490
Playr
osbornm
1
750
NuGet: Add Reference, Awesome
osbornm
1
960
Other Decks in Technology
See All in Technology
スクラムを支える内部品質の話
iij_pr
0
300
サイバーフィジカル社会とは何か / What Is a Cyber-Physical Society?
ks91
PRO
0
150
仕様通り動くの先へ。Claude Codeで「使える」を検証する
gotalab555
8
2.9k
組織的なAI活用を阻む 最大のハードルは コンテキストデザインだった
ixbox
1
1k
Network Firewall Proxyで 自前プロキシを消し去ることができるのか
gusandayo
0
210
Claude Teamプランの選定と、できること/できないこと
rfdnxbro
1
1.6k
Oracle AI Database@AWS:サービス概要のご紹介
oracle4engineer
PRO
4
2.2k
Kubernetes基盤における開発者体験 とセキュリティの両⽴ / Balancing developer experience and security in a Kubernetes-based environment
chmikata
0
210
OpenClaw初心者向けセミナー / OpenClaw Beginner Seminar
cmhiranofumio
0
360
AI前提とはどういうことか
daisuketakeda
0
140
会社紹介資料 / Sansan Company Profile
sansan33
PRO
16
410k
レガシーシステムをどう次世代に受け継ぐか
tachiiri
0
300
Featured
See All Featured
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
2
1.4k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
52k
Docker and Python
trallard
47
3.8k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
30k
Utilizing Notion as your number one productivity tool
mfonobong
4
280
Tell your own story through comics
letsgokoyo
1
880
Being A Developer After 40
akosma
91
590k
Embracing the Ebb and Flow
colly
88
5k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
800
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
120
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.2k
Transcript
RequireJS Asynchronous Module Defini2on
THE PROBLEM Dependency Injection Bundles get Large Script Tag Ordering
THE SOLUTION Asynchronous Loading Dependency Chain Construction import / using
/ require
AMD CommonJS RequireJS
define("person", [], func2on () { return
{ firstName: "", lastName: "" }; }) define("employee", ["person"], func2on (p) { return { base: p, id: "123" }; });
// person.js define([], func2on () {
return { firstName: "", lastName: "" }; }) // employee.js define(["person"], func2on (p) { return { base: p, id: "123" }; });
// synchronous loading... var employee = require("employee"); // asynchronous loading...
require(["employee"], function (employee) { });
DEMO Setup & Consump2on r.js & Building / Minifica2on
Typescript AMD PaQerns Control’s conversion to AMD
@OSBORNM github | twiQer | .com