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...
My application use require.js, I have a random bug (happens 1 time for 50 reload) Require.js write in the console :      Failed to load resource: the server responded with a status of 404 (Not Found)    Indeed, require.js try to include jquery from a...
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...
Problem  In order to improve the page performance I need to preload scripts that I will need to run on the bottom page.   I would like to take control of when the script is parsed, compiled and executed.  I must avoid the script tag, because it is bl...
I'm working with requirejs+jquery and i was wondering if there was a smart way to make a jQuery plugin work well with require.  For example i'm using jQuery-cookie. If i understood correctly i can create a file called jquery-cookie.js and ins...
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 using require.js to help organize my Backbone.js based application.  I'm trying to figure out the right way to use a 3rd party javascript library that is not AMD compatible with require.js  The library in questions is backbone-tastypie.js...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.