A polyfill combinator
JavaScript PHP Shell
Switch branches/tags
Nothing to show
Pull request Compare This branch is 2409 commits behind Financial-Times:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
minified
source
README.md
agent.json
compress.sh
index.php
normalize.json
polyfill.json
test.html
test.js

README.md

polyfill

polyfill makes web development less frustrating by selectively polyfilling just what the browser needs. It can also be used as a service over HTTP and HTTPS connections.

<script src="//polyfill.io"></script>

Whoa, where's the script file?

The script file is the domain.

What does it do?

A lot. For instance, you can use querySelectors in IE6.

var el = document.querySelector(".foo.bar");

Or use matches or matchesSelector without a vendor prefix.

el.matches(".bar");

The script is clean, compressed, and aggressively cached.

What browsers are you supporting?

Android 2.2+, Blackberry 7+, Chrome, Opera 11.5+, Opera Mini 5+, Opera Mobile 10+, Firefox 3.6+, Internet Explorer 6+, Safari 4+, and Safari IOS 4+.

What functionality are you polyfilling?

You should be able to use all of the following features to a reasonable extent in every supported browser.

HTML5 Elements

abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup main mark meter nav output progress section subline summary time video

Default HTML5 element styling is covered too, with the experimental .css query.

<link href="//polyfill.io?.css" rel="stylesheet">

Array

Object

Other

Selectors

Mutations

Event

Goodies

Window

How big does the script end up being?

Browser Filesize
Chrome 385 B
Internet Explorer 10+ 396 B
Firefox 6+ 397 B
Safari 6+ 400 B
Safari (iOS 6) 400 B
Safari 5.1 536 B
Opera 15+ 899 B
Firefox 3.6 1.37 KB
Internet Explorer 9 1.93 KB
Safari 4 2.32 KB
Internet Explorer 8 5.58 KB
Internet Explorer 6/7 7.36 KB

Thanks for reading. Now, please… enjoy!