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
140
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
82
React: How to JavaScript Hipster
osbornm
0
150
UX / UI - Lunch & Learn
osbornm
0
290
Practical Knockout
osbornm
0
160
CSS, LESS, & The New UI
osbornm
0
210
3D Printing Introduction
osbornm
0
110
Practical HTML 5
osbornm
2
460
Playr
osbornm
1
720
NuGet: Add Reference, Awesome
osbornm
1
930
Other Decks in Technology
See All in Technology
Azure × MCP 入門
ry0y4n
8
1.8k
Ninno LT
kawaguti
PRO
1
120
Cursorを全エンジニアに配布 その先に見据えるAI駆動開発の未来 / 2025-05-13-forkwell-ai-study-1-cursor-at-loglass
itohiro73
2
620
時間がないなら、つくればいい 〜数十人規模のチームが自律性を発揮するために試しているいくつかのこと〜
kakehashi
PRO
24
5.7k
Docker Compose で手軽に手元環境を実現する / Simplifying Local Environments with Docker Compose #CinemaDeLT
nabeo
0
210
Ruby on Rails の楽しみ方
morihirok
6
2.8k
AIエージェントのオブザーバビリティについて
yunosukey
0
280
技術選定を突き詰める 懇親会LT
okaru
2
960
正式リリースされた Semantic Kernel の Agent Framework 全部紹介!
okazuki
1
1.2k
水耕栽培に全部賭けろ
mutsumix
0
110
転職したらMCPサーバーだった件
nwiizo
10
8.3k
20 Years of Domain-Driven Design: What I’ve Learned About DDD
ewolff
1
370
Featured
See All Featured
Music & Morning Musume
bryan
47
6.5k
Designing Experiences People Love
moore
142
24k
Java REST API Framework Comparison - PWX 2021
mraible
31
8.6k
Code Reviewing Like a Champion
maltzj
523
40k
Practical Orchestrator
shlominoach
187
11k
The Cost Of JavaScript in 2023
addyosmani
49
7.8k
We Have a Design System, Now What?
morganepeng
52
7.6k
Visualization
eitanlees
146
16k
The Art of Programming - Codeland 2020
erikaheidi
54
13k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
34
2.2k
Documentation Writing (for coders)
carmenintech
71
4.8k
Designing for humans not robots
tammielis
253
25k
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