requirejs / requirejs

A file and module loader for JavaScript
https://requirejs.org/
Other
12.95k stars 2.38k forks source link

requirejs is loading fallback too after loading cdn file successfully. #1649

Open IbtesamSadiq opened 7 years ago

IbtesamSadiq commented 7 years ago

//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 (){});

IbtesamSadiq commented 7 years ago

//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