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

ScriptBundle and jQuery minification causes issues with addEventListener

I'm putting this up as a way to save people time. I'm using jQuery 1.11.3, and MVC with ScriptBundle On large pages I started getting errors calling addEventListener in ready.promise Funnily enough, given u = document; u.addEventListener =…
0
votes
1 answer

How to inject dependencies to a named angular directive controller?

If I have code similar to this question on injecting another controller to a directive: angular.module('paramApp', []); angular.module('paramApp').controller('ParamCtrl', ['$scope', '$http', function($scope, $http) { . . …
0
votes
0 answers

Accessing bundles/jquery externally "Failed to load resource: the server responded with a status of 404 (Not Found)"

I have website which using Visual Studio 4 (.NET Framework 4) and bundling, and it runs locally on my machine (from Visual Studio) and also runs locally on the server just fine (using ...localhost/myWebsite/myWebPage.aspx). But, when I access the…
0
votes
1 answer

Bundling and minification issue in MVC

I am using ASP.NET MVC. I have bundled my js files, which run fine on dev environment. However on QA we have couple of issues. .min.js.map of few files like "jquery.validate.unobtrusive.js", "jquery.unobtrusive-ajax.js" cause issue. If I delete…
Arnet11
  • 79
  • 1
  • 12
0
votes
1 answer

How to include a file multiple times in an ASP.NET MVC5 script bundle?

In ASP.NET minification and bundling feature, I have a script that cleans up certain things and has to be run after loading multiple independent files. So I create a bundle, new ScriptBundle(virtualPath, cdnPath).Include( "~/Scripts/a.js", …
0
votes
1 answer

Inlining web components built with polymer inside one HTML file

I have the following web component built with Polymer: