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
0
120
AMD with RequireJS
Another brown bag on AMD concepts and RequireJS
Matthew Osborn
June 29, 2015
Tweet
Share
More Decks by Matthew Osborn
See All by Matthew Osborn
Palmetto - Introductory Messaging
osbornm
0
81
React: How to JavaScript Hipster
osbornm
0
150
UX / UI - Lunch & Learn
osbornm
0
280
Practical Knockout
osbornm
0
150
CSS, LESS, & The New UI
osbornm
0
200
3D Printing Introduction
osbornm
0
95
Practical HTML 5
osbornm
2
450
Playr
osbornm
1
700
NuGet: Add Reference, Awesome
osbornm
1
910
Other Decks in Technology
See All in Technology
あなたの人生も変わるかも?AWS認定2つで始まったウソみたいな話
iwamot
3
850
【NGK2025S】動物園(PINTO_model_zoo)に遊びに行こう
kazuhitotakahashi
0
240
Reactフレームワークプロダクトを モバイルアプリにして、もっと便利に。 ユーザに価値を届けよう。/React Framework with Capacitor
rdlabo
0
130
2024年活動報告会(人材育成推進WG・ビジネスサブWG) / 20250114-OIDF-J-EduWG-BizSWG
oidfj
0
230
Copilotの力を実感!3ヶ月間の生成AI研修の試行錯誤&成功事例をご紹介。果たして得たものとは・・?
ktc_shiori
0
350
30分でわかる「リスクから学ぶKubernetesコンテナセキュリティ」/30min-k8s-container-sec
mochizuki875
3
450
When Windows Meets Kubernetes…
pichuang
0
300
2025年のARグラスの潮流
kotauchisunsun
0
790
デジタルアイデンティティ人材育成推進ワーキンググループ 翻訳サブワーキンググループ 活動報告 / 20250114-OIDF-J-EduWG-TranslationSWG
oidfj
0
540
いま現場PMのあなたが、 経営と向き合うPMになるために 必要なこと、腹をくくること
hiro93n
9
7.7k
生成AIのビジネス活用
seosoft
0
110
[IBM TechXchange Dojo]Watson Discoveryとwatsonx.aiでRAGを実現!座学①
siyuanzh09
0
110
Featured
See All Featured
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Fantastic passwords and where to find them - at NoRuKo
philnash
50
2.9k
Statistics for Hackers
jakevdp
797
220k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
127
18k
A better future with KSS
kneath
238
17k
Why Our Code Smells
bkeepers
PRO
335
57k
Build The Right Thing And Hit Your Dates
maggiecrowley
33
2.5k
The Power of CSS Pseudo Elements
geoffreycrofte
74
5.4k
Site-Speed That Sticks
csswizardry
3
270
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
232
17k
Stop Working from a Prison Cell
hatefulcrawdad
267
20k
Agile that works and the tools we love
rasmusluckow
328
21k
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