I'm getting this error when I browse my webapp for the first time (usually in a browser with disabled cache).     Error: Mismatched anonymous define() module: function (require) {   HTML:  <html>    .    .    .    <script src="//aj...
I am trying to use r.js to optimize my code but I keep running to this error:  Tracing dependencies for: init  Error: Load timeout for modules: backbone,jquerymobile   The command I am running is this:  $ java -classpath /Users/dixond/build-tools/rhi...
I am using the current stable release of both require.js and jQuery and I am currently including jQuery like this  requirejs.config({ paths: {     'jQuery': 'vendor/jquery', } });  require(['jQuery'], function(jQuery) {     lo...
I'm adding AMD support to a javascript library I develop.  This library may use jquery but it will still work if jquery isn't loaded.  When defining the module dependency there's a way to set a dependency as 'optional' so that if...
I am using RequireJS and need to initialize something on DOM ready. Now, RequireJS provides the domReady plugin, but we already have jQuery's $(document).ready(), which is available to me since I have required jQuery.  So I have got two options:...
I have a web project that's built with Maven and I'm trying to figure out the best way to compile the JavaScript files with the RequireJS compiler (this question could apply to any compiler/minifier as well).  I have a setup that works, but i...
I'm trying to get require.js to load modules on the server-side with Java 6 and Rhino.  I'm able to load require.js itself just fine. Rhino can see the require() function. I can tell because Rhino complains that it can't find the function...
I'm working with backbone+requirejs+jquery and I have a problem with jquery plugin loading in my current html page (backbone html template precisly).  There is my require configuration:  require.config({    paths: {     // ... some code about bac...
I have a single page Marionette app built on RequireJS which needs to support translations.  My goal is to have a dictionary file for each language, and based on the logged in user's configuration, load the relevant file.  Since most of the users...
Update:  I was writing a small module to handle this csrf token problem in backbone until I got push notification of @Louis's answer.  His answer is quite elegant and seems nice, but I'll leave a link to my backbone.csrf module github repo ju...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.