I am trying to download jQuery 3.1.1 Google CDN using Modernizr using 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 installed Modernizr correctly, and I'm sure the api is correct, but it does not load, and the console says that it cannot find it. I would appreciate it if you could offer a solution.
Thanks,
Milo
(Update: I am using Modernizr 2.8, so it supports Modernizr.load)
source
share