Answer the question
In order to leave comments, you need to log in
How to setup different work for different modules in r.js optimizer?
There is a project based on RequireJS.
The idea is this: some of the modules should be assembled into one file, and the other part should be loaded dynamically, controlled from the same file by constructions like:
if ($('.class').length > 0) {
require(['module'], function (module) {
module();
});
};
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question