Questions tagged [web-optimization]

The ASP.NET Web optimization framework provides services to improve the performance of your ASP.NET Web applications.

The ASP.NET Web optimization framework provides services to improve the performance of your ASP.NET Web applications.

Current services provided by the framework include:

  • bundling - combining multiple scripts or style resources together into a single resource, and thereby requiring browsers to make fewer HTTP requests
  • minification - making scripts or styles smaller using techniques such variable name shortening, white space elimination, etc.

Additionally, the framework has multiple extensibility points, enabling you to add new services over time. The easiest way to install the framework is via its NuGet package.

86 questions
0
votes
1 answer

Which type of singleton pattern should be used for creating HTTP client for my web application

I have a web application. I found that performance bottleneck could be that i am creating Http client again and again for every request. public static class DemoHttpClient { public static HttpClient GetClient() { …
Sahil Sharma
  • 3,847
  • 6
  • 48
  • 98
0
votes
1 answer

how can i load js or css files to bundle from external location outside of application

I have a requirement where i want application to load all css and js file from a share directory, i researched and found that bundle config includes directory from virtual application path only, so is there any way i can load it from external drives…
0
votes
2 answers

Scripts And Styles Not Rendering

Scripts and Styles not rendering in page HTML Source Code OF MVC ASP.NET @ViewBag.Title
Link
  • 57
  • 4
0
votes
2 answers

web optimization not rendering bundle

I have the following bundle configuration for my javascript. `BundleTable.Bundles.Add(new ScriptBundle("~/Includes/Shop/js/bundles/abc").Include( "~/Includes/Shop/js/vendor/jquery-{version}.js", …
thematt
  • 185
  • 1
  • 2
  • 15
0
votes
1 answer

ASP.NET Web Optimization - confusion about loading order

Using the ASP.NET Web Optimization Framework, I am attempting to load some javascript files up. It works fine, except I am running into a peculiar situation with either the loading order, the loading speed, or its execution. I cannot figure out…
Ciel
  • 4,290
  • 8
  • 51
  • 110
0
votes
1 answer

File size optimization - how to detect suspected files on the website?

The problem is as follows. I would like to detect files (images mostly) that could be optimized on my webpage. One way to do it is to use Google PageSpeed, but then I get only results for the exact webpage (like bbc.com). I would like to get…
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
2 answers

Initiator jquery.min.js - 404 Not Found on ajax-loader.gif and black.png

I am starting to optimize a website that I have been working on for speed, using minified JS, CSS without comments, etc. I was using chromes developer tools - network tab - to get an estimate of load times and to spot any errors. Here, I noticed…
Michael
  • 7,016
  • 2
  • 28
  • 41
0
votes
1 answer

ASP.NET MVC4 Bundling scripts not finding scripts in sub folders - why?

In my ASP.NET MVC4 application's RegisterBundles method, I create the following Script bundle: bundles.Add(new ScriptBundle("~/bundles/whatever") .Include("~/Scripts/whatever1.js") .Include("~/Scripts/Whatever/whatever2.js")); So,…
DrGriff
  • 4,394
  • 9
  • 43
  • 92
-1
votes
1 answer

Problem with google webmasters site performance review

I noticed that i have not being getting traffic via google organic searches. I decided to find out what the problem may be, and i registered on Google webmasters. From what i saw, it seems my site is not Google friendly: Performance overview (from…
Ogugua Belonwu
  • 2,111
  • 6
  • 28
  • 45
-1
votes
1 answer

ASP.NET Web Optimization Framework - throws errors

ASP.NET Web Optimization Framework throws errors in CSS minification, I tried, validated and did everything to fix, but seems framework bug /* Minification failed. Returning unminified contents. (1,1-2): run-time error JS1195: Expected expression:…
1 2 3 4 5
6