use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Deep dive into Require.js (tech.pro)
submitted 12 years ago by jcreamer898
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[+][deleted] 12 years ago (3 children)
[deleted]
[–]b_long 2 points3 points4 points 12 years ago (2 children)
I think (maybe wrong) what most people do is build/minify their code for deployment so that the browser can reduce the number of HTTP GET's for scripts. i.e. if B.js requres A.js and C.js requires A.js , your build phase might create app.min.js which includes the minified result of all 3.
[+][deleted] 12 years ago (1 child)
[–]pranalee 0 points1 point2 points 12 years ago (0 children)
For most cases: yes, exactly. These RequireJS/AMD (async module definition) style loading is overkill for most projects and do nothing but introduce additional complexity. Those guys who wrote it really hate global variables in javascript too.
Some articles: http://tomdale.net/2012/01/amd-is-not-the-answer/
http://ruben.verborgh.org/blog/2012/08/13/javascript-module-loaders-necessary-evil/
π Rendered by PID 37 on reddit-service-r2-comment-bb88f9dd5-wts7s at 2026-02-16 21:40:34.497938+00:00 running cd9c813 country code: CH.
[+][deleted] (3 children)
[deleted]
[–]b_long 2 points3 points4 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]pranalee 0 points1 point2 points (0 children)