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...
RequireJS seems to do something internally that caches required javascript files. If I make a change to one of the required files, I have to rename the file in order for the changes to be applied.    The common trick of appending a version number a...
Is there a way to define a module that "dynamically" load other modules in RequireJS? If yes, how the optimizer (r.js) understands how/when a module has to be included?   For example, let dynModules a module which defines name/path pairs:...
In my system, I have a number of "classes" loaded in the browser each a separate files during development, and concatenated together for production. As they are loaded, they initialize a property on a global object, here G, as in this examp...
I'm still new to ES6 and module loaders and I'm currently looking at combining a browserify setup with ES6. I was wondering if I would still need browserify/requirejs if I'm using ES6 modules. Seems like both allow you to define modules...
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...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.