10 ms·
I have found it is convenient to use RequireJS's shim features to load libraries that use AMD rather than looking for AMD versions. For example, we use MathJax
by bjterry 14y ago
I have found it is convenient to use RequireJS's shim features to load libraries that use AMD rather than looking for AMD versions. For example, we use MathJax off their CDN and they do not provide an AMD version.
- analog 14y agoAre you using the r.js optimiser though? We definitely couldn't use a local non-AMD version with other CDN libraries when using the optimiser to build our js out for production.