Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Progressive Enhancement with Modernizr

Matt Carver
October 21, 2013

Progressive Enhancement with Modernizr

Some things about stuff.

Matt Carver

October 21, 2013
Tweet

Other Decks in Technology

Transcript

  1. A Little About Me MATTHEW CARVER Technology Director @matthew_carver STATS:

    Texas Ex-Patriot Currently live in NYC with my wife and dog Author of “The Responsive Web”
  2. Typically, we like to use the newest features and then

    find “hacks” or “fixes” to degrade to “older” browsers.
  3. as users move more and more to tablets The clock

    is also ticking on desktop computers
  4. Progressive enhancement workflow build test base enhance 3 2 1

    4 Test your work. Start adding some flair. Build to those specifications. Identify a starting point.
  5. Starting point Define a starting point for site. Work it

    out with the client first, but as you develop this will be what you develop for first.
  6. • A javascript disabled handheld device. • A desktop computer

    running IE7. Some example starting points:
  7. • A javascript disabled handheld device. • A desktop computer

    running IE7. • A touch screen device for the visually impaired. Some example starting points:
  8. • A javascript disabled handheld device. • A desktop computer

    running IE7. • A touch screen device for the visually impaired. • A javascript enabled laptop. Some example starting points:
  9. • A javascript disabled handheld device. • A desktop computer

    running IE7. • A touch screen device for the visually impaired. • A javascript enabled laptop. • A tablet with crappy wi-fi. Some example starting points:
  10. • A javascript disabled handheld device. • A desktop computer

    running IE7. • A touch screen device for the visually impaired. • A javascript enabled laptop. • A tablet with crappy wi-fi. • A drunk circus clown with Google Glass. Some example starting points:
  11. • A javascript disabled handheld device. • A desktop computer

    running IE7. • A touch screen device for the visually impaired. • A javascript enabled laptop. • A tablet with crappy wi-fi. • A drunk circus clown with Google Glass. • A angry cowboy wearing a smart watch. Some example starting points:
  12. don’t let me, that dude, or some jack-mo’s tumblr tell

    you what to build. THE BUSINESS DEFINES YOUR STARTING POINT
  13. Strategy and UX groups should be providing you with user

    stories, derive your starting point from these.
  14. Real world testing Test your work in the real world.

    Don’t just load it up in controlled environments, but take the work outside of your comfort zone.
  15. In order to do this, we needed a tool that

    could appropriate what CSS and JS should be loaded for which user.
  16. Modernizr.load allows you to load files only when they are

    required, so that jQuery plugin you need for a specific part of the page can be loaded only when it’s absolutely required.
  17. You can also load files based on Modernizr tests. This

    is incredibly helpful in loading polyfills or files related to input types.
  18. While CSS media queries give you controll over the layout

    and visual elements on a page, Modernizr.mq gives you controll over functional elements as well as content
  19. Using Modernizr you can gradually enhance a site from your

    starting point into a fully formed interactive marvel.
  20. Progressive enhancement is a slow process. It requires patience and

    hard work, but the end product is something you can be proud of.
  21. If you’re awesome at your job, nobody will even notice

    you did anything at all. But that’s what being a craftsman is all about.