Inclusion Handling in MVC 2 / MVCContrib
Posted
by mnemosyn
on Stack Overflow
See other posts from Stack Overflow
or by mnemosyn
Published on 2010-03-12T14:51:07Z
Indexed on
2010/03/12
17:57 UTC
Read the original article
Hit count: 506
I'd like to improve my page by combining and minifying javascript and CSS
files. Since MVCContrib already contains a project called IncludeHandling
, I took a look at that which unfortunately left me with unanswered questions:
There is quite a set of interfaces and objects involved in the process. Now I'm using Ninject.Mvc
, but it seems that MvcContrib.IncludeHandling
is using some additional (home-brewed?) DI? Can I work around this? Has anybody used this and can share some experiences?
Secondly, advice that is often heard is to put static content on different domains so the request does not contain cookies and the like, making it much easier for the server to handle the request. But how can I combine this with automatic inclusion handling - isn't that necessarily served in the same application?
EDIT: Figured that there is really just a single resolve call in the whole thing, i really wonder why they use DI for that... Thinking about a fork there...
© Stack Overflow or respective owner