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

AjaxControlToolkit.config file generates error message "AjaxControlToolkit" is not declared

Using the AjaxControlToolkit.config file from the ASP.NET Ajax Toolscriptmanager page:
0
votes
1 answer

requirejs optimizer vs asp.net style/script bundling vs gzip compression

Using asp.net server side I can do style bundling for .css files and script bundling for .js files. Alle .css or .js files are packed into one file for each format and minified. Now I am also using requirejs on client side and asked myself now…
Elisabeth
  • 20,496
  • 52
  • 200
  • 321
0
votes
1 answer

Google Closure Compiler SourceMap with multiple files

How can I instruct google closure compiler to create a map file for my minified files that are in different folders preserving the right relative paths. I cannot even specify a sourceRoot as option in sourcemap generation I have a javascript file in…
0
votes
1 answer

.NET Minification - finding minified files in a subdirectory

Is it possible using the .NET minification / bundling mechanism to create a bundle that will search for the minified files in a subdirectory: Uncompressed:…
Dismissile
  • 32,564
  • 38
  • 174
  • 263
0
votes
1 answer

Render bundled scripts from app in Virtual Directory (VD) to an app in another VD

I have 2 projects ABC and XYZ created as 2 separate Virtual Directories in IIS (7). Now my problem is I have many .JS (script) files in project XYZ that need to be bundled and minfied and rendered in an aspx page (containing HTML code) that is…
Sharma K
  • 107
  • 1
  • 11
0
votes
2 answers

css minified needed in development stage?

For readability I created my stylesheets like this: div.icons,div.sizes,div.configs { width:213px; float:left; } Is it necessary to use this style for performance reasons: div.icons,div.sizes,div.configs{width:213px;float:left;} I am using…
Pindakaas
  • 4,389
  • 16
  • 48
  • 83
0
votes
1 answer

Can WebGrease minify and bundle .less files?

I'm trying to implement minification and bundling into an AspNet MVC 3 project using WebGrease. I know WebGrease can minify and bundle .js and .css files but can it be used for .less files also?
Freddy V
  • 364
  • 3
  • 11
0
votes
2 answers

Use MVC4 bundle tool or use a third part to bundle js and css

Is the included bundle tool in MVC good enough? Is their any big reason not to use it? I been working with squishIt in webforms and never been any problem. But now im on a MVC project and i've seen that MVC has it own bundle mecanism. So should I…
thatsIT
  • 2,085
  • 6
  • 29
  • 43
0
votes
1 answer

Eliminating need for require js from optimized app

I've built my app using require.js in order to keep everything modular. Having finished it turns out that require.js itself is bigger than my optimised app code. Is there some way I can get r.js to optimise in such a way that I don't need to include…
wheresrhys
  • 22,558
  • 19
  • 94
  • 162
0
votes
1 answer

MVC5 Bundler being too greedy?

I have a bundle bundles.Add(new ScriptBundle("~/bundles/jquery").Include( "~/Scripts/jquery-{version}.js")); Here is my script folder's jquery prefixed scripts Why (when i build for release) is my 90.4KB minified file…
0
votes
1 answer

mvc4 bundling minification not working correctly

I got a bundling problem in my release-mode on IIS7 (Asp.net mvc 4) in my BundleConfig: var vTickerJs = new ScriptBundle("~/Scripts/vtickerjs").Include( "~/Scripts/vticker/jquery.vticker.*" ); …
reinhard
  • 818
  • 1
  • 10
  • 24
0
votes
1 answer

At what point in the .NET Pipeline do Bundles get written in to the HTML? - MVC 4

I've got an application that Bundling works fine on, however I have to go and demonstrate the application away from our network, so I'm transferring it to a VM on my laptop. On my laptop The bundles aren't rendering on the page, and when I mean not…
MrBliz
  • 5,830
  • 15
  • 57
  • 81
0
votes
1 answer

Typescript bundle JsTransformer not working

I created an MVC Web API project in Visual studio, and I included the Bundle Transformer: Core extension. https://www.nuget.org/packages/BundleTransformer.Core/1.7.21 In my BundleConfig.cs file, I have the following code: var typeScriptBundle = new…
Cloud9999Strife
  • 3,102
  • 3
  • 30
  • 43
0
votes
1 answer

Single Page Apps JumpStart - ScriptBundle not bundling new scripts

I have been using Single Page Apps JumpStart on PluralSight developing a new app with all these new JavaScript libraries. I keep running into this reoccurring issue where in each chapter I add the new scripts that I need as part of the bundle. In…
0
votes
1 answer

Render Script bundle from other application

I am authoring an MVC application that is hosted by another MVC hosting solution. The dll from the client app is copied into the bin folder of the hosting app. The Views, Views/Shared, Scripts, Content, ... are all copied to the hosting project as…
Rockdocta
  • 604
  • 1
  • 9
  • 26