web site optimization

OptimizationWeek.com

Website performance news and views™

   
   
Home Sitemap Issues About Contact
Free newsletter
buy website optimization secrets book cover

New book on Website Optimization Secrets

Free Newsletter
Enter email:

home > reviews > president

Presidential Homepages Violate Speed and Accessibility Guidelines

As candidates turn to web sites to help pump up support, the difference between winning and losing in a tight race could come down to satisfying donors and voters online. Fast page displays and easy accessibility are two measurable prerequisites to user satisfaction. To see how well the candidates fare online, we analyzed the ten presidential homepages for speed and accessibility, and compared these results to existing guidelines. So how did the candidate sites measure up?

In a word, poorly. While some sites were constructed for faster display times, most failed in accessibility tests, and no site got high scores on all counts.

Here are the official sites of the ten presidential candidates, sorted alphabetically:

2004 Presidential Candidates: Official Sites

Speed Analysis of Ten Presidential Home Pages

We analyzed the home pages of ten 2004 presidential candidates to see how well they comply with the speed guidelines published in our book Speed Up Your Site. Each home page was analyzed using our free Web Page Analyzer and hand analyzed for any discrepancies due to embedded multimedia and dynamically loaded or generated content. The results of our analysis are listed in Table 1, sorted by total page size.


Table 1: 2004 Presidential Candidate Home Page Speed Analysis (file size in bytes)

Presidential CandidateTotal Page SizeHTTP RequestsHTML SizeJavaScript Size/ FilesCSS Size/ FilesImage Size/ FilesFlash SizeDownload Time* (seconds)
Carol Moseley Braun45,6902622,9771,214/14,200/117,299/23N/A15/15
Al Sharpton108,320225,3700/01,163/1101,787/20N/A6/28
Dennis Kucinich118,7762324,16337,451/63,356/153,806/15N/A27/35
Wesley Clark121,0333322,0040/02,184/196,845/31N/A6/23
Howard Dean144,8373257,45512,074/45,721/169,587/26N/A14/37
Joe Lieberman181,6213834,48112,231/133,288/2101,621/34N/A26/37
John Edwards203,8216545,44839,405/49,354/1109,622/59N/A24/46
John Kerry216,8575454,07111,592/45,060/182,039/4764,09516/70
Dick Gephardt592,4366456,0754,462/112,741/1519,158/61N/A41/60
Democratic Average192,59939.735,78313,159/2.38,563/1.1127,973/35.1N/A19.4/39
George W. Bush125,9646038,8000/04,200/282,964/57N/A21/45

*The download times were measured on a slow 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)

Results Summary

Overall, the Democratic candidates averaged 192,599 bytes for their home pages, with 39.7 HTTP requests required for the average home page. The average HTML file size of each home page was 35,783 bytes, with an additional 13,159 bytes of JavaScript loaded from 2.3 external files. External CSS files averaged 8,563 bytes in 1.1 files, while images averaged 127,973 bytes in 35.1 external files. One candidate used a 64,095 byte Flash animation (Kerry). Overall, download time averaged 19.4 seconds for useful content to appear, and 39 seconds to completely load the average Democratic home page.

The home page of President Bush exhibits similar statistics, although it has a lower page size than the average page of the Democratic candidates (125,964 versus 192,599 bytes). However, due to the number of HTTP requests required (60), his load times are somewhat higher than the average load time of the Democratic candidates (21 seconds to load useful content and 45 seconds to fully load).

The total page size for the Democratic candidates differed by over an order of magnitude, from Carol Moseley Braun's 45,690 byte home page to Dick Gephardt's 592,436 byte page.

Discussion

The average Democratic page size of over 188K plus 40 HTTP requests per page cause initial load times of nearly 20 seconds, which is above the attention threshold of most users. On 56Kbps modems (60% of US users as of September 2003) a load time of 19.4 seconds to display useful content is well above the 2 seconds recommended in our book, Speed Up Your Site. The average load time of 39 seconds for the entire page is more than 4.5 times the 8.6 second guideline for total load time without feedback. The load times varied widely for the Democrats: from 6 seconds to display useful content for Sharpton and Clark, to 41 seconds for Gephardt. In two cases, total load times were a minute or more on a 56Kbps modem.

Page size and complexity have a direct influence on download and display time. While the total response time of a web page is the product of many factors, including server response time, network latency, and the user's CPU speed, page size and complexity correlate with display speed (Zhi, 2001). The average Democratic presidential candidate's home page is 192,599 bytes in size, which is over 6.2 times the recommended maximum of 30K to achieve an 8.6 second load time on a 56Kbps modem. The average of nearly 40 HTTP requests per page also contributes to the slow load times.

Common Problems

We observed a number of trends across most of these home pages. Every home page we tested included JavaScript code from Macromedia's Dreamweaver XHTML editor (MM_ etc.) to validate forms, preload images, and perform other housekeeping chores. A number of pages used multiple external JavaScript and CSS files, which when placed in the head of XHTML documents delays initial content display. All used a conventional table-based layout, with graphic rollovers. In summary, the most common performance problems that we found were:

Suggested Solutions

As we discussed in last week's Speed Tweak of the Week you can use shorthand properties in CSS to help optimize your style sheets. Grouping and high level selectors can also trim your CSS files. In this week's speed tweak, we start our coverage of these techniques in grouping selectors for CSS.

Many of the other problems listed above can be addressed by substituting newer standards-based techniques for old-style techniques. Styled text can be substituted for graphic menus to save costly HTTP requests. The remaining images can be combined where possible, cropped creatively, and optimized for file size. Server-side sniffing, cookies, and validation can be substituted for client-side JavaScript, and the remaining JavaScript files can combined and simplified. Embedded styles can be shunted to an optimized CSS file. Finally, for the adventurous, CSS layout could be used to eliminate all or most of the tables used to layout these pages, to save even more space.

