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

Why YUI Compressor does not minimize leading zero (for floating-point numbers) in CSS-rules with the negative unit values?

For example, a selector like . t { margin: 0 0.5em 1em-0.2em; } is compressed to .t{margin:0 .5em 1em -0.2em} Perhaps this is an old bug in the YUI Compressor.
0
votes
0 answers

How to Interpret Google Lighthouse and Ahrefs Reports for Optimizing a Shopify Website? Can Someone Explain with Examples to a Junior Level Developer?

As a junior level developer, I'm looking to learn how to interpret Google Lighthouse and Ahrefs reports for optimizing a Shopify website. Is there someone who can explain with examples how to work with these reports and which steps to take for…
0
votes
1 answer

WebOptimizer AddLessBundle works in Dev, but not when I publish to Azure

When I publish my core3.1 website to Azure the path to the css files returns a 404 www.mysite.com/css/StyleBundle.css Here is my config. app.UseWebOptimizer(); app.UseStaticFiles(); var cssSettings = new CssSettings(); var jsSettings = new…
0
votes
0 answers

ASP.NET Core Web Optimizer: Not ugly, un minified

Is there a way to get the output of my bundles into plain text? I have played with the appsettings but the files look like they are encoded and or compressed. "webOptimizer": { "enableCaching": true, "enableMemoryCache": true, "enableDiskCache":…
Terrence
  • 2,732
  • 2
  • 18
  • 12
0
votes
1 answer

Serving multiple sites from the same wwwwroot

I have an ASP.NET Core 5 MVC application which serves multiple sites using the ASP.NET Core Web Optimizer; e.g., https://example.com https://example.com/store1 https://example.com/store2 All sites have same wwwwroot directory. I tried code below…
Andrus
  • 26,339
  • 60
  • 204
  • 378
0
votes
1 answer

Mapbox GL JS .setData() loop performance optimization

Every 50 milliseconds, I am receiving an update from a server and then I am updating the point data in my Mapbox GL JS like this: map .getSource('pointsSource') .setData(pointsData); The drama begins when I discover that my…
dclipca
  • 1,739
  • 1
  • 16
  • 51
0
votes
1 answer

Is it feasible to use 1kb .png image as background-image (On Repeat)?

I have created one png image from http://bg.siteorigin.com/. The size of that image is 1kb which I am using as background-image on body tag. I want to know --- If I use another image of 500kb(1,920px * 1,080px) it will take more time to load and…
Sudhir Dehade
  • 109
  • 1
  • 11
0
votes
2 answers

Should we use CSS child selectors or CSS class based selector?

Which one is the better way to select the child div in following HTML code in terms of performance and optimizations? Options 1:
// CSS .parent-div > div { // Some CSS for child…
UtkarshPramodGupta
  • 7,486
  • 7
  • 30
  • 54
0
votes
2 answers

Pagespeed insights showing 'Backend Error'

I am checking my website speed on Pagespeed insights but it always keeps me showing 'Backend Error'... I have checked max_execution_time and input time and other things to troubleshoot the problem but still facing the issue.. Any help?
Hritik Pandey
  • 899
  • 7
  • 17
0
votes
1 answer

Error publishing webforms project

I have a C# webforms project running in .net 4.6. When I try and publish in debug I get the following error :- Unknown server tag 'webopt:bundlereference'. This tag appears in my master page as the following: -
Shazoo
  • 685
  • 12
  • 25
0
votes
3 answers

Concurrent Downloads

I've been monitoring the Net panel of Firebug and noticed that the HTML has to be downloaded first before any other resources are downloaded. I guess this make sense since the other resources are defined in the HTML. Is there a way around this so…
StackOverflowNewbie
  • 39,403
  • 111
  • 277
  • 441
0
votes
1 answer

Bundling and Minification - Scripts are not referenced in debug mode

I am using bundling and minification feature of the web optimisation framework in a .NET MVC 5 application. BundleConfig.cs: public static void RegisterBundles(BundleCollection bundles) { bundles.Add(new…
umutesen
  • 2,523
  • 1
  • 27
  • 41
0
votes
1 answer

ASP.Net Bundle CSS style

I'm trying to make the bundle for all my stylesheets in a WebForm website. I've succesfully bundled all the scripts but CSS is giving me problem. this is the bundle.config:
Giox
  • 4,785
  • 8
  • 38
  • 81
0
votes
1 answer

Adobe Reader Broswer Plug-in - Issues with files greater than 2mb

I was wondering if anyone knew of any limitations with the Adobe Reader Browser plug-in. Currently I am experiencing issues when a visitor to my website is trying to open a PDF that is greater than 2mb in file size. I have thought about how to go…
Ant Ali
  • 380
  • 2
  • 3
  • 12
0
votes
1 answer

How do I exclude a .js file in my asp.net web optimizations?

I am using bundling included in the asp.net web optimizations, and there is a single .js file that is located in my directory that I want to ignore. Right now I'm doing: bundles.Add(new ScriptBundle("~/bundles/content") …
Scottie
  • 11,050
  • 19
  • 68
  • 109