For an about one year I am using an excelent code to defer all scripts to the very end of page.
It is done with ASP NET response filters. An what about ASP NET MVC.
Download code from
Fast ASP.NET Web page loading by downloading multiple JavaScripts after visible content and in batch
, create base controller and add code :
protected override void OnActionExecuting(ActionExecutingContext filterContext)
{
Response.Filter = new AdriaticGlobal.MVC.Utilty.ScriptDeferFilter(Response);
base.OnActionExecuting(filterContext);
}
You can see working examples here:
ASP NET
AdriaticGlobal.net
ASP NET MVC
dubrovnik-accommodation.biz