i recently joined in a new company and found out they were using so many scripts in Layout.cshtml.as shown in fig

so in order to improve the performance,i used mvc bundling functions as shown
and referenced it on layout page with @Scripts.Render("~/bundles/jqueryval").but the problem is.many of the java scripts doesnt work any more especially jquery data table.what point im missing here?
;in place, and possibly some line breaks. The bundler concatenates the text of all the files together, so if the previous file is not ended correctly you can run in to problems. - Rory McCrossanEnableOptimizations=truecauses every script to be minified. You are telling to include the minified scripts, which get re-minified. In our case this caused problems because somehow the minified version of a library didnt correspont to the non-minified. Re-minifying the script did the trick. - devqon