requirejs
How to structure multiple pages with RequireJS
How to structure multiple pages with RequireJS? Is, like the following sample, declaring every class in app.js is the right thing to do? Has every html file to declare the <script data-main=\"src/m[详细]
2023-03-09 04:17 分类:问答Requirejs' order does not work with priority config and CDN dependencies
The 开发者_C百科following main.js code do not respect the order of priorities (sometimes underscore.js is not loaded when backbone.js needs it):[详细]
2023-03-08 06:37 分类:问答What is the preferred method for passing server data to a RequireJS module?
Is there a preferred way to pass server data in a RequireJS module? Our current impl开发者_JS百科ementation looks like the following code snippets; using a \'page\' object to hold any server/dynamic d[详细]
2023-03-08 03:00 分类:问答requireJS an entire folder
Is it possible to \"require\" an entire folder using requireJS. For example, I have a behaviors folder with a ton of behavior 开发者_如何学Cjs files. I\'d really like to be able to simply use requir[详细]
2023-03-03 03:51 分类:问答determine which js files to load in html on the fly
I am trying to set up a project which consist of htmls and javascript/ajax - jquery with many jquery plugins.[详细]
2023-02-28 04:23 分类:问答Using RequireJS, how do I pass in global objects or singletons around?
Let\'s say I am writing code at the main page level and 2 dependencies require the same instance of an object and also state that as a dependency. What is the appropriate way to go abou开发者_运维知识[详细]
2023-02-23 01:52 分类:问答How to set default baseUrl
I\'m using RequireJS, and all my modules reside in /payloads/backend/application. I.e. /payloads/backend/application/blog/newPost.js[详细]
2023-02-22 06:09 分类:问答Using the optimizer in requirejs to group and load files
We have just started using requirejs in our project and we are loving it. Currently we are just using it to manage our many jQuery plugins[详细]
2023-02-18 13:26 分类:问答ExtJs dependency management using RequireJS, LABjs (or similar)
I am trying to find examples of how to wrap ExtJs and ExtJs \'modules\' up for use with a javascript dependency framework such as RequireJS or LAB.[详细]
2023-02-17 22:02 分类:问答Requirejs loading plugins
I\'m trying to load a plugin using requirejs but occasionally get an error, \"$.fn is undefined\" but if I reload the page the error disappears almost like now jquery is cached the problem is removed.[详细]
2023-02-17 04:54 分类:问答