| By Andreas Grabner | Article Rating: |
|
| October 29, 2009 10:15 PM EDT | Reads: |
673 |
Web Page Performance was one of the big topics at the Ajax Experience in Boston this week. Steve Souders - author of High Performance Web Sites and Even Faster Web Sites - talked about the top things to look into when analyzing web page performance.
Business impact on Web Site Performance
Steve presented some recently published studies from Google, Microsoft and Shopzilla showing how much of a business impact web page performance has. Google and Bing presented a study showing how many people leave the site with degrading page performance and many fewer clicks these users make. Lost users and fewer clicks lead to less generated revenue with their ads.
Shopzilla showed how they could boost their business and save on the hardware side by improving their web site performance:

Shopzilla Performance Summary
Top Low Hanging Fruits
In Steve Souders opinion, most of the web performance problems relate to how the web page is designed leading to issues like too many embedded resources, too large JavaScript files, missing compression and client side caching. Following is a list of some low hanging fruits in order to speed up web site performance. I am using the FREE dynaTrace AJAX Edition to visualize the individual use case scenarios:
Too many network roundtrips due to too many embedded resources
Analyze the actual network roundtrips when requesting a page. Not all embedded resources (like images, css, ...) get loaded in parallel by the browser. Each browser has a set of physical network connections that are used to downloaded embedded objects. The following dynaTrace network view shows that - when accessing http://280slides.com/Editor - 172 .png images have to be loaded by the browser. It also shows how loading these objects gets deferred due to the network connection limitation of the browser.
Many embedded images slow down overall page page
You can use several different techniques to lower the amount of network roundtrips. If images are static think about client side caching. Or consider CSS Sprites to reduce the number of images by merging them into one bigger image. Another technique is Domain Sharding to overcome the network connection limitations.
No optimal use of Caching and Compression
Analyze the embedded objects for the usage of client side caching and compression. Static images can be cached on the browser to reduce network roundtrips on subsequent page requests. Look at the http response to analyze current cache settings and analyze if they could be cached in case they are not. Same thing holds true for compression. Large files can be compressed lowering the required network bandwidth.
Request details showing current cache and compression settings
Check out this blog entry by Puneet Sangal that gives guidance on content caching and compression.
JavaScript files blocking browser downloads
When JavaScript files are downloaded by the browser - the browser blocks all other activity, e.g.: downloading additional embedded images. This holds true for older browsers (IE 6, FF 3). Newer versions of these browsers at least parallel load other resources - but - once a JavaScript file is downloaded it will be executed. During execution all other tasks are stopped. Looking at the network request image above shows us that there was a big gab after one of the JavaScript files was downloaded. This tells us that the browser actually executed the JavaScript filed and postponed downloading of the remaining embedded objects. Looking at the JavaScript that got executed shows us where the time was actually spent:
JavaScript Execution blocking additional downloads
Check out this blog entry from webdigi - it explains how to avoid blocking content download by JavaScript
Failing network requests
AJAX Frameworks tend to dynamically load embedded objects for different reasons either using XHR (XmlHttpRequest), iFrames or by creating DOM objects. Incorrect constructed URLs lead to failing network requests. Using all different types of frameworks that use techniques like that make it hard to identify where in the JavaScript library these URLs are constructed. With the dynaTrace AJAX Edition you can solve this by drilling from the failed network request in the network view down to the PurePath view showing the JavaScript methods that executed the call:
JavaScript library dynamically constructs URLs
In the above example the JavaScript framework tried different network path patterns to retrieve a specific file. Each attempt caused a very expensive network roundtrip (>500ms) totalling up to several seconds to retrieve a certain file.
Any other low hanging fruits?
Books like those from Steve Souders or blog entries from the web performance community cover many approaches and checklists to speed up your web page. Please share your experience and post your feedback on this blog.
Published October 29, 2009 Reads 673
Copyright © 2009 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By Andreas Grabner
Andreas has 10-years’ experience as an architect and developer, and he currently works as a senior performance architect and technology strategist for dynaTrace Software, where he influences product strategy and works closely with customers in implementing performance management solutions across the application life cycle. He is a regular speaker at software conferences, writes for a number of technology publications, and blogs at http://blog.dynatrace.com
- Yahoo! to Present at 4th International Cloud Computing Expo
- Windows 7 – Microsoft’s First Step to the Cloud
- Visual Studio 2010 Is Cloud Friendly
- Jill T. Singer of CIA to Present at Cloud Computing Expo on November 2
- Adobe Flex Developer Earns $100K in New York City
- Microsoft Falls Off Cliff, Keeps on Ticking
- SplendidCRM for Microsoft Windows Azure
- New Version of TuneUp Utilities Available in Late October
- ASP.NET Membership Provider in the Cloud
- Microsoft to Data-Mine Facebook & Twitter
- Binary Serialization and Azure Web Applications
- Amazon RDS vs. SQL Azure
- The Difference Between Web Hosting and Cloud Computing
- Yahoo! to Present at 4th International Cloud Computing Expo
- Eval JavaScript in a Global Context
- Windows 7 – Microsoft’s First Step to the Cloud
- Social Media on Ulitzer - Strategy Nets New AUM for RIA
- EC Wrong, Wrong, Wrong – and Sloppy to Boot: Intel
- This Bing Thing Is Working
- Microsoft Expression Web Has Got Game
- Visual Studio 2010 Is Cloud Friendly
- Kaazing Adds Networking Industry Executive and Startup Veteran
- Jill T. Singer of CIA to Present at Cloud Computing Expo on November 2
- Silverlight Polling Duplex Channel is NOT a Scalable Solution
- Where Are RIA Technologies Headed in 2008?
- The Top 250 Players in the Cloud Computing Ecosystem
- Accessing the ASP.NET Authentication, Profile and Role Service in Silverlight
- Silverlight 2 - Adobe Flex Killer Is on Its Way!
- Building Great AJAX Applications Using ASP.NET
- Spice Up User Experience with Silverlight
- Is the Silverlight Adoption Rate Artificially Inflated?
- Kaazing Announces Support for Silverlight
- Will Google's Android Sink or Swim?
- VS 2008 Builds AJAX-based Web Apps
- Rich Content Rotator for ASP.NET
- Getting Started with Silverlight: Zero to Hero




































