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

Angular js App minification

Very popular issue: Unknown provider: nProvider <- n <- $http <- $templateFactory <- $view <- $state I use MVC Bundling for this. How to read this message? Does it mean that $state requires $view that requires $templateFactory etc.?
BotanMan
  • 1,357
  • 12
  • 25
0
votes
1 answer

403 Error on bundling CSS

I have the following error on my single page app: http://screencast.com/t/sEYhyowXTqxR Therefore the page looks ugly. My bundleconfig.cs I havent modified it: public static void RegisterBundles(BundleCollection bundles) { …
Luis Valencia
  • 32,619
  • 93
  • 286
  • 506
0
votes
1 answer

issue with bundling and minification in ASP.net MVC

I have bundled the required libraries as following. bundles.Add(new ScriptBundle("~/bundles/libraries").Include( "~/Content/js/jquery.1.10.2.js", "~/Content/js/jquery.ui.1.10.3.js", …
RandomUser
  • 1,843
  • 8
  • 33
  • 65
0
votes
3 answers

Fastest way to load many js files and variables

for a bigger project which is a single website application I use very much of jquery, js and ajax calls. As I would do in C# and ASP.Net of course I tried to split up functions / variables into a bunch of js-files for categories e.g. 1 file for my…
ReneK
  • 109
  • 1
  • 9
0
votes
1 answer

Require.js minification

How does minification and caching happen when we use require.js For example: I have 4 scripts - student.js, studentFactory.js, studentEnrollment.js, studentResults.js studentFactory.js, studentEnrollment.js and studentResults.js is dependent on…
0
votes
0 answers

Uncaught TypeError: Undefined is not a function in JS while using bundling process

while bundling the JS files, i came across the "Uncaught TypeError: Undefined is not a function". I researched in the internet but failed to find the solution. Can someone help me to find out what the problem is?. Here is the unminified JS file. The…
0
votes
0 answers

MVC 5 Bundling doesn't work when style files are in different locations

I tried to look for some info related to bundling, tried different scenario with the same result: doesn't work! Here is the project structure: .......... Content css style.css fonts images ......... Scripts Plugin1 src …
David Dury
  • 5,537
  • 12
  • 56
  • 94
0
votes
0 answers

why bundling doesn't work but when I declare it explicitly, it works?

I wonder why bundling doesn't work. Here is my scenario. I use foundation framework for my front-end. Now, I include foundation.js, foundation.magellan.js. It works fine if I declare it like this.
Boy Pasmo
  • 8,021
  • 13
  • 42
  • 67
0
votes
1 answer

Asp.net Bundling/minification return old files after minification

We are using bundling and minification with asp.net MVC with web optimization 1.1.0.0. Previously it was working fine however we are facing issue now. We have changed one of the js file and it is not reflecting in the minification, it taking older…
0
votes
1 answer

Bundling unrelated javascript script resources

I have at least 15+ javascript libraries & references in my MVC web application project. For each of these libraries they are independently bundled and minified. This means that when a page is requested the client browser is having to make 15+…
Grant
  • 11,138
  • 32
  • 94
  • 140
0
votes
1 answer

Fullcalendar js how to build from source

I have downloaded a version of the fullcalendar from this link -> https://github.com/PaulAik/fullcalendar How can i build the final fullcalendar.js file from source? The readme file says: "You must have a Java runtime environment (accessible by the…
0
votes
1 answer

.NET bundling and custom runtime {placeholders}?

I have different css files depending on the browser and device. One bundling approach would be to register each combo "phone.ie", "desktop.ie", "phone.chrome", etc. and have the Render method string.format for the right bundle ("~/content/{0}.{1}",…
Levitikon
  • 7,749
  • 9
  • 56
  • 74
0
votes
0 answers

Asset bundling in ASP.NET Web Forms using Global.asax?

I'm trying to add bundling (a la MVC BundleConfig) to my ASP.NET WebForms Application. I was referencing this as a guide, but I can't access my class/namespace or the System.Web.Namespace from my Global.asax file. How can I access my classes from…
Ber53rker
  • 1,036
  • 3
  • 17
  • 26
0
votes
1 answer

Web Essentials is opening bundle file on every build, how to turn it off

I have installed “Web Essentials 2013 nightly”. I am using it to bundle JavaScript files. Every time I compile my project in Visual Studio the js.bundle file get focused in Solution Explorer and file is opened in code editor. How to turn it off? I…
Adam Kopciński
  • 505
  • 4
  • 12
0
votes
3 answers

Icons not shown while using Bundling

I am using Bundling for my CSS and use that in my MVC Layout.cshtml page. The CSS files are included correctly but the icons are not shown properly. Should i do something to include icons? MY Bundle code bundles.Add(new…
Madhu
  • 2,416
  • 3
  • 15
  • 33