O'Reilly logo

Responsive Web Design with jQuery by Gilberto Crespo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Polyfill implementations

There are hundreds of polyfills and shims already developed. And this list grows as soon as a new feature, element, or enhancement is created.

We will see some polyfill implementations right now, but it is important that you check the website https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-Browser-Polyfills, checking if there is a polyfill already developed before you start creating a new one.

MediaElements.js

MediaElements is a polyfill that creates a consistency of player designs for the <video> and <audio> elements being viewed in older browsers, using Flash technology that mimics the native HTML5 MediaElement API.

In the following example, we will apply this library to improve the browser's consistency when displaying ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required