How does
@Scripts.Render("~/bundles/jquery")
differ from just referencing the script from html like this
<script src="~/bundles/jquery.js" type="text/javascript"></script>
Are there any performance gains?
This question is related to
asp.net-mvc-4
asp.net-optimization
You can also use:
@Scripts.RenderFormat("<script type=\"text/javascript\" src=\"{0}\"></script>", "~/bundles/mybundle")
To specify the format of your output in a scenario where you need to use Charset, Type, etc.
Source: Stackoverflow.com