Async loading of javascript files using MVC4 Bundling and HTML5 async attribute

If you upgrade to the 1.1-alpha1 release, you can just add the async attribute to the tag format either via:

Scripts.DefaultTagFormat = @"<script src=""{0}"" async></script>"

or passing it where you want the async tag

Use following instead of Scripts.Render(“~/bundles/jquery”)

Scripts.RenderFormat(@"<script src=""{0}"" async></script>", "~/bundles/jquery")

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)