I am having trouble loading jquery with require.js
Here is the html script:
<script data-main="js/mainU.js" src="js/libs/require.min.js"></script>
Here is the mainU.js file
requirejs.config({
enforceDefine: true,
baseUrl: "libs",
paths: {
jquery: ["//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js",
"jquery.min"],
underscore: "underscore-amd.min",
backbone: "backbone-amd.min"
},
});
define(["jquery", "underscore", "backbone"],
function ($, _, Backbone) {
console.log("Test output");
console.log("$: " + typeof $);
console.log("_: " + typeof _);
console.log("Backbone: " + typeof Backbone);
}
);
The files are in the correct folders
404eror. You probably mean //ajax.aspnetcdn.com/ajax/jquery/jquery-2.0.0.min.js, note thejsat the end.