Presented By: Mahmoud Ghoz ASP.NET Performance Secrets
Agenda Meet the icons Tips for reducing page load times. Tips for Minimizing HTTP Requests. Quick tips Meet the Tools
Meet the icons ASP.NET Developer Designer IIS Administrator Everyone
Tips for reducing page load times ASP.NET pipeline optimization Dev
Tips for reducing page load times ASP.NET pipeline optimization 14 handler are defined in machine.config(4.0) Dev
ASP.NET process configuration optimization Defines process level properties like  How many number of threads ASP.NET uses How long it blocks a thread before timing out How many requests to keep waiting for IO works to complete. Tips for reducing page load times Dev
ASP.NET process configuration optimization The default is in many cases too limiting. Nowadays hardware has become quite cheap and dual core with gigabyte RAM servers have become a very common choice Tips for reducing page load times memoryLimit minWorkerThreads maxWorkerThreads (20) maxIOThreads (20) minIOThreads maxAppDomains Dev
Content Delivery Network (CDN) Tips for reducing page load times EdgeCast Akamai Limelight Cachefly All
Making best use of Browser Cache Cache Static Content for Longer Period Store cached content under a common folder Reuse Common Graphics Files SSL is Not Cached, so Minimize SSL Use  HTTP POST Requests are Never Cached Tips for reducing page load times All
Making best use of Browser Cache Use same URLs Tips for reducing page load times www.  Ghoz.NET/default.aspx Ghoz.NET/default.aspx != All
Making best use of Browser Cache Configure Static Content Caching in IIS  Tips for reducing page load times Admin
Tips for reducing page load times Making best use of Browser Cache Configure Static Content Caching in IIS  Admin
Tips for reducing page load times Making best use of Browser Cache Configure Static Content Caching in IIS  Admin
Prevent Denial of Service (DOS) attack  This should bring the server down  Tips for reducing page load times When the number of request exceeds the threshold  from the same IP , deny further request for some duration (DYOS) Dev
Use HTTP compression Tips for reducing page load times Fiddler Dev
Use Microsoft AJAX Minifier Remove unnecessary elements such as white space, function names, code comments, debug, and trace statements Tips for reducing page load times Dev
Avoid Redirects http://astrology.yahoo.com/astrology A 301 response containing a redirect to  http://astrology.yahoo.com/astrology/ Tips for reducing page load times Dev
Use CSS sprites or Image maps Avoid using tables for layout Choose the appropriate format for images Tips for reducing page load times Designer
Don't Scale Images in HTML Make favicon.ico Small and Cacheable Put Style sheets at the Top Put Scripts at the Bottom Tips for reducing page load times Designer
TIPS FOR MINIMIZING HTTP REQUESTS
Fiddler Remove Unnecessary Headers All
X-Powered-By: ASP.NET Remove Unnecessary Headers Admin
Remove Unnecessary Headers X-Powered-By: ASP.NET Admin
Remove Unnecessary Headers X-Powered-By: ASP.NET Admin
Server: Microsoft-IIS/6.0  UrlScan Security Tool Security tool that restricts the types of HTTP requests that Internet Information Services (IIS) will process Remove Unnecessary Headers Server: Microsoft-IIS/7.0  Admin Dev
X-AspNet-Version: 2.0.50727  X-AspNet-Version: 1.1.4322  Remove Unnecessary Headers X-AspNetMvc-Version: 1.0  Dev
QUICK SMALL TIPS
Only use ViewState when necessary Set the ScriptManager LoadScriptsbeforeUI property to false. Combine Client Scripts into a Composite Script Minimize the content of the UpdatePanel Quick small tips Dev
Make JavaScript and CSS files external Avoid using query parameters in static content URLs Place CSS inside the head tags Avoid Redirects Caching AJAX calls on browser  Use Get instead of Post Quick small tips Dev
TOOLS
Firebug https://addons.mozilla.org/en-US/firefox/addon/1843   Tools Dev
YSlow  https://addons.mozilla.org/en-US/firefox/addon/5369   Tools Dev
Httpwatch http://www.httpwatch.com/download/ Tools Dev
Page-Speed  http://code.google.com/speed/page-speed/ Tools Dev
Dust-Me Selectors Firefox extension it finds out which selectors in the stylesheets used are not used.  http://www.sitepoint.com/dustmeselectors/ Tools Dev
Bird-Power Minify the JavaScript Files Minify the CSS Files Mash files together Validate JavaScript Files Integrated with Visual Studio  http://www.weirdlover.com/2010/07/18/chirpy-attains-godlike-abilities-in-version-1-0-0-4/ Tools Dev
REFERENCE
http://www.codeproject.com/KB/aspnet/10ASPNetPerformance.aspx   http://www.4guysfromrolla.com/articles/120209-1.aspx http://developer.yahoo.com/performance/rules.html Reference
WebClientGuidance  2009-11-30 http://technet.microsoft.com/en-us/security/cc242650.aspx   Reference
Questions
Thank You

Asp.net performance secrets