Need help with picturefill?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

10.1K Stars 1.1K Forks MIT License 800 Commits 41 Opened issues


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

Services available


Need anything else?

Contributors list

No Data


A responsive image polyfill. * Authors: See Authors.txt * License: MIT

build-status Join Slack channel picturefill on npm

Picturefill has three versions:

  • Version 1 mimics the Picture element pattern with
    elements. It is no longer maintained.
  • Version 2 is a lightweight polyfill of the Picture element draft specification.
  • Version 3.0.3 is the current stable release.

Usage, Demos, Docs

To find out how to use Picturefill, visit the project site.

The gotchas

Be it browser issues, the responsive images specifications, or Picturefill itself, there are a couple gotchas you should be aware of when working with Picturefill:

  • Firefox 38 and 39 has some bugs [1] [2] [3] where images won't update on screen resize. These issues are addressed by Picturefill 3.0.0, and was fixed in Firefox 41.

  • Per the

    spec, using
    isn't allowed in the
    attribute. Using
    will fallback to
  • Trying to use the

    attribute in a browser that doesn't support
    natively can result in a double download. To avoid this, don't use the
    attribute on the

    Sample pic

  • If you only want to have an image show up at certain sizes, and not show up at others, you will need to use a transparent placeholder gif:

    Sample pic


For information on how to contribute code to Picturefill, check out


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


Picturefill discussion takes place via Slack. For an invitation, visit


There are currently no known unsupported browsers, provided that you use the markup patterns provided.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.