Questions tagged [web-optimization]

The ASP.NET Web optimization framework provides services to improve the performance of your ASP.NET Web applications.

The ASP.NET Web optimization framework provides services to improve the performance of your ASP.NET Web applications.

Current services provided by the framework include:

  • bundling - combining multiple scripts or style resources together into a single resource, and thereby requiring browsers to make fewer HTTP requests
  • minification - making scripts or styles smaller using techniques such variable name shortening, white space elimination, etc.

Additionally, the framework has multiple extensibility points, enabling you to add new services over time. The easiest way to install the framework is via its NuGet package.

86 questions
5
votes
5 answers

Static file versioning with Django

I am setting far-future expires headers for my CSS/Javascript so that the browsers don't ever ask for the files again once they get cached. I also have a simple versioning mechanism so that if the files change, the clients will know. Basically I…
ibz
  • 44,461
  • 24
  • 70
  • 86
5
votes
3 answers

How to preload JavaScript and CSS files in the background, to have them ready in the browser cache when the user goes to the main page?

I want to preload a JS file and a CSS file from the landing page to optimize the main site load, after the conversion in the landing. I was looking for information about this and finally tried to get this done using: var xhr = new…
5
votes
1 answer

CssRewriteUrlTransform does not take

bundles.Add(new StyleBundle("~/a/b/c") .Include("~/Content/font-awesome.css", new CssRewriteUrlTransform())); I have this bundling. The font-awesome css has a url defined as url('../fonts/fontawesome-webfont.eot?v=4.0.3') which is valid when…
Anders
  • 17,306
  • 10
  • 76
  • 144
5
votes
1 answer

renders ScriptBundle as css link elements

I'm trying to use the new .net 4.5 webforms control to render bundles in my materpage. I have a scriptbundle defined in my BundleConfig.cs like this: bundles.Add(new ScriptBundle("~/bundles/app").Include( "~/Scripts/underscore.js", …
Rafe
  • 8,467
  • 8
  • 47
  • 67
5
votes
0 answers

How to override Styles.Render or Scripts.Render to serve script resource and style resource from cookieless domain

After read this Cookieless domain for bundling and static resources, I want to use the bundles to serve scripts and styles from cookieless domain. How to override the Styles.Render or Scripts.Render ? Any suggestion maybe useful, hope your reply!
shimron
  • 596
  • 6
  • 19
5
votes
1 answer

"The located assembly's manifest definition does not match the assembly reference" on nuget package

So I was persistently getting this error on the System.Web.Optimization package Could not load file or assembly 'System.Web.Optimization' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference.…
DJL
  • 2,060
  • 3
  • 20
  • 39
4
votes
1 answer

minification of CSS and JavaScript with Microsoft Web Optimization

I'm trying to use http://blogs.msdn.com/b/cdndevs/archive/2012/01/23/javascript-and-css-minifying-bundling-with-the-microsoft-web-optimization-nuget-package.aspx To minify and bundle my css and js files All the examples I have been able to find all…
mimo
  • 937
  • 12
  • 19
4
votes
0 answers

Why does the CdnFallbackExpression generate a version-less bundle?

Typically, all bundles generated by System.Web.Optimization are given versions in their query parameters. However, if you specify a CdnPath and CdnFallbackExpression value, the src attribute in the fallback