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
3
votes
1 answer

ASP.Net MVC/Web API Custom Dynamic Bundle Working in Production but not Dev

In my development environment, I'm receiving 404 responses when I try to load a dynamically generated bundle. Strangely, this isn't occurring in our production environment, so it's not really catastrophic, but it makes development a bit…
Zac Seth
  • 2,742
  • 5
  • 37
  • 56
3
votes
2 answers

What is the best way to optimize a Windows Server 2008 box running IIS7 to serve only static files?

I would like to have our web applications pull static content (css, js, images) from a static file server running Windows Server 2008 and IIS7. What sort of optimizations would you make to the server for this single purpose? (Machine.config changes?…
3
votes
2 answers

How to ensure that client browser cache has been refreshed after deploying new CSS or JavaScript files?

I'm using Microsoft ASP.NET Web Optimization Framework As you may know, it can concatenate all JS/CSS into single file. You can define output file name in config and to ensure that user browser will pickup updates JS/CSS it adds parameter like…
Sergejs
  • 2,540
  • 6
  • 32
  • 51
3
votes
3 answers

MVC Bundling - Include .min file for a single bundle

I have a single file in my application that I only have a minified version of and I would like to create a bundle for it: bundles.Add(new ScriptBundle("~/bundles/maskedinput").Include( "~/Scripts/jquery.maskedinput-1.3.min.js")); The problem is…
Dismissile
  • 32,564
  • 38
  • 174
  • 263
2
votes
1 answer

Disabling JS/CSS bundling if debug=true in Web.config

I am using BundleTransformer to bundle and minify JS/CSS in a legacy ASP.NET WebForms app. However, I'd like to disable bundling if in Web.config. Current Behavior: If debug=true, resources are still bundled together, but…
JoshG
  • 6,472
  • 2
  • 38
  • 61
2
votes
0 answers

How use weboptimizer to with multiple virtual directories and single wwwroot

ASP.NET 5 MVC Core application serves multiple sites using LigerShark WebOptimizer ( https://github.com/ligershark/WebOptimizer ) https://example.com/store1 https://example.com/store2 https://example2.com All those sites should served from wwwroot…
Andrus
  • 26,339
  • 60
  • 204
  • 378
2
votes
0 answers

CssRewriteUrlTransform not being called on non-minified CSS

I'm trying to replace file paths inside CSS files. I tried the example from this answer: public class BundleConfig { public static void RegisterBundles(BundleCollection bundles) { BundleTable.EnableOptimizations = true; …
2
votes
1 answer

Google Web Optimizer -- How long until winning combination?

I've had an A/B Test running in Google Web Optimizer for six weeks now, and there's still no end in sight. Google is still saying: "We have not gathered enough data yet to show any significant results. When we collect more data we should be able to…
Chuck Le Butt
  • 47,570
  • 62
  • 203
  • 289
2
votes
0 answers

System.Web.Optimization Bundle add string to bundle

Is there a way to add a string of JS/CSS to a bundle. Alternatively, is there a way to load in JS/CSS from a url into a bundle?
Alistair
  • 1,939
  • 2
  • 22
  • 31
2
votes
1 answer

Javascript Bundle not being created by Microsoft.AspNet.Web.Optimization

I'm following guidance from the below link to create a javascript bundle in a VS2010 webforms website. http://igorzelmanovich.blogspot.co.uk/2012/09/using-aspnet-bundling-and-minification.html I've got this in my global.asax: void…
User101
  • 748
  • 2
  • 10
  • 29
2
votes
1 answer

Upgrading Web Optimization Framework to RTM

When I upgrade from Microsoft ASP.NET Web Optimization Framework 1.0.0-beta2 to Microsoft ASP.NET Web Optimization Framework 1.0.0 via nuget some of my scripts are no longer rendered to the page. This seems pretty strange and im wondering if I need…
undefined
  • 33,537
  • 22
  • 129
  • 198
1
vote
2 answers

Efficient CSS with child selectors, is it worth it?

I know: div > p is faster to render than div p but, in the other hand, it occupies one more character, so it increase the time to send the CSS file. I know the speed difference is very little, but if you have a very large CSS file with a lot of…
1
vote
1 answer

Are multiple domain can improve images loading speed

I read this article Optimize Parallel Downloads to Minimize Object Overhead and write a test demo But the result is not I expected,look at the waterfall figure multiple domain's images indeed parallel download but the total time no less. Who can…
Dudu
  • 1,184
  • 1
  • 10
  • 26
1
vote
1 answer

Identifying slowdown in IE

I am working on a site right now that is experiencing a slow down in Internet Explorer. More specifically, the page just freezes for around 2 to 3 seconds after loading all of the visible page elements, as if it is still loading something. Normally,…
user396404
  • 2,759
  • 7
  • 31
  • 42
1
vote
0 answers

Why does google google fonts doesn't use font-display?

If Google Pagespeed Insights require to use new property "font-display", why Google fonts doesn't implement it?