OptimizationWeek.comWebsite performance news and views™ |
Home Sitemap Issues About Contact |
New book on Website Optimization Secrets
Free Newsletter |
Flash: We've received sporadic reports of a frustrated Santa seen leaving the scene of some online shopping sites. We sent our action news team out to investigate. Upon encountering Santa near a popular store, we asked old St. Nick, why response times are poor? He promptly replied, "I'll never make Christmas with response times like these. Fat sites and high traffic brought the Web to its knees." As he jumped on his sleigh, and drove out of site, we thought we'd investigate the cause of his plight.
On narrowband connections, where most can relate, shopping online has become hurry up and wait. So in the spirit of the season, with not a touch of the Grinch, we bring you our first annual, Where to Shop in a Pinch.
'Twas the week before Christmas, and all through the Net,
Web executives dreamed of the perks they would get;
The graphics were hung by their logos with care,
In hopes that St. Nicholas soon would be there;The children were nestled all snug in their beds,
While visions of Playstations danced in their heads;
And mom on her Wintel, and I on my Mac,
Had started to surf for one final knickknack.When there on my screen 'lo what should appear?
But a broken down sleigh, and eight weary reindeer.
With a bent-over driver, so dull and so slow,
Weighed down by a burden more heavy than snow."What cruelty," he fumed "what heart black as coal,
Would keep me from meeting my gift-giving goal?"
I knew in a moment that it must be St. Nick,
Stuck in the quagmire of web sites not quick.From oversized graphics to overstuffed code,
It became very clear what was slowing the load;
"Now, DASHER! now, DANCER! now, PRANCER and VIXEN!
These overslow web sites we must be a fixin'!"As dry leaves that before the wild hurricane fly,
When they meet with an obstacle, mount to the sky,
So up to speed guidelines these shop-sites must go
To fill homes with presents and rake in the dough.Poetry collaboration by Bob Peyser, Andy King, and either Clement Clarke Moore or Major Henry Livingston, Jr.
Speed Analysis of the Top Shopping Sites
We analyzed the home pages of Amazon.com, BarnesandNoble.com, BestBuy.com, Buy.com, Ebay.com, EddieBauer.com, JCPenny.com, LLBean.com, Overstock.com, Sears.com, Shopping.com, shopping.yahoo.com, Target.com, and Walmart.com to see how well they comply with the speed guidelines published in our book Speed Up Your Site. The home pages were analyzed using our free Web Page Analyzer plus a tool that takes into account dynamically generated content. The results of our analysis are listed in Table 1, sorted by total page size.
Table 1: Shopping Home Page Speed Analysis (file size in bytes)
Home page Total Page Size HTTP Requests HTML Size/ Files JavaScript Size/ Files CSS Size/ Files Image Size/ Files Flash Size Download Time* (seconds) JCPenny.com 87,764 33 3,2251 1,526/1 14,654/1 68,359/30 N/A 13/36 BestBuy.com 94,460 61 12,2841 43,061/7 6,284/1 32,831/52 N/A 25/96 Shopping.com 116,470 26 6,1511 24,331/3 26,036/3 59,952/16 N/A 20/31 LLBean.com 123,650 29 27,052 17,090/7 12,058/1 67,450/20 N/A 18/39 EddieBauer.com 136,867 19 19,354 33,156/9 0/0 84,357/9 N/A 18/60 Amazon.com 148,328 56 68,327 0/0 0/0 80,001/55 N/A 28/492 BarnesandNoble.com 159,759 49 65,834 6,365/3 6,054/2 81,506/43 N/A 21/44 Ebay.com 163,521 68 40,359 65,158/16 63/1 45,056/47 12,885/33 25/70 Sears.com 177,848 62 66,278 9,514/2 19,862/1 60,618/57 21,576/1 43/70 Walmart.com 181,899 43 9,8351 17,762/2 12,253/1 142,049/39 N/A 18/80 Overstock.com 228,162 47 46,080 15,097/2 6,087/1 160,898/43 N/A 25/60 Target.com 288,875 39 82,246 0/0 0/0 206,629/38 N/A 13/75 shopping.yahoo.com 300,545 43 41,560 159,402/7 3,002/1 33,883/31 62,698/33 14/36 Buy.com 316,710 68 9,7611 0/0 8,654/1 298,295/66 N/A 14/102 Average 180,347 45.9 35,596 28,033/4.2 8,215/1 95,741/39 N/A 21/60.6 *The download times were measured on a Macintosh PowerBook with a fast 56Kbps connection. The first number is the time it takes for useful content to display in seconds. The second figure is the time it takes for the entire page to load (i.e., useful content/entire page)
Note: The total page size includes dynamically generated content (ads delivered by JavaScript, etc.).
1JCPenny.com, Buy.com, Bestbuy.com, Shopping.com, and Walmart.com use HTTP compression to compress their HTML home page.
2Note that Amazon's top navigation bars load in half the initial time shown, but with no alt attribute values do not qualify as useful content.
3Ebay.com and shopping.yahoo.com use a small Flash movie to load other Flash movies, similar to GM's technique to delay loading.
Results Summary
The shopping homepages averaged 180,347 bytes in total size, requiring 45.9 HTTP requests per page. HTML file size averaged 35,596 bytes, due in part to five sites that used HTTP compression (Buy.com, Bestbuy.com, JCPenny.com, Shopping.com, and Walmart.com). JavaScript averaged 28,033 bytes in 4.2 files, while CSS contributed 8,215 bytes in 1 file. Images made up the bulk of the total payload with 39 images contributing 95,741 bytes on average. Overall, these pages averaged 21 seconds to display useful content and 60.6 seconds to load the entire page on a 56Kbps modem (see Table 1).
Discussion
JCPenny.com had the smallest total page size at 85.7K (see Figure 1). It also featured optimized HTML that was compressed with HTTP compression for a lilliputian 3,225 byte HTML page. BestBuy.com came in second at 92.2K (See Figure 2). Some of the larger sites (Target, shopping.yahoo.com, Buy.com, and Walmart) had relatively fast initial load times, due in part to their minimal use of external files in the
head
of their HTML documents.There was a large variation in the number of external CSS and JavaScript files among the shopping sites tested. Target and Amazon used no external CSS or JavaScript files, while Ebay used a total of 17. By embedding style and behavior within their XHTML files, Target and Amazon save costly HTTP requests that delay the initial display of useful content. Target and Buy.com in particular displayed useful content relatively quickly while having slower than average total load times (75 seconds and 102 seconds respectively). This shows how an efficient layered design can overcome bulky pages to create faster initial display times.
Buy.com scored a near-perfect high-low hand, with the slowest total load time (102 seconds) yet tied for second for initial content display time (14 seconds), see Figure 3.
Overall, the three biggest contributors to average page size were image size (53.1%), HTML page size (19.7%), and external JavaScript files (15.5%). The pages with slower initial load times had larger HTML files, more HTTP requests, or larger total payloads.
Delayed Flash Gratification
Two sites used GM's technique of using small Flash movies that load other movies after the page loads. Ebay.com and shopping.yahoo.com use a small nearly-empty Flash "stub" movie that loads quickly and loads rich media ads after the bulk of the page has displayed. This gives better response times while providing a rich media experience for the user. Yahoo Shopping's faster than average response times (14 and 36 seconds) show how effective this technique can be.
HTTP Compression
Five of the top fourteen shopping sites tested used HTTP compression to compress their HTML home pages. Bestbuy.com, Buy.com, JCPenny.com, Shopping.com, and Walmart.com saved 84.5% by compressing their home page HTML from 265,544 bytes to 41,256 bytes. They did not utilize HTTP compression to compress external CSS or JavaScript files, although any code included within their XHTML would be compressed. Typically gzip compression saves 80% to 85% off of HTML file size, due in part to its redundancy. See our Use HTTP Compression Speed Tweak of the Week for more details.
Graphic Intensive Experience
As you would expect, all of these sites used a number of graphics and in some cases Flash movies to attract the eye and open the wallet. However, each unique graphic requires a round-trip to the server, introducing indeterminate delays. EddieBauer.com had the fewest graphics (9) with 19 total HTTP requests, while Buy.com had the most graphics (66) but like Target and Amazon used no external JavaScript, speeding up the initial display of useful content. Ebay tied Buy.com for the most HTTP requests (68) required, due in part to their 16 external JavaScript files, 5 of which were in the
head
of their XHTML document.In summary, the most common performance problems that we found were:
- Overmodularized JavaScript
- Complex nested tables
- Numerous HTTP requests (45.7 on average)
- Large image payloads (95,741 bytes on average)
- Embedded styles (font, bgcolor, etc.)
- Page redirects
Suggested Solutions
To speed up initial response times we recommend combining and refining external JavaScript and CSS files referenced in the
head
of these HTML documents. Optimize HTML, graphics, JavaScript and CSS to minimize file size. Replace graphic rollovers with CSS2 rollovers to save space and minimize HTTP requests. Applying HTTP compression to all the remaining textual content that can be compressed (JavaScript and CSS files in thehead
for example) would also speed page display for most modern browsers.Conclusion
In our opinion, all of these shopping sites need an express checkout lane. Four sites loaded useful content at least 33% faster than average (JCPenny.com, Target.com, shopping.yahoo.com, and Buy.com). However, all of the shopping sites we tested did not meet our response time guidelines at 56Kbps. JCPenny.com was the smallest and fastest site tested, using HTTP compression and optimized HTML. On average, the fourteen shopping sites tested averaged over a minute to fully display on a 56Kbps modem (60.6 seconds).
The art and science of web design is to balance visual appeal with fast response times. Online merchants who best optimize their user's experience, especially for narrowband connections, will reap the greatest rewards.
And I heard him exclaim, as he drove out of site; speedy shopping to all, and to all a good night.Further Reading
- The Art and Science of Web Design
- An excellent guide to "intelligent content that can figure out how to display itself correctly" created from dynamic publishing systems (databases and scripted templates). By Jeffrey Veen.
- Gomez' E-Tail Index
- The Gomez Holiday E-Tail Performance Index shows how fast and reliable the top 37 shopping destinations are, and reveals which sites have been naughty and nice this holiday season.
- Internet Merchants Struggle With Traffic
- Some online retailers tested by Keynote in December failed to fully load, or complete common transactions. The New York Times, Dec. 15, 2003.
- Minimize HTTP requests
- By combining external files you can save costly HTTP requests and speed up your site.
- Online Holiday Shopping Sites Still Straining Under the Load, Reports Keynote
- The success rate for 13 online retailers dipped to 93.7% in December according to Keynote Systems, Dec. 10, 2003.
- Optimizing JavaScript for Download Speed
- Shows how to speed up your JavaScript downloads.
- Port80 Software's Fortune 1000 Compression Survey
- Port80 Software found that only 3% of the Fortune 1000 uses HTTP compression.
- Reports: E-Tailers Lagged in Black Friday Stampede
- "Gomez said Walmart.com ranked dead last among the Web sites it tracks in terms of Black Friday response time for purchases, with the site taking as long as 54 seconds to complete transactions." ECommerce Times, Dec. 4, 2003
- Response Time: Eight Seconds, Plus or Minus Two
- Summarizes current research into the psychology of delay on the Web, and offers web design guidelines. See also Flow in Web Design. By Andy King.
- These Sites are a Shopper's Dream
- Broadband shoppers are five times more likely to buy than their dial-up counterparts. Business Week, Nov. 25, 2003.
- Use HTTP Compression
- A brief introduction to content encoding. From Speed Tweak of the Week by Andy King.
About the Author
Andy King is the founder of five developer-related sites including this one, and the author of Speed Up Your Site: Web Site Optimization from New Riders Publishing. He publishes the monthly Bandwidth Report, the weekly Speed Tweak of the Week, and the semi-weekly WebReference Update.
Disclaimer
Any trademark or tradenames used in this article are owned exclusively by their owners and they do not endorse or sponsor this site. Optimization Week, Santa, and the author are not affilliated with any of the shopping sites tested. All opinions expressed herein are based on information that we believe to be reasonably accurate at the time of publication. If you find any errors or misstatements of fact please contact us.
Copyright © 2003-2020 Website Optimization, LLC - Try our new conversion rate optimization service, and free website speed test Local Dumpster Rental | Sleep Supplment
Last modified: November 09, 2004