I have been trying to load the Jquery 3.1.1 Google CDN using Modernizr, throught the following code:
Modernizr.load([
{
load: "//ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.js",
complete: function () {
if(!window.jQuery){
Modernizr.load("_js/jquery-3.1.1.min.js");
}
}
},
I have correctly installed Modernizr, and I am certain that the api is correct, yet it will not load, and the console say's that it can't find it. I would appreciate it if you could suggest a solution.
Thanks,
Milo
(Update: I am using Modernizr 2.8, so it supports Modernizr.load)
Demo