Prevent ASP.NET MVC Bundles Loading more than once
Posted
by
Tim
on Stack Overflow
See other posts from Stack Overflow
or by Tim
Published on 2012-09-20T07:24:27Z
Indexed on
2012/09/20
9:37 UTC
Read the original article
Hit count: 299
is there an inbuilt method of tracking if a bundle has already been loaded? I have several edit views which forexample require jquery and jquery.Validate etc libraries. Which i don't need to reference on the main layout page. Since a page could consist of several different conditional libraries ... ideally i would like @scripts.Render to know if i have already referenced a library and prevent its reloading.
Cheers Tim
© Stack Overflow or respective owner