javascript - RequireJS: CDN fallback not working with Kendo -
struggling set requirejs kendoui on cdn , can't fallback work.
... amazing burkeholland a kendo ui asp.net mvc spa template
this begin :
define([ '../scripts/kendo/2014.1.416/kendo.router.min', '../scripts/kendo/2014.1.416/kendo.view.min', '../scripts/kendo/2014.1.416/kendo.fx.min' ], function () { return kendo; })
and works fine. if kendo.core.min not defined, first statement in kendo.router says define(["./kendo.core.min"]
, loaded proper location.
however, when try use cdn fallback location :
requirejs.config({ paths: { 'router': ['//cdn.kendostatic.com/2014.1.416/js/kendo.router.min', '../scripts/kendo/2014.1.416/kendo.router.min'], 'view': ['//cdn.kendostatic.com/2014.1.416/js/kendo.view.min', '../scripts/kendo/2014.1.416/kendo.view.min'], 'fx': ['//cdn.kendostatic.com/2014.1.416/js/kendo.fx.min', '../scripts/kendo/2014.1.416/kendo.fx.min'] } }); define([ 'router', 'view', 'fx' ], function () { return kendo; });
requirejs tries load kendo.core.min baseurl location, not fallback location.
am missing something?
however, if try :
requirejs.config({ paths: { k: ['//cdn.kendostatic.com/2014.1.416/js', '../scripts/kendo/2014.1.416'] } }); define([ 'k/kendo.router.min', 'k/kendo.view.min', 'k/kendo.fx.min' ], function () { return kendo; })
fallback doesn't work @ all... missing?
Comments
Post a Comment