//Note: there are some local links for CDN. they are just for test. they will be replaced by cdn's url after i will //complete that project.
//File name is ModuleLoader.js
requirejs.config({
enforceDefine: true,
paths: {
modernizr_L:["JS/CDN/modernizr.CDN","JS/modernizr.min"],
svg_L: ["https://cdnjs.cloudflare.com/ajax/libs/svg4everybody/2.1.4/svg4everybody.min", "JS/Polyfills/svg4everybody.min"],
css_L: ["JS/CDN/Polyfills/cssfx.CDN", "JS/Polyfills/cssfx.min"]
}
});
require(['css_L'], function (){});
require(['modernizr_L'], function (){});
require(['svg_L'], function (){});
//ModuleLoader.js is loaded from this HTML file
//except "svg_L" module other both module are loading fallback after loading cdn files problem is same //ether i replace cdn path with url
//Note: there are some local links for CDN. they are just for test. they will be replaced by cdn's url after i will //complete that project. //File name is ModuleLoader.js requirejs.config({ enforceDefine: true, paths: { modernizr_L:["JS/CDN/modernizr.CDN","JS/modernizr.min"], svg_L: ["https://cdnjs.cloudflare.com/ajax/libs/svg4everybody/2.1.4/svg4everybody.min", "JS/Polyfills/svg4everybody.min"], css_L: ["JS/CDN/Polyfills/cssfx.CDN", "JS/Polyfills/cssfx.min"] } }); require(['css_L'], function (){}); require(['modernizr_L'], function (){}); require(['svg_L'], function (){});