I am using asp.net mvc 5. I have made various bundles on server like below as each page needs different set of files.
bundles.Add(new Bundle("~/scripts/external/4")
.Include(
"~/Static/Scripts/External/jquery-2.1.3.min.js",
"~/Static/Scripts/External/jquery-ui.min.js",
"~/Static/Scripts/External/bootstrap.min.js",
//and 13 more files
));
bundles.Add(new Bundle("~/scripts/admin/external/1")
.Include(
"~/Static/Scripts/External/jquery-2.1.3.min.js",
"~/Static/Scripts/three.min.r76.js",
"~/Static/Scripts/app.min.js",
//and 15 more files
));
As you can see some js files are getting repeated (sometimes 4,5 big files are common) as they can't be cross referenced.
I am using lab.js on client side to load these bundles.
Requirejs is not going to work here as problem is with bundles. What is your recommended approach here for bundling files and loading them without blocking?