Skip to main content

All Questions

6 votes
5 answers
1k views

What is the best way to include jQuery, Underscore, and Backbone as AMD modules using require.js?

I've seen many variations to loading modules which do not support AMD yet, and I would like to know what is the best practice to do so. Eventually, I would like to write modules like this: module.js:...
Ron Reiter's user avatar
  • 3,896
15 votes
5 answers
10k views

RequireJS and text plugin Load timeout for modules

I am having some problems getting the RequireJS text plugin to work. This is possibly a path related issue (or something similarly obvious) but I can't solve it because neither the chrome console (...
Johannes Degn's user avatar
1 vote
1 answer
2k views

Overriding underscore.js defaults when used with require.js as an AMD module

Since underscore is loaded in as an AMD module does anyone have an recommendations on how best to set global options against underscore so that I can still access it under the same unified module name ...
indieisaconcept's user avatar
15 votes
5 answers
12k views

Very basic Backbone/Underscore via Require.js issue driving me batty

I am attempting to implement an EXTREMELY basic test that uses jquery, underscore.js and backbone.js loaded via require.js and for some reason I just cannot seem to get everything lined up properly. ...
greenanvil's user avatar
173 votes
6 answers
70k views

Loading Backbone and Underscore using RequireJS

I'm trying to load Backbone and Underscore (as well as jQuery) with RequireJS. With the latest versions of Backbone and Underscore, it seems kind of tricky. For one, Underscore automatically registers ...
Aaronius's user avatar
  • 4,933
5 votes
5 answers
6k views

How to load Underscore library with RequireJS?

require(['underscore'], function ($, _) { ... }); Doesnt work! (_ is not a function) How to manage it?
williamv's user avatar

15 30 50 per page
1
6 7 8 9
10