Skip to content

Instantly share code, notes, and snippets.

@esedic
Created September 7, 2019 09:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save esedic/0e31c6f42aaeb4a30d10b24a0c6cfb72 to your computer and use it in GitHub Desktop.
Save esedic/0e31c6f42aaeb4a30d10b24a0c6cfb72 to your computer and use it in GitHub Desktop.
Polyfill bundle, loading only if feature is not supported by browser
// https://polyfill.io/v3/polyfill.js?flags=gated&features=IntersectionObserver%2CHTMLPictureElement%2CMutationObserver%2CPromise%2CResizeObserver%2Cdocument.getElementsByClassName%2Cdocument.querySelector%2CmatchMedia%2CrequestAnimationFrame%2CIntersectionObserverEntry%2C%7Ehtml5-elements
/* Polyfills included:
HTMLPictureElement
IntersectionObserver
IntersectionObserverEntry
MutationObserver
Promise
ResizeObserver
document.getElementsByClassName
matchMedia
requestAnimationFrame
html5-elements
*/
// Made with https://polyfill.io/v3/url-builder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment