ASP.NET MVC Loading scripts in partial views
问题 My entire website is an Ajax website, so all of my views (apart from Layout) can either be loaded normally or via an ajax actionlink. If I put the Javascipt files in with the partial views then all of the code works as expected, but the scripts get loaded multiple times (thus making the user download more scripts, all of them aren't being cached for some reason either). If I put the script files in my Layout, then they only get loaded once but if a partial view gets loaded then the JS code