Top "Requirejs" questions

RequireJS is a JavaScript file and module loader.

RequireJS conditional dependencies

I'm trying to define a module with conditional dependencies (depending on Modernizr test). I've done something that works but feel …

conditional modernizr requirejs
Using non-AMD compatible javascript module with require.js?

I'm using require.js to help organize my Backbone.js based application. I'm trying to figure out the right way …

javascript backbone.js requirejs tastypie
parse error using esprima for file while optimizing js files with r.js

I am optimizing several js files into one using r.js. It works fine before. Recently,I modified some js …

javascript requirejs r.js
How to load html content dynamically with RequireJS

I want to load a html content with RequireJS like this: define(function (require) { "use strict"; return function (id) { var …

javascript requirejs requirejs-text
Requirejs vs browserify vs webpack for js loading order: am I just moving the situation from one side to another?

Ok, it's 2016. Webpack looks like a winner against requirejs and browserify. I've been reading about those 3 technologies, to solve a …

javascript requirejs webpack browserify
Difference between bower, browserify, requirejs, webpack?

I'm used to simple and small JS projects where the JS dependencies are concatenated and minified as part of the …

javascript requirejs gulp bower browserify
jQuery document.ready() doesn't work with Require.js

I am calling Require.js from right before the closing body tag: <script data-main="assets/scripts/src/main.js" …

javascript jquery requirejs document-ready domready
Include Modernizr in RequireJS and have the Modernizr in the head tags

I have a problem with RequireJS and Modernizr. I want the Modernizr resource to be on the head. And everything …

javascript requirejs modernizr
How does html5-script-attribute "data-main" work?

For example requireJS uses following syntax: <script data-main="scripts/main" src="scripts/require.js"></script> and …

javascript html requirejs custom-data-attribute
Backbone.js model's destroy method does not trigger success or error event

I am beginning to learn Backbone.js and I started with this boilerplate and made an example by loading JSON …

javascript-events backbone.js requirejs mustache js-amd