Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Jun 23, 2012
  1. @Wilto

    Throttling the resize event prevents small-screen browsers from trigg…

    Wilto authored
    …ering multiple resize events as high-res images are loaded in.
Commits on Jun 20, 2012
  1. updated markup

    Scott Jehl authored
  2. updates, merges from master

    Scott Jehl authored
  3. fixed some syntax errors that resulted in a merge.

    Scott Jehl authored
  4. div branch becomes the new default

    Scott Jehl authored
  5. styles

    Scott Jehl authored
Commits on Jun 16, 2012
  1. persist prefs in localStorage if possible

    Scott Jehl authored
  2. Implemented a sample behavior for resolution switching in HD environm…

    Scott Jehl authored
    …ents based on user prefs
Commits on May 16, 2012
  1. Merge pull request #10 from grayghostvisuals/master

    Scott Jehl authored
    Image Sizes noted on the images.
Commits on Apr 23, 2012
Commits on Mar 27, 2012
  1. @grayghostvisuals
Commits on Mar 26, 2012
  1. oh alerts? oldskoo. gone

    scottjehl authored
  2. This branch is a div-based equivalent of the picture element markup p…

    scottjehl authored
    …attern. It can be used today without concern for running into problems with differences in future picture implementations. That said, it will always be tied to JavaScript, and the markup is a little clunky to those with an eye for semantics.
Commits on Mar 22, 2012
  1. null commit - update ghpages, update!

    scottjehl authored
  2. This refactors the proposed markup (slightly) and picturefill JS to b…

    scottjehl authored
    …roaden browser support. The included update to README.md explains the changes I'm proposing to the markup pattern (there no changes to elements themselves) to support browsers that formerly did not work, like iOS4, IE browsers versions 6-10, Android browsers 1.x and up. As a result, there aren't any known "unsupported" browsers, in that every browser tested so far at least receives a fallback image - for example, IE6-8 will only see picture source elements that do not use media queries, since it doesn't support them natively (media types are ok though). Fixes #5 and Fixes #8.
  3. added images to local directory

    scottjehl authored
  4. fixed up the dom-or-load single call

    scottjehl authored
  5. enable js strict mode

    scottjehl authored
  6. Fixed a couple jshint whitespace warnings

    scottjehl authored
  7. by binding to domready and load events (as a fallback), we can delive…

    scottjehl authored
    …r IE 8 and older browsers with fallback content using any source elements that don't rely on media queries (note: media types are fine though). In order for this to work, the script needs to run from HEAD, like any HTML5 shiv would. Script still works in non-IE browsers if it's not in HEAD.
  8. fixed a typo - no !! should be there.

    scottjehl authored
  9. fixed w.document reference

    scottjehl authored
  10. comment change

    scottjehl authored
  11. matchmedia and media query support should not be required for picture…

    scottjehl authored
    …fill to run - source elements with no media attributes or media attributes specifying media types (but not queries) do not require media query support. For media attribute support in general (even in non-query supporting browsers), matchMedia polyfill is necessary, but this change ensures a non-media source element will load in JS environments. Fixes #9
  12. code style, whitespace, comments.

    scottjehl authored
  13. demo link update - gh pages seems to be working now

    scottjehl authored
Commits on Mar 16, 2012
  1. Merge pull request #6 from tnorthcutt/patch-1

    Scott Jehl authored
    Corrected minimum stated width in comment for largest picture
  2. @tnorthcutt
Commits on Mar 15, 2012
  1. updated link to demo

    scottjehl authored
  2. Merge remote branch 'origin/master'

    scottjehl authored
  3. added noscript to the recommended markup pattern (for fallback only) …

    scottjehl authored
    …and generated the child img element if it's not already present. With this tweak in place, the picture markup pattern supports non-js fallbacks, avoids prefetch, and enjoys all benefits of the proposed picture element functionality. Production ready, perhaps.
Commits on Feb 24, 2012
  1. Merge pull request #3 from gordonbrander/master

    Scott Jehl authored
    Exit early if picture is natively supported.
Commits on Feb 22, 2012
  1. @gordonbrander

    Removed Modernizr hooks

    gordonbrander authored
  2. @gordonbrander

    Exit early if picture is natively supported (totally hypothetical at …

    gordonbrander authored
    …this point). If Modernizr is available, add a test for picture to it (adds handy picture/no-picture classes to HTML element). Also uses Modernizr's mq shim if available. Both these enhancements do NOT REQUIRE Modernizr and take just a few lines to implement.
Something went wrong with that request. Please try again.