We came. We saw. We Spoke.

Saturday, March 06, 2010

Progressive Enhancement & Graceful Degradation

by Mark Priestap

Progressive enhancement and graceful degradation are not two forces opposed to each other, but are both ways of preparing your sites so that no matter what user agent (desktop, mobile device, etc) or browser version, your site visitors will have access to the content while keeping your code on the bleeding edge of technology. There are always new enhancements in modern browsers that are exciting, and fresh ways to display content, but using them would sometimes be like setting up a radio station in Antarctica. The penguins don’t listen. The trick is to enhance your sites slowly and gracefully, allowing users with older browsers access to your content and giving folks with newer browsers some added benefits.

This begs the question: How far back do you support? This all depends on your audience. If 20% of your traffic is coming from IE5.5, then it would be wise to go back that far (yikes, that would be a nightmare). It ultimately depends on your target audience and your known traffic stats. Sites targeting Mac users have life a smidgeon easier since IE6 is not as much of a threat to their equilibrium (unless they are web devs). Even in this instance however, one must be sensitive to the many people who are still stuck using IE6 at their day jobs and pining away reading about Mac stuff.


A recent example...

image

In one of our recent builds, H. D. Smith, we decided to make use of a couple of different “new” tricks of the trade: HTML5 and CSS3. There is a bit of geekiness in just wanting to get our hands dirty in the latest trends and familiarize ourselves with them, but even more importantly, we wanted our code to be lean and easy to maintain.

Note: We’re not going to cover HTML5 or CSS3 in depth in this post. Check out the footnotes for some great resources.


Lighter & Simpler

Although rounded corners and other fancy stuff that is demanded by clients gives designers some added job security, it would behoove all of us to discover how much easier CSS3 makes maintaining/editing two of the biggest drags on our time: Creating content boxes that have both rounded corners and drop shadows. With CSS, you no longer have to use nested divs (as much); crazy hacked together CSS, and other hair-raising tactics. Now with the magic of CSS3 much of that goes away... *poof*. If your clients don’t care that IE6,7 & 8 are a little more square, you’re golden. So after you’ve put together some nicely rounded tabs across the top of the page in your

Page 1 of 1