Questions tagged [system.web.optimization]

The System.Web.Optimization namespace includes classes that support Content Delivery Networks (CDN) and the process of optimizing JavaScript and cascading style sheet (CSS) files in a website to reduce file size and improve page performance. The classes in this namespace enable developers to carry out bundling and minification tasks to optimize their JavaScript and CSS files.

81 questions
0
votes
2 answers

The type or namespace name 'Optimization' does not exist in the namespace 'System.Web' (are you missing an assembly reference?)

I moved three .ASPX files with their associated .cs and .designer.cs files to a different folder, and changed their names. When I tried to recompile, I got the message above for 5-6 different .ASPX files, including the three that I moved. The line…
Jim S
  • 1,069
  • 3
  • 10
  • 17
0
votes
1 answer

Bundle and minification with html page

I am using asp.net 4.5 Bundling and Minification in my project. I want to use the jscripts bundle in html page. I have tried without success @Scripts.Render("~/bundles/jquery") To something custom like this:
David Horák
  • 5,535
  • 10
  • 53
  • 77
0
votes
1 answer

How to pre-generate js bundles outside web application?

I'm working on a web application that has a lot of js scripts packed into bundles using System.Web.Optimization library. In order to reduce the response time for first users I prepare all the bundles in Application_Start and force adding them to…
ZuoLi
  • 383
  • 2
  • 14
0
votes
1 answer

Absolute paths for resources in LESS CSS with ASP.net MVC

I know there are other questions, but none have the answer I need. Just need to be able to force an absolute path in some LESS that's included in an MVC page so that the images (etc) are correctly picked…
0
votes
1 answer

Bundling not working for angularJS

I am working on ASP.NET Web Forms application. I have added some angular controllers and other angular funcatinlity to application. Now i need to apply minification of JS and CSS files and i am trying to use in built bundling provider by…
0
votes
2 answers

Style compilation, bundling and minification

I've been learning about the various ways of content optimization for websites for months now, however I'm still confused about what's the right way of doing so e.g. which 'optimization workflow' results in what effects. ASP.NET MVC provides its own…
Acrotygma
  • 2,531
  • 3
  • 27
  • 54
0
votes
1 answer

Why would bundles not bundle on one server?

Why would bundles render bundled and minified on one server but not on another server? QA and Production are both the same OS and version of IIS, but they give different results. In QA, Styles.Render() and Scripts.Render() generate bundled, minified…
0
votes
2 answers

What js/css files should I bundle?

I am looking into the bundling features of ASP.NET 4.0 and am just curious what rules/practices people follow when deciding which files to bundle? Should I group things by what they are, like put all jQuery files together or is it a good idea just…
aw04
  • 10,857
  • 10
  • 56
  • 89
0
votes
1 answer

Script.Render(absolute or partial path) is not disabling the bundling for compilation debug=true

Does any of you know why the Script.Render is not disabling the bundle for compilation debug ="true" when the bundle path is not relative to the root folder ? I am creating the bundle using a relative path to the root like (this path type is…
Ovi O
  • 43
  • 6
0
votes
2 answers

Bundle enable optimizations

When i enable my BundleTable.EnableOptimizations in my mvc project for my javascript files it doesn't load any of the files. I'm not getting any errors as well. It simply won't load any of my files. This is my bundle: bundles.Add(new…
Jamie
  • 3,031
  • 5
  • 36
  • 59