Asp.net mvc 4 Asp.net mvc project is quite slow for scripts and css

Asp.net mvc 4 Asp.net mvc project is quite slow for scripts and css,asp.net-mvc-4,.net-4.5,bundling-and-minification,Asp.net Mvc 4,.net 4.5,Bundling And Minification,I just created a new project with MVC 4 .net 4.5, and I am experiencing some delay when loading the assets. For some fraction of seconds, I see the pages without styles at all, but after a while, the page load correctly. I am using the bundling for my css and scripts, Shouldn't I use it? bundles.Add(new StyleBundle("~/bundles/css").Include( "~/src/vendor/bootstrap/css/bootstrap.css", "~/src/css/stylesheet.css", "~/src/css/ie-9.css",

I just created a new project with MVC 4 .net 4.5, and I am experiencing some delay when loading the assets. For some fraction of seconds, I see the pages without styles at all, but after a while, the page load correctly. I am using the bundling for my css and scripts, Shouldn't I use it?

 bundles.Add(new StyleBundle("~/bundles/css").Include(
                "~/src/vendor/bootstrap/css/bootstrap.css",
                "~/src/css/stylesheet.css",
                "~/src/css/ie-9.css",
                "~/src/css/loader.css",
                "~/src/css/idangerous.swiper.css",
                "~/src/css/base.css"
            ));

#1

This kind of issues happen due to browser caching. You browser is loading previously cached css stylesheets. For speed make sure you have implemented gzip http compression in you project.


#2

This configuration is made on IIS? Or should I make some instalation on the project itself?

#3

refer this link to get your answer for gzip compression stackoverflow.com/a/6992948/2318852