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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Matthew Osborn
June 29, 2015
Technology
0
160
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
97
React: How to JavaScript Hipster
osbornm
0
170
UX / UI - Lunch & Learn
osbornm
0
310
Practical Knockout
osbornm
0
180
CSS, LESS, & The New UI
osbornm
0
240
3D Printing Introduction
osbornm
0
130
Practical HTML 5
osbornm
2
490
Playr
osbornm
1
740
NuGet: Add Reference, Awesome
osbornm
1
960
Other Decks in Technology
See All in Technology
Phase02_AI座学_応用
overflowinc
0
430
Phase09_自動化_仕組み化
overflowinc
0
280
頼れる Agentic AI を支える Datadog のオブザーバビリティ / Powering Reliable Agentic AI with Datadog Observability
aoto
PRO
0
240
Visional 28新卒プロダクト職(エンジニア/デザイナー)向け 会社説明資料 / Visional Company Briefing for Newgrads 28
visional_engineering_and_design
1
110
新規事業×QAの挑戦:不確実性を乗りこなす!フェーズごとに求められるQAの役割変革
hacomono
PRO
0
130
Agent Skill 是什麼?對軟體產業帶來的變化
appleboy
0
130
Phase03_ドキュメント管理
overflowinc
0
380
ReactのdangerouslySetInnerHTMLは“dangerously”だから危険 / Security.any #09 卒業したいセキュリティLT
flatt_security
0
370
スケールアップ企業でQA組織が機能し続けるための組織設計と仕組み〜ボトムアップとトップダウンを両輪としたアプローチ〜
tarappo
3
280
ガバメントクラウドにおけるAWSの長期継続割引について
takeda_h
2
5.4k
Mitigating geopolitical risks with local-first software and atproto
ept
0
150
「通るまでRe-run」から卒業!落ちないテストを書く勘所
asumikam
2
420
Featured
See All Featured
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
280
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.4k
The Invisible Side of Design
smashingmag
302
51k
Designing for Performance
lara
611
70k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
410
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
110
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
84
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
26
3.4k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
249
1.3M
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Large-scale JavaScript Application Architecture
addyosmani
515
110k
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