Accessibility Analysis

To assess how accessible these presidential home pages are we chose five key elements typically included in accessible web pages. While certainly not comprehensive, these attributes and techniques are a good proxy for accessible web page design. For more information on the W3C's accessibility guidelines and Section 508 see the further reading section below. The results of our accessibility tests are summarized in Table 2.

Table 2: 2004 Presidential Candidate Home Page Accessibility

Presidential CandidateALT Attributes?Skip to content link?Link title attributes?Accesskey attributes?Tabindex attributes?
Moseley BraunNoNoNoNoNo
BushSomeNoNoNoSome
ClarkSomeNoSomeNoNo
DeanYesNoSomeNoNo
EdwardsSomeNoNoNoNo
GephardtSomeNoNoNoNo
KerryYesNoNoNoNo
KucinichSomeNoNoNoNo
LiebermanSomeNoSomeNoNo
SharptonSomeNoNoNoNo

Results Summary

None of the candidate's pages used skip to content links or accesskey attributes. Only one (Bush) used the tabindex attribute to change the default tab index order. Link title attributes were used by only three candidates, and some alt attribute values were missing in all but two candidate pages (Dean and Kerry used alt attributes on all images).

Suggested Solutions

To improve accessibility convert graphical menus to text for higher speed and better accessibility. For the remaining images, add descriptive alt attribute values to functional images, and blank alt attribute values to non-functional images. One technique that most of the candidates could use is to add a short alt text description of the page to the first image encountered for screen readers (Dean, Gephardt, and Kucinich already do this).

Adding "skip to content" or "skip navigation" links helps screen readers jump past navigation links to the content. Adding accesskey attributes to key links (example <a href="/" accesskey="h" title="Go to home, access key h."><u>H</u>ome</a>) adds keyboard shortcuts to navigation bars (try control-h on a Mac or alt-h on a PC). Other techniques not tested here include table summary and scope attributes, captioning, form fieldset and legend elements.

Conclusion

In our opinion, all of home pages of the 2004 presidential candidates violate established speed and accessibility guidelines. The wide use of graphic text menus, some of which do not have alt tags, make it difficult for people with low vision using screen readers to access these sites. None of the candidates use skip to content links or accesskeys to create keyboard shortcuts, and only one (Bush) uses the tabindex attribute (twice).

Size-wise the Democratic home pages averaged over 188K in total, with nearly 40 HTTP requests required per page. All of the home pages were above our recommended maximum of 30K for an 8.6 second load time. Presidential candidates must accomplish a number of things on their home pages, but in our opinion these pages are too large and complex.

Speed-wise these pages load useful content within 19.4 seconds on average for a 56Kbps modem. Ideally useful content would display within 2 seconds or less, like a navigation bar with a search or signup form. Total load time averaged 39 seconds for the Democratic candidates, and 45 seconds for the Republican. This is well above the 8.6 second guideline for page load time without feedback, and above the 20 to 30 second guideline with effective feedback from an incremental display. Some of these candidates have raised millions of dollars from the Internet. Imagine what they could do with optimized and accessible pages.

Glossary

Accesskey attributes
Access keys are keyboard shortcuts used by people with limited mobility, and experienced users to quickly navigate to key portions of your site, (example: <a href="/about/" accesskey="a" title="About, access key a"><em>A</em>bout</a> [note the emphasized "A" here, to signify the access key.]).
ALT attributes
ALT attribute values (i.e., <img src="image.gif" alt="logo of xyz corporation" width="100" height="50">) are displayed with images turned off and read in screen readers.
HTTP requests
Hypertext Transfer Protocol (HTTP) requests are the round trips required for external objects called from an XHTML page, examples are img, .js, or .css files.
Skip to content link
A skip to content or skip navigation link placed just after the body tag allows screen readers to quickly jump to your main content area, rather than read or tab through your navigation (for example, <body><a href="#content">Skip to content</a>...<a name="content"></a><h1>...).
Tabindex attributes
The tabindex attribute allows you to change the default tab order within your page. This is useful for table-based designs where the content and navigation can appear out of sequence, (example: <a href="/sitemap/" tabindex="11">Sitemap</a>). You can also focus the cursor within a search box as an added convenience for the user, like Google does.
Link title attributes
Title attributes are read by screen readers instead of the link URL itself, which can be cumbersome, (example: <a href="/" title="go to home page">home</a>).

Futher Reading

Accessibility and Website Design
Accessibility portal and tutorials by Mike Elledge from the University of Michigan.
Bobby
The original accessibility checker.
Joe Clark
Author of Building Accessible Websites by New Riders.
Response Time: Eight Seconds, Plus or Minus Two
This chapter summarizes HCI research into response time and user psychology, in Speed Up Your Site: Web Site Optimization by Andrew B. King.
Section508.gov
Specifies accessibility guidelines for Federal departments or agencies.
Vischeck
Checks your pages for various types of color blindness.
WAVE
Visual accessibility checker.
Web Page Design and Download Time (PDF, 740K)
By Jing Zhi, CMG Journal of Computer Resource Management, no. 102 (2001): 40-55. Shows the factors that affect download times for threaded and non-threaded browsers. The number of TCP/IP packets necessary to send a web page is linearly related to download time.
W3C's Web Accessibility Initiative
Accessibility guidelines from the W3C (WAI).

About the Author

Andy King is the founder of four developer-related sites including the one your are on, and the author of Speed Up Your Site: Web Site Optimization from New Riders Publishing. He publishes the monthly Bandwidth Report and Speed Tweak of the Week. He enjoys highly caffeinated drinks and wild open spaces.

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 and the author are not affilliated with any presidential candidate in any form, and we do not endorse any presidential candidate. 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.