Skip to main content

Questions tagged [asp.net-optimization]

Questions related to the ASP.NET Microsoft.AspNet.Web.Optimization nuGet package (System.Web.Optimization namespace), which supports bundling and minification of javascript and css files.

asp.net-optimization
1 vote
3 answers
2k views

Blazor / ASP.NET Text Compression - Google speed test do not agree, why?

I have a blazor application where I added text compression, that way: context.Services.AddResponseCompression(o => { o.EnableForHttps = true; }); // We use Brotli by ...
ClubberLang's user avatar
  • 1,816
0 votes
0 answers
175 views

Bundling and minification in ASP.Net Web API + AngularJS projects

We have several projects at hand in our team but all of them have the same architecture, and recently we decided to implement bundling and minification in all of them. so we user ASP.Net Web API ...
amirdaraee's user avatar
0 votes
2 answers
952 views

Bundled scripts/css are not being recognized

I am very new to Bundling and minification, I try to implement it for the first time in my MVC project. I have added a BundleConfig.cs file: public class BundleConfig { public static void ...
user3378165's user avatar
  • 6,766
0 votes
1 answer
522 views

How to use ASP.NET 4.5 Bundling & a CDN to get Bootstrap 3.2?

I am a new ASP.NET developer and I am trying to use one of the greatest features of ASP.NET 4.5 which is Bundling feature. It appears to have some support for use of CDNs. I am struggling right now in ...
user3107976's user avatar
0 votes
1 answer
2k views

Could not load file or assembly 'WebGrease, Version=1.5.1.25624 - Or any other version

I have the same issue found in these questions Could not load file or assembly 'WebGrease, Version=1.5.1.25624, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies Could ...
Darren Wainwright's user avatar
1 vote
1 answer
369 views

Add additional ordered bundles to a DynamicFolderBundle?

I have a DynamicFoldewrBundle : bundles.Add(new DynamicFolderBundle("userScripts", "*.js", true, new JsMinify())); So If I run : http://optimization.localtest.me/files/templates/designs/...
Royi Namir's user avatar
  • 147k
7 votes
2 answers
1k views

Sitecore 8, .NET 4.6, Bundles Returning 404

I am running Sitecore 8 (Update 5) on .NET 4.6 and am running into an issue with Bundles returning a 404 error. My layout view: @using Sitecore.Mvc.Presentation @using Sitecore.Mvc @model ...
eat-sleep-code's user avatar
0 votes
1 answer
456 views

c# Bundle Transform Break cache

I would like to create a bundle transform that modifies the bundle content and triggers the cache to break, however I am not able to break the cache. So far I have the following code:- public class ...
Joe's user avatar
  • 1,885
2 votes
0 answers
994 views

Add other projects stylesheet to Bundleconfig

I have a common solution MyApp. Within this, I have more than 2 projects like MyCommon,MyInclude,MyWeb. I want to place stylesheets,scripts in a common project and refer them in other projects. Now I ...
KaviSuja's user avatar
  • 450
4 votes
0 answers
877 views

How can I still run a custom IBundleTransform when EnableOptimization is off in ASP.NET?

First the background - I'm using Handlebars for templating HTML and I want to make use of the bundling and caching capabilities of ASP.NET Bundling to deliver the templates to the client. To that end ...
Phil's user avatar
  • 2,252
3 votes
1 answer
280 views

System.web.optimization AssetManager increases memory usage

I am doing so memory analysis for our project there is excessive usage of memory. This is what I got when I did a deep analysis.
Rıfat Erdem Sahin's user avatar
1 vote
1 answer
236 views

ASP.NET Minification removes javascript function name in some scenarios

Good Day, I am using default ASP.NET 4.5.1 bundling. All scripts are minified as expected apart of the following code: var events = [ function Create() { }, function Delete() { } ]; ...
Tat's user avatar
  • 11
0 votes
1 answer
518 views

How to programmatically invalidate or refresh JavaScript and CSS bundles without restarting the web application?

I understand that when using bundles for JavaScript and CSS the web application is caching the bundles and using a caching key for it, something like the following: <script src="/bundles/sampleJs?...
Yovav's user avatar
  • 2,657
1 vote
1 answer
2k views

How to troubleshoot Angular JS Unknown Provider error in minified code

While the app works in debug mode, when release mode switches on .NET bundles, I get the Unknown Provider error. The problem is there many sources (Bootstrap UI and other third-party controls besides ...
Mark Meyerovich's user avatar
2 votes
1 answer
708 views

CSS minification and bundling replaces 0px with 0 in calc, so content doesn't render properly

I'm using Microsoft.AspNet.Web.Optimization (1.1.3) from an MVC 5.1 site to bundle and minify my CSS and it is replacing values of 0px with 0 in release mode and this causes rendering issues. Is it ...
chrisp_68's user avatar
  • 1,761

15 30 50 per page
1
2 3 4 5
12