0

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"
            ));
Flezcano
  • 1,647
  • 5
  • 22
  • 39

1 Answers1

0

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.

Bhavik Patel
  • 1,466
  • 1
  • 12
  • 28