Top "Requirejs" questions

RequireJS is a JavaScript file and module loader.

Mismatched anonymous define() module

I'm getting this error when I browse my webapp for the first time (usually in a browser with disabled cache). …

javascript jquery requirejs
Relation between CommonJS, AMD and RequireJS?

I'm still very confused about CommonJS, AMD and RequireJS, even after reading a lot. I know that CommonJS (formerly ServerJS) …

javascript module requirejs amd commonjs
Does it make sense to use Require.js with Angular.js?

I'm a newbie to Angular.js and trying to understand how it's different from Backbone.js... We used to manage …

javascript requirejs angularjs
Excluding files/directories from Gulp task

I have a gulp rjs task that concatenates and uglifies all my custom .JS files (any non vendor libraries). What …

requirejs gulp minify uglifyjs
Prevent RequireJS from Caching Required Scripts

RequireJS seems to do something internally that caches required javascript files. If I make a change to one of the …

javascript jquery requirejs
Dynamic require in RequireJS, getting "Module name has not been loaded yet for context" error?

Is there a way to define a module that "dynamically" load other modules in RequireJS? If yes, how the optimizer (…

javascript browser module requirejs r.js
When should I use require() and when to use define()?

I have being playing around with requirejs for the last few days. I am trying to understand the differences between …

require requirejs
Require.js Error: Load timeout for modules: backbone,jquerymobile

I am trying to use r.js to optimize my code but I keep running to this error: Tracing dependencies …

javascript jquery backbone.js requirejs
What is 'define' used for in JavaScript (aside from the obvious)?

I have searched high and low for documentation on this, but I just cannot find anything anywhere. I am using …

javascript requirejs requirejs-define
module.exports "Module is not defined"

So, I am using RequireJS and React, trying to load a third-party component, which has been installed with: npm install …

javascript requirejs reactjs commonjs