Questions tagged [bundling-and-minification]

Bundling and minification are used to optimize web content by reducing the number of requests to the server and as well as the size of requested assets (such as CSS and JavaScript).

Bundling makes it easy to combine or bundle multiple files into a single file. You can create CSS, JavaScript and other bundles. Fewer files means fewer HTTP requests and that can improve first page load performance.

Minification performs a variety of different code optimizations to scripts or CSS, such as removing unnecessary white space and comments and shortening variable names to one character.

References:

  1. Bundling and Minification
  2. Adding Bundling and Minification to ASP.NET Web Forms
  3. Adding Web Optimization to a Web Pages Site
  4. Performance Implications of Bundling and Minification on Web Browsing
1258 questions
0
votes
2 answers

Login ReturnUrl in ASP.NET WebForms causing JavaScript critical error when using IE11

I am developing ASP.NET Web Forms application using Visual Studio 2012, which utilizes bundling and SignalR. I put this in my web.config:
0
votes
1 answer

Do we need to consider bundling and minification for the css, js in case we have caching enabled for these static resources?

Can anyone please help me to know whether it is really necessary to bundle and minify the static resources like js,css, images in case we have already enabled client side caching. Please help me to know your thoughts on the above. Thanks &…
santosh kumar patro
  • 7,231
  • 22
  • 71
  • 143
0
votes
1 answer

Automate minfication using System.Web.Optimization & WebGrease in asp.net mvc without bundling

I have used System.Web.Optimization & WebGrease DLL to do automate bundle and minifiy javascript and css files in my project using below code. using System.Web.Optimization; using WebGrease; protected void Application_Start() { …
0
votes
1 answer

umbraco 7.0.4 bundling not working

I'm trying to use the Bundling and Minification feature on a Umbraco 7.0.4. I'm getting a 404 error. I've manually added my virtual prefix path in web.config ("umbracoReservedPaths" variable) but it still not working. I also added the version 1.1.0…
Thiago Custodio
  • 17,332
  • 6
  • 45
  • 90
0
votes
0 answers

Scripts management in ASP.NET MVC

I'm building the ASP.NET MVC application containing widgets - user can define in the administration panel which widgets (which are being in fact partial views) will be used on page. Each widget has references to jquery library which is common for…
0
votes
1 answer

Css bundling and Minification, css rule contains absolute urls

I have defined some font CSS rule which has absolute urls like @font-face { font-family: 'Oxygen'; font-style: normal; font-weight: 700; src: local('Oxygen Bold'), local('Oxygen-Bold'),…
joshua
  • 2,371
  • 2
  • 29
  • 58
0
votes
1 answer

how to stop minification on release build?

I am creating an MVC4 application. I am using bundling, the debug version works great, but when I publish the application I am getting errors. Does anyone know how to turn minification off so that it just includes the full version of the js…
user2206329
  • 2,792
  • 10
  • 54
  • 81
0
votes
1 answer

ASP powered CSS file and bundling

For a while now I have adopted the practice of writing my CSS in an .aspx page and serving that page as CSS. Primarily this is because a project I was involved on had a development 'CDN' before images were finally hosted on the actual CDN, so when…
Chris
  • 2,630
  • 3
  • 31
  • 58
0
votes
1 answer

Asp.Net MVC 5 Template: BundleCollection script missing - returns 500 Internal Server Error

After Creating an MVC-Project from a tutorial and pressing F5 in Visual Studio 2013 Express Web i get a wrong Script reference and a 500 Internal Server Error The page is hosted on http://localhost:1874 3 Scripts (jquery, modernizer and bootstrap…
0
votes
2 answers

Loading an MVC JS bundle externally

I have a small JS library in my MVC 5 project that I want to be available for external users to load into their apps. At the moment I'm bundling it like so: bundles.Add(new ScriptBundle("~/clientApi") .IncludeDirectory("~/Api/clientapps/",…
LJW
  • 2,378
  • 1
  • 21
  • 35
0
votes
1 answer

setting debug='false' in web.config causes bundling to fail

When I change to run without debugging my bundling does not included the correct path in the html. it is dropping off the file name. using System.Web; using System.Web.Optimization; namespace Search { public class BundleConfig { //…
Doug Chamberlain
  • 11,192
  • 9
  • 51
  • 91
0
votes
2 answers

adding a URL to a Microsoft.Web.Optimization bundle

Is it possible to add a url from another domain to the bundling in Microsoft.Web.Optimization? I want to add a reference to replace the following link:
Sam Jones
  • 4,443
  • 2
  • 40
  • 45
0
votes
1 answer

bundling virtual paths in areas

I want to create a style bundle with following virtual path (plugin framework): "~/Areas/Domain.PluginTest.Wui/Bundles/PluginCss" When I go to that path I get an error stating that the file doesn't exist. The Static file handler is trying to find a…
0
votes
1 answer

ASP.NET MVC application root changes on submit

I've got a simple ASP.NET MVC application for CSV file validation. The user enters some characteristics about the file (text box and some checkboxes), then browses to the file they want to upload and hits submit. The entire application works fine on…
0
votes
1 answer

Magento javascript bundling - turn off for page

I have a Magento site setup and I did have Javascript bundling turned on. This worked very well. Apart from one page - the PyaPal review page. A critical page. After a few days of slow sales, I saw a javascript error on this page. Turned off…
dhardy
  • 993
  • 2
  • 11
  • 22