Optimizing the website Performance using ASP.NET 4.5

added by kalyanms1
9/22/2011 9:35:13 AM

151 Views

There are so many different ways you can optimize your website performance. You may think why we need to worry about website performance when internet connection speed is growing faster and faster. Just few examples: Google did a test, if their search page is 500ms slower then they are going to lose 20% their traffic. If Amazon runs 100ms slower then there is 1% drop in their sales which is nearly $1 million a day. So it is important build the website which are fast in response time.


3 comments

dpeterson
9/22/2011 9:37:06 AM
Using a cookieless domains for static content will also improve performance, otherwise every time an image, css, or script file is requested all the cookies are sent in the request and the response.
To use cookieless domains, serve static content from a different subdomain (static.myawesomesite.com) and set your cookies for www.myawesomesite.com. In that way, requests to static.myawesomesite.com will not contain any cookies. If you use cookies heavily this can shave up to a couple kilobytes off of each request.

vijayst
9/22/2011 10:25:59 AM
Sprites are one way to reduce the number of image downloads. There is a <asp:SpriteControl> which is available as part of NuGet to do this.

dpeterson
9/22/2011 10:32:23 AM
Vijay, there's also http://requestreduce.com/ which was on the front page a few days ago which will automatically sprite images for you.