Categories
Bloggers
Blogs RSS feed

Tips to optimize your website performance

by Ivan Dimitrov
Here are some good practices that you can use to optimize the performance of your website.

 

Generally the pages output depends on what you have on your pages - how many controls you have on a page,  how many images images, scripts etc you are loading, how do you bind the controls to your data source etc.

  • Use  ScriptResourceHandler that processes all requests for embedded script files that are referenced through the ScriptManager class. By default, the ScriptResourceHandler class compresses and caches embedded script files for Internet Explorer 7. You can turn compression and caching off through the EnableCompression and EnableCaching properties. When an ASP.NET page that contains AJAX functionality runs on IIS 7.0 on Windows Vista , and if the managed pipeline mode of IIS 7.0 is set to Integrated, the scripts processed by the ScriptResourceHandler class are not cached. The scripts are cached when the managed pipeline mode is set to Classic. For more information about the managed pipeline mode of IIS 7.0, see Upgrading ASP.NET Applications to IIS 7.0: Differences between IIS 7.0 Integrated Mode and Classic Mode.


  • Use HTTP compression to decrease the page size before sending the page. The idea of compression is that client receives the compressed content, then decompresses it on the fly before rendering the page. You could try to enable IIS compression - IIS 7: HTTP Compression API Reference
  • Another options  - HTTP Gzip and Deflate compression ( deflate is better).
  • Using RadStyleSheetManager - when added to a page the stylesheet requests will be combined into a single request. By default each of the RadControls for ASP.NET Ajax serves a set of files (stylesheets) needed for its proper client-side look. When loading a page with several controls on it, the number of these files can become very large, often resulting in a reduced page load time and increased traffic. So RadStyleSheetManager reduces the bandwidth. You could try using RadScriptManager as well. RadControls for ASP.NET AJAX supports CDN which will also decrease your bandwidth.
  • Increase the IIS Recycling

Configuring Recycling Settings for an Application Pool (IIS 7)

Configuring Recycling in IIS 6.0 (IIS 6.0) 

Configuring Worker Processes for Recycling


Using page caching should be used together with Substitution controls to specify a section of an output-cached Web page where you want to display dynamic content

 

Related articles

Observing requests with HTTP Watch and Fiddler could determine why/where a given response/request is delayed.

6 comments

Leave a comment
  1. KingKong May 17, 2010
    Thank you for the tips. I had started optimizing page performance before reading this blog post and am happy to find out I am on the right track. I could say that using caching in combination with combining script resources and minifing them helped a lot. The keep asp.net websites warm and fast article has also given me some additional insight.
  2. Danny Nov 11, 2010

    If you don't use ScriptResourceHandler, you can use this to combine and minify your js and css:
    http://www.codeproject.com/KB/aspnet/CombineAndMinify.aspx

     

  3. honeyjames Jul 13, 2013
    Be a yardstick of quality. Some people aren't used to an environment where excellence is expected.

    <a
    href="http://www.buyargumentativeessay.com/">buy argumentative
    essay</a>
  4. writing a brief bio Jul 21, 2013

    A lot of people in
    our industry haven't had very diverse experiences. So they don't have enough
    dots to connect, and they end up with very linear solutions without a broad
    perspective on the problem. The broader one's understanding of the human
    experience, the better design we will have.

    http://www.biographywriting.net/writing-biographies-with-biography-writing-services/writing-a-short-biography/
  5. Company Office Jul 23, 2013

    Everyone here has
    the sense that right now is one of those moments when we are influencing the
    future.

    http://www.incorporately.com/nz/
  6. essay writing about myself Jul 25, 2013

    Be a yardstick of
    quality. Some people aren't used to an environment where excellence is
    expected.
    http://www.essayaboutmyself.net/

    Leave a comment