High Performance Sites

Posted: November 21, 2010 in ASP.NET, Web Development

Points of concentration 2 build high performance web pages …

  • Make Fewer HTTP Requests
  • Reduce DNS Lookups – 2 to 4 are good and properly split Components Across Domains, cookie-free domains are ideal
  • Avoid Redirects
  • Make Ajax Cacheable and use GET for AJAX requests
  • Preload/Postload Components
  • Reduce the Number of DOM Elements – avoid iframes, empty image src and DOM access through script scaling images in html
  • Avoid 404s
  • Use a Content Delivery Network (CDN)
  • Reduce Cookie Size
  • Put Stylesheets at Top and JS files at bottom
  • Avoid inline JavaScript and CSS and duplicate scripts
  • Minify JavaScript and CSS
  • Avoid attaching too many Event Handlers to the elements – consider event delegation/bubble up
    Optimize Images, CSS Sprites and make favicon.ico Small and Cacheable

For .NET web pages …

  • Avoid server controls
  • Use Generic Handlers (.ashx files) where ever possible. ASP.NET web forms inherit from the Page class. This provides them with many events and a very detailed initialization and event model. When we don’t need for dynamic images, XML, binary files, AJAX calls use handlers which will give 5% to 10% performance boost. Refer http://dotnetperls.com/ashx for more info

References –


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s