asp.net mvc - Add new bundle outside Application_Start -



asp.net mvc - Add new bundle outside Application_Start -

i found bundle of asp.net mvc amazing. help me compress javascript&css files.

however, think adding static files in bundleconfig.cs hard. (i sense register static files in diffrent modules, different pages when appliction start not idea.)

for example, people of team want develop partial view. in partial view, there static files: stac1.js, stac2.js, style1.css, style2.css.

i prefer solution: register files in independent file of module/page. when 1 access module/page, static files compressed.

is solution existed?

i don't understand why prefer when 1 access module/page, static files compressed. it's improve compress files in application_start because application_start launch 1 1 time users application. compression exectued once, if execute compression each access of page/module, loading time longer final user

asp.net-mvc asp.net-mvc-4

Comments

Popular posts from this blog

ruby on rails - Devise Logout Error in RoR -

model view controller - MVC Rails Planning -

php - Working with pretty urls on apache and fastcgi after hhvm installation -