Skip to content
This repository has been archived by the owner on May 9, 2022. It is now read-only.
/ picturefill Public archive
forked from scottjehl/picturefill

A responsive image polyfill for <picture>, srcset, sizes, and more

License

Notifications You must be signed in to change notification settings

guardian/picturefill

 
 

Repository files navigation

This fork is only intended to be used on The Guardian.

If you found this by accident, you might have been looking for @scottjehl's original.

Differences from the standard version

  • ignores resize events

  • doesn't auto-run (returns an init-type function)

  • DOM modification is passed to fastdom

  • it's a proper AMD module

Picturefill

A responsive image polyfill.

  • Authors: Scott Jehl, Mat Marquis, Shawn Jansepar (2.0 refactor lead), and many more: see Authors.txt
  • License: MIT

build-status

Picturefill has two versions:

  • Version 2 is a strict polyfill of the Picture element draft specification and is the main version in development.
  • Version 1 mimics the Picture element pattern with span elements. It is maintained in the 1.2 branch.

Usage, Demos, Docs

To find out how to use Picturefill on your sites, visit the project and demo site:

Picturefill Documentation, Downloads, and Demos Site

Contributing

For information on how to contribute code to Picturefill, check out CONTRIBUTING.md

Issues

If you find a bug in Picturefill, please add it to the issue tracker

Support

Picturefill supports a broad range of browsers and devices (there are currently no known unsupported browsers), provided that you stick with the markup conventions provided.

About

A responsive image polyfill for <picture>, srcset, sizes, and more

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 83.6%
  • HTML 13.7%
  • CSS 2.7%