Asp.net Website Performance Improvement Checklist

I have an asp.net website name http://www.go4sharepoint.com

I tried almost all ways to improve the performance of this site, I even tested firebug and the addon at page speed on Firefox, but for some reason I am not happy with the result.

I also tried to remove the spaces, remove the viewstate, optimize the code that displays it, apply GZip, I also do not have heavy session variables, but still, when I compare with other popular websites, it does not match the value.

I have a CodeProject site with validation, and I was surprised that despite the fact that they have a lot of things displayed on the website, the download is fast and they also have good download speeds.

For all experts, please suggest me where I am wrong in my development.

Thanks.

+4
source share
7 answers

First of all, now I see your pages and they are not gzipped. You ask a question for gzip, but it seems that in the end they did not fasten.

Secondly, your pages go very fast, they are small, and the delay time is slow, which means that your sql call is good.

I see only the problem on the banner.php page, for some reason these are the seams that delay. Javascript makes this call to banner.php and waits until it receives a return, makes it, and continues.

Check out these 2 issues to fix your slow load.

About banner.php

Here is one of the calls you make on the page. http://sharepointads.com/members/scripts/banner.php?a_aid=go4sharepoint&a_bid=ac43d413 and you do at least 9 of them !. on the first page.

This page has a 400ms lag x 10, plus the delay for loading and reloading is the delay you are looking for. and not sent straight from you. You need to find another way to download them ...

I can suggest another way, but I should not go ... maybe tomorrow

Gzip

An external test verifying that your pages are not gzip . Just view the report .

+3
source

When optimizing the html visible to the client, the server side is sometimes ignored. What about:

  • Server Side Caching - From a Solid Page to Data Caching
  • Reduce the number of database queries completed. And as soon as it is retrieved from the database, cache it.
  • Is hardware up to your server? Memory processor?

EDIT:

And for completeness, here is a list from the performance section of a popular question. What should a developer know before creating a public website?

  • If necessary, perform caching, correctly understand and use HTTP caching
  • Image Optimization - Do not use 20 KB of image for a repeating background.
  • Learn how gzip / deflate content (deflate is better)
  • Combine / merge multiple style sheets or multiple script files to reduce the number of browser connections and improve gzip's ability to compress duplicates between files.
  • Take a look at Yahoo's Exceptional Performance website for many great tutorials, including improved foreground performance and their YSlow tool. Google Page Speed ​​is another productivity profiling tool. Both require Firebug.
  • Use CSS Image Sprites for small related images, such as toolbars (see the "Collapse http requests" point).
  • Busy websites should consider the separation of components by domain. In particular...
  • Static content (i.e. images, CSS, JavaScript and, as a rule, content that does not require access to cookies) must go to a separate domain that does not use cookies, since all cookies for the domain and its subdomains are sent from each request to the domain and its subdomains.
  • Minimize the total number of HTTP requests the browser needs to display the page.
  • Use the Google Closure compiler for JavaScript and other minimization tools.
+1
source

Are you using JavaScript and are these JavaScript files uploaded at the very beginning? Sometimes this slows down the page ... Minimizing JS files helps reduce the size and, if possible, load scripts dynamically after the page loads.

Using an approach like http://www.pageflakes.com can also help when content is downloaded after the fact.

Finally, is it the speed associated with your machine or hosting? Tracing in a command window can help determine network traffic.

NTN.

0
source

The stackoverflow user really has a good book on this subject:

http://www.amazon.com/gp/product/1430223839?ie=UTF8&tag=mfgn21-20&linkCode=as2&camp = 1789 & creative = 390957 & creativeASIN = 1430223839

A few recommendations after viewing your site:

  • Put some of your static files (images, js, etc.) on different domains so that they can be downloaded at the same time. (also disable cookies for these domains)
  • Use image sprites instead of individual images.
  • Move when things load. It looks like the script files for ads support content. First you need to make the site load content by putting it in the HTML before the ad. In addition, make sure that the height and width of the objects are specified so that the layout does not change as it loads, which makes the site slow. Use the Google Chrome Developer Tools to see the download order and schedule for all downloads of your asset.
  • Most of the slowness looks like it is being downloaded from sharepointads.com. Perhaps a smaller number adds or uses space for them that is already reserved for them by specifying the height and width.
  • Adding a distant future expires in the header for all static content.
  • Serves scaled images. The browser is currently resizing images. You could save tons of bandwidth by displaying images of an appropriate size.

Also download YSlow (from yahoo) and Page Speed (from Google)

0
source

Have you identified any slow queries? You might consider running a profiler against your database and see if anything, if it works for a long time ...

0
source

Before you change the code, you need to find out where the problem really is.

Which component is "slow"?

  • Browser?
  • Server?
  • Network?
0
source

Another good post for performance.

Just check out http://howto-improveknowledge.blogspot.com/2011/11/performance-improvement-tips.html

which explain how to find a bottleneck for performance.

-2
source

Source: https://habr.com/ru/post/1312586/


All Articles