Git Product home page Git Product logo

progressive-enhancement-resources's Introduction

Progressive Enhancement Resources Awesome

A comprehensive collection of resources on Progressive Enhancement. From concept and strategies to feature detection and testing methods. Complete with a list of (code) examples.

Contents

The Concept

Progressive Enhancement means gradually improving the user experience after verifying the target environment (e.g. browser) is capable of it. Start with content and ensure you maintain functionality & accessibility.

Strategies

You can apply Progressive Enhancement in different ways:

Feature Detection

Before you try to enhance the experience, you need to ensure the environment is capable of the enhancement. You test this by performing feature detections:

Support Tables

Different environments (platforms, browsers, versions) have different capabilities. Support tables tell you what capabilities each environment has. Knowing the level of support can help you weigh an enhancement against the effort and impact of its implementation.

Testing Methods

With progressive enhancement you support different experiences in different environments. These are some ways to test all these variations:

Examples

Custom Form Elements

  • Fancy radio buttons - Based on HTML radio buttons, visually enhanced using CSS pseudo classes and elements.
  • Checkboxes & radio buttons - With custom focus, hover and checked state. Enhanced asynchronously.
  • Toggle switch - Checkbox or radios, visually enhanced to sliding toggle switches using CSS only.
  • 5-star rating - Based on HTML radio buttons, visually enhanced using CSS pseudo classes and elements.
  • jQuery slider - Accessible, custom slider widget based on a standard HTML select.
  • jQuery custom file input - Article and library.
  • React isomorphic form - Set of React form components which can be pre-rendered & handled server-side. They are enhanced client-side without losing state.

Data Visualisations

  • Timeline - From definition list to SVG illustration (article with demos).
  • Charts - From data table to themed charts using HTML5 canvas (article and library).

Images

Menus

Page Navigation

Asynchronously fetch and transition between static pages using ajax and history.pushState:

  • Barba.js - Add page transitions with event hooks, cache and prefetch support.
  • SmoothState.js - Add page transitions with event hooks, cache and prefetch support. (requires jQuery).
  • jquery-pjax - Add page transitions with support for multiple containers / content slots (requires jQuery).
  • MoOx/pjax - Similar tot jquery-pjax, but without the jQuery dependency.
  • Turbolinks - Add page transitions with event hooks and cache support. Has adapters to bind to native navigation controls on iOS and Android.

Related Articles


License

CC0

Jasper Moelker waives all rights to this work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law.

You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

progressive-enhancement-resources's People

Contributors

jbmoelker avatar dandv avatar pascaloliv avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